Package com.nearinfinity.honeycomb.mysql.generators

Examples of com.nearinfinity.honeycomb.mysql.generators.RowGenerator


     * @throws Exception
     */
    @Test
    public void testSerDe() throws Exception {
        TableSchema schema = new TableSchemaGenerator().next();
        for (Row row : Iterables.toIterable(new RowGenerator(schema))) {
            Assert.assertEquals(row, Row.deserialize(row.serialize()));
        }
    }
View Full Code Here


            this.indexIds = indexIds;
            this.tableSchema = tableSchema;
            Collection<IndexSchema> indices = this.tableSchema.getIndices();
            checkState(indices.size() > 0, "Generated table schema must have an index.");
            indexSchemas = PrimitiveGenerators.fixedValues(indices);
            rows = new RowGenerator(this.tableSchema);
            queryKeys = new QueryKeyGenerator(this.tableSchema);
            this.order = order;
        }
View Full Code Here

TOP

Related Classes of com.nearinfinity.honeycomb.mysql.generators.RowGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.