Package org.kiji.schema.avro

Examples of org.kiji.schema.avro.TestComplexRecord


  @Test
  public void testComplexRecordInColumnValueEqualsRowFilter() throws Exception {
    byte[] bytes = new byte[100];
    (new Random()).nextBytes(bytes);
    ByteBuffer buffer = ByteBuffer.wrap(bytes);
    TestComplexRecord record = TestComplexRecord.newBuilder()
        .setA("a string value")
        .setB(10)
        .setD(buffer)
        .setE(null)
        .setF(true)
        .setG("another string")
        .build();
    runTest(new ColumnValueEqualsRowFilter("family", "qualifier",
        new DecodedCell<Object>(record.getSchema(), record)));
  }
View Full Code Here

TOP

Related Classes of org.kiji.schema.avro.TestComplexRecord

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.