Package com.cloudera.cdk.data.hbase.avro.entities

Examples of com.cloudera.cdk.data.hbase.avro.entities.TestIncrement


  public void testIncrement() {
    Dao<TestIncrement> dao = new SpecificAvroDao<TestIncrement>(tablePool,
        new String(incrementTableName), incrementSchemaString,
        TestIncrement.class);

    TestIncrement entity = TestIncrement.newBuilder().setKeyPart1("part1")
        .setKeyPart2("part2").setField1(10).build();
    assertTrue(dao.put(entity));

    PartitionKey key = dao.getPartitionStrategy()
        .partitionKey("part1", "part2");
View Full Code Here


  public void testIncrement() {
    SchemaManager manager = new DefaultSchemaManager(tablePool);
    Dao<TestIncrement> dao = new SpecificAvroDao<TestIncrement>(tablePool,
        incrementTableName, "TestIncrement", manager);

    TestIncrement entity = TestIncrement.newBuilder().setKeyPart1("part1")
        .setKeyPart2("part2").setField1(10).build();
    dao.put(entity);

    PartitionKey key = dao.getPartitionStrategy()
        .partitionKey("part1", "part2");
View Full Code Here

TOP

Related Classes of com.cloudera.cdk.data.hbase.avro.entities.TestIncrement

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.