Package org.apache.hadoop.hbase.index.client

Examples of org.apache.hadoop.hbase.index.client.IndexExpression


    // TODO add assertions
  }

  @Test
  public void testNoIndexExpression() throws Exception {
    IndexExpression exp = new NoIndexExpression();
    Scan scan = new Scan();
    scan.setAttribute(Constants.INDEX_EXPRESSION, IndexUtils.toBytes(exp));
    byte[] value1 = Bytes.toBytes("asdf");
    scan.setFilter(new SingleColumnValueFilter(FAMILY1, QUALIFIER1, CompareOp.EQUAL, value1));
    List<IndexSpecification> indices = new ArrayList<IndexSpecification>();
View Full Code Here


    FilterNode node = null;
    IndexRegionScanner indexRegionScanner = null;
    if (indexExpBytes != null) {
      // Which index(s) to be used is already passed by the user.
      try {
        IndexExpression indexExpression =
            org.apache.hadoop.hbase.index.client.IndexUtils.toIndexExpression(indexExpBytes);
        if (indexExpression instanceof NoIndexExpression) {
          // Client side says not to use any index for this Scan.
          LOG.info("NoIndexExpression is passed as the index to be used for this Scan."
              + " No possible index will be used.");
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.index.client.IndexExpression

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.