Examples of ScanInfo


Examples of com.sleepycat.je.evictor.TargetSelector.ScanInfo

             */
            while ((evictBytes < maxEvictBytes) &&
                   (numNodesScannedThisBatch <= maxINsPerBatch) &&
                   arbiter.stillNeedsEviction()) {
               
                ScanInfo scanInfo = selector.selectIN(maxINsPerBatch);
                IN target = scanInfo.target;
                numNodesScannedThisBatch += scanInfo.numNodesScanned;

                if (target == null) {
                    break;
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.ScanInfo

      throw new UserErrorException("commands.noResults");
    }
  }

  String prepareText() {
    ScanInfo scanInfo = scanningResults.getScanInfo();
    title2 = Labels.getLabel(scanInfo.isCompletedNormally() ?
        "text.scan.completed" : "text.scan.incomplete");
       
    String ln = System.getProperty("line.separator");
    StringBuilder text = new StringBuilder();
    text.append(Labels.getLabel("text.scan.time.total"))
      .append(timeToText(scanInfo.getScanTime())).append(ln);
    text.append(Labels.getLabel("text.scan.time.average"))
      .append(timeToText((double)scanInfo.getScanTime() / scanInfo.getHostCount())).append(ln);
   
    text.append(ln).append(scanningResults.getFeederName()).append(ln)
      .append(scanningResults.getFeederInfo()).append(ln).append(ln);
   
    text.append(Labels.getLabel("text.scan.hosts.total")).append(scanInfo.getHostCount()).append(ln);
    text.append(Labels.getLabel("text.scan.hosts.alive")).append(scanInfo.getAliveCount()).append(ln);
    if (scanInfo.getWithPortsCount() > 0)
      text.append(Labels.getLabel("text.scan.hosts.ports")).append(scanInfo.getWithPortsCount()).append(ln);
    return text.toString();
  }
View Full Code Here

Examples of org.apache.derby.iapi.store.access.ScanInfo

            return(FAIL("(t_001) insert into index failed in base cols"));
        }

        // test the scaninfo interface.

        ScanInfo   scan_info = scan.getScanInfo();
        Properties prop      = scan_info.getAllScanInfo(null);

        if (Integer.parseInt(prop.getProperty(
       MessageService.getTextMessage(SQLState.STORE_RTS_NUM_PAGES_VISITED)))
        != 1)
        {
View Full Code Here

Examples of org.apache.derby.iapi.store.access.ScanInfo

            return(FAIL("(t_001) insert into index failed in base cols"));
        }

        // test the scaninfo interface.

        ScanInfo   scan_info = scan.getScanInfo();
        Properties prop      = scan_info.getAllScanInfo(null);

        if (Integer.parseInt(prop.getProperty(
       MessageService.getTextMessage(SQLState.STORE_RTS_NUM_PAGES_VISITED)))
        != 1)
        {
View Full Code Here

Examples of org.apache.derby.iapi.store.access.ScanInfo

            return(FAIL("(t_001) insert into index failed in base cols"));
        }

        // test the scaninfo interface.

        ScanInfo   scan_info = scan.getScanInfo();
        Properties prop      = scan_info.getAllScanInfo(null);

        if (Integer.parseInt(prop.getProperty(
       MessageService.getTextMessage(SQLState.STORE_RTS_NUM_PAGES_VISITED)))
        != 1)
        {
View Full Code Here

Examples of org.apache.derby.iapi.store.access.ScanInfo

            return(FAIL("(t_001) insert into index failed in base cols"));
        }

        // test the scaninfo interface.

        ScanInfo   scan_info = scan.getScanInfo();
        Properties prop      = scan_info.getAllScanInfo(null);

        if (Integer.parseInt(prop.getProperty(
       MessageService.getTextMessage(SQLState.STORE_RTS_NUM_PAGES_VISITED)))
        != 1)
        {
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.ScanInfo

      Long newTtl = ttls.get(store.getTableName());
      if (newTtl != null) {
        System.out.println("PreFlush:" + newTtl);
      }
      Integer newVersions = versions.get(store.getTableName());
      ScanInfo oldSI = store.getScanInfo();
      HColumnDescriptor family = store.getFamily();
      ScanInfo scanInfo = new ScanInfo(family.getName(), family.getMinVersions(),
          newVersions == null ? family.getMaxVersions() : newVersions,
          newTtl == null ? oldSI.getTtl() : newTtl, family.getKeepDeletedCells(),
          oldSI.getTimeToPurgeDeletes(), oldSI.getComparator());
      Scan scan = new Scan();
      scan.setMaxVersions(newVersions == null ? oldSI.getMaxVersions() : newVersions);
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.ScanInfo

        final ObserverContext<RegionCoprocessorEnvironment> c,
        Store store, List<? extends KeyValueScanner> scanners, ScanType scanType,
        long earliestPutTs, InternalScanner s) throws IOException {
      Long newTtl = ttls.get(store.getTableName());
      Integer newVersions = versions.get(store.getTableName());
      ScanInfo oldSI = store.getScanInfo();
      HColumnDescriptor family = store.getFamily();
      ScanInfo scanInfo = new ScanInfo(family.getName(), family.getMinVersions(),
          newVersions == null ? family.getMaxVersions() : newVersions,
          newTtl == null ? oldSI.getTtl() : newTtl, family.getKeepDeletedCells(),
          oldSI.getTimeToPurgeDeletes(), oldSI.getComparator());
      Scan scan = new Scan();
      scan.setMaxVersions(newVersions == null ? oldSI.getMaxVersions() : newVersions);
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.ScanInfo

    public KeyValueScanner preStoreScannerOpen(
        final ObserverContext<RegionCoprocessorEnvironment> c, Store store, final Scan scan,
        final NavigableSet<byte[]> targetCols, KeyValueScanner s) throws IOException {
      Long newTtl = ttls.get(store.getTableName());
      Integer newVersions = versions.get(store.getTableName());
      ScanInfo oldSI = store.getScanInfo();
      HColumnDescriptor family = store.getFamily();
      ScanInfo scanInfo = new ScanInfo(family.getName(), family.getMinVersions(),
          newVersions == null ? family.getMaxVersions() : newVersions,
          newTtl == null ? oldSI.getTtl() : newTtl, family.getKeepDeletedCells(),
          oldSI.getTimeToPurgeDeletes(), oldSI.getComparator());
      return new StoreScanner(store, scanInfo, scan, targetCols);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.ScanInfo

        KeyValueTestUtil.create("R2", "cf", "c", now-1000, KeyValue.Type.Put, "dont-care")
    };
    List<KeyValueScanner> scanners = scanFixture(kvs);
    Scan scan = new Scan();
    scan.setMaxVersions(1);
    ScanInfo scanInfo = new ScanInfo(CF, 0, 1, 500, false, 0,
        KeyValue.COMPARATOR);
    ScanType scanType = ScanType.USER_SCAN;
    StoreScanner scanner =
      new StoreScanner(scan, scanInfo, scanType,
          null, scanners);
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.