Package org.hbase.async

Examples of org.hbase.async.DependentColumnFilter


    assertEq("v4", value_rows.get(0).get(1).value());

    final Scanner dependent_scanner = client.newScanner(table);
    dependent_scanner.setMaxNumKeyValues(-1);
    dependent_scanner.setFilter(
        new DependentColumnFilter(Bytes.UTF8(family), Bytes.UTF8("dep")));
    final ArrayList<ArrayList<KeyValue>> dependent_rows =
        dependent_scanner.nextRows().join();
    assertSizeIs(1, dependent_rows);
    assertSizeIs(2, dependent_rows.get(0));
    assertEq("v3", dependent_rows.get(0).get(0).value());
    assertEq("v4", dependent_rows.get(0).get(1).value());

    final Scanner dependent_value_scanner = client.newScanner(table);
    dependent_value_scanner.setMaxNumKeyValues(-1);
    dependent_value_scanner.setFilter(
        new DependentColumnFilter(
            Bytes.UTF8(family),
            Bytes.UTF8("dep"),
            true,
            CompareOp.EQUAL,
            new BinaryComparator(Bytes.UTF8("v4"))));
View Full Code Here

TOP

Related Classes of org.hbase.async.DependentColumnFilter

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.