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

Examples of com.cloudera.cdk.data.hbase.avro.GenericAvroDao


    checkScannerYieldValues(builder.build(), possibleValues);
  }

  @Test
  public void testStartRowScan() throws Exception {
    BaseDao<GenericRecord> dao = new GenericAvroDao(tablePool, tableName,
        recordString);

    Set<String> possibleValues = new HashSet<String>();
    possibleValues.add("field1_20");
    possibleValues.add("field1_21");
    possibleValues.add("field1_22");
    possibleValues.add("field1_23");
    possibleValues.add("field1_24");
    PartitionKey startKey = dao.getPartitionStrategy().partitionKey("part1_20",
        "part2_20");
    PartitionKey stopKey = dao.getPartitionStrategy().partitionKey("part1_25",
        "part2_25");

    EntityScannerBuilder<GenericRecord> builder = dao.getScannerBuilder()
        .setStartKey(startKey).setStopKey(stopKey);

    checkScannerYieldValues(builder.build(), possibleValues);
  }
View Full Code Here

TOP

Related Classes of com.cloudera.cdk.data.hbase.avro.GenericAvroDao

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.