Package org.apache.accumulo.core.iterators

Examples of org.apache.accumulo.core.iterators.ScanCache.seek()


        System.out.println("Scanning after " + startRow);
      } else {
        System.out.println("Scanning from " + startRow);
      }
      Key startKey = new Key(new Text(String.format("row_%06d", startRow)), columnf, columnq, Long.MAX_VALUE);
      sc.seek(new Range(startKey, null), LocalityGroupUtil.EMPTY_CF_SET, false);
      for (int j = 0; j < 20000; j++) {
        // scan through the cache
        if (!sc.hasTop()) {
          System.out.println("end of cache reached with key=" + startKey + " and j=" + j);
          break;
View Full Code Here


    // test scanning from the beginning of the table
    System.out.println("smi has " + m.size() + " entries");
    for (int i = 0; i < 1000; i++) {
      System.out.println("Scan " + (i + 1));
      sc.setAuthorityIterator(smi);
      sc.seek(new Range(firstKey, null), LocalityGroupUtil.EMPTY_CF_SET, false);
      Key lastKey = null;
      for (int j = 0; j < (i + 1) * 1000 && j < 100000; j++) {
        if (!sc.hasTop()) {
          System.out.println("finished at row " + j);
          break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.