Examples of Scan


Examples of cellmate.accumulo.reader.scan.Scan

        AccumuloParameters parameters = AccumuloParameterOps.checkParamType(params);
        Connector connector = AccumuloParameterOps.getConnectorFromParameters(instance, parameters);
        Authorizations auths = AccumuloParameterOps.getAuthsFromConnector(connector);
        if(log.isDebugEnabled())
            log.info("Create auths and connector for " + parameters.getUser());
        Scan scan = parameters.hasKey(AccumuloParameters.MULTI_RANGE) ?
                new MultiRangeScan(connector, auths, parameters) :
                new SingleRangeScan(connector, auths, parameters);
        if(log.isDebugEnabled())
            log.info("Setting up scan type: " + scan.getClass().getName());
        return read(scan.get(), parameters, transformer);
    }
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Scan

        assert testDate.equals(calendar) :
                "Parsing returned " + getString(testDate) +
                        " but was expecting " + getString(calendar) +
                        " for file " + filePath;

        Scan scan = scanParser.getScan(ScanLocationManager.getRoot() + filePath);
        assert scan.getImportTime().equals(calendar) :
                "Parsing returned " + getString(scan.getImportTime()) +
                        " but was expecting " + getString(calendar) +
                        " for file " + filePath;
    }
View Full Code Here

Examples of net.sf.mzmine.data.Scan

        .getMostIntenseFragmentScanNumber();
    if (fragmentScanNumber <= 0)
      return false;

    RawDataFile dataFile = mainPeak.getBestPeak().getDataFile();
    Scan fragmentScan = dataFile.getScan(fragmentScanNumber);
    if (fragmentScan == null)
      return false;

    // Get MS/MS data points in the tolerance range
    Range ms2mzRange = ms2mzTolerance.getToleranceRange(possibleFragment
        .getAverageMZ());

    DataPoint fragmentDataPoints[] = fragmentScan
        .getDataPointsByMass(ms2mzRange);

    // If there is a MS/MS peak of required height, we have a hit
    for (DataPoint dp : fragmentDataPoints) {
      if (dp.getIntensity() > minMS2peakHeight)
View Full Code Here

Examples of org.apache.drill.common.logical.data.Scan

       .generator("manual", "na")
       .version(1)
       .type(PlanProperties.PlanType.APACHE_DRILL_LOGICAL)
       .build();

     Scan scan = new Scan("mock-engine", null, null);
     Store store = new Store("mock-engine", null, null);
     store.setInput(scan);

     LogicalPlanBuilder builder = LogicalPlan.builder()
       .planProperties(planProperties)
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Scan

              .preCompactScannerOpen(store, scanners,
                majorCompaction ? ScanType.MAJOR_COMPACT : ScanType.MINOR_COMPACT, earliestPutTs,
                request);
        }
        if (scanner == null) {
          Scan scan = new Scan();
          scan.setMaxVersions(store.getFamily().getMaxVersions());
          /* Include deletes, unless we are doing a major compaction */
          scanner = new StoreScanner(store, store.getScanInfo(), scan, scanners,
            majorCompaction? ScanType.MAJOR_COMPACT : ScanType.MINOR_COMPACT,
            smallestReadPoint, earliestPutTs);
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Scan

    KeyValueScanner memstoreScanner = new CollectionBackedScanner(set, this.comparator);
    if (getHRegion().getCoprocessorHost() != null) {
      scanner = getHRegion().getCoprocessorHost().preFlushScannerOpen(this, memstoreScanner);
    }
    if (scanner == null) {
      Scan scan = new Scan();
      scan.setMaxVersions(scanInfo.getMaxVersions());
      scanner = new StoreScanner(this, scanInfo, scan,
          Collections.singletonList(memstoreScanner), ScanType.MINOR_COMPACT,
          this.region.getSmallestReadPoint(), HConstants.OLDEST_TIMESTAMP);
    }
    if (getHRegion().getCoprocessorHost() != null) {
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Scan

    // Start key is just the table name with delimiters
    byte[] startKey = Bytes.toBytes(strName + ",,");
    // Stop key appends the smallest possible char to the table name
    byte[] stopKey = Bytes.toBytes(strName + " ,,");

    Scan scan = new Scan(startKey);
    scan.setStopRow(stopKey);
    return scan;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Scan

   */
  public static void fullScan(HRegionInterface hRegionInterface,
                              Visitor visitor, final byte[] regionName,
                              byte[] startrow) throws IOException {
    if (hRegionInterface == null) return;
    Scan scan = new Scan();
    if (startrow != null) scan.setStartRow(startrow);
    scan.addFamily(HConstants.CATALOG_FAMILY);
    long scannerid = hRegionInterface.openScanner(regionName, scan);
    try {
      Result data;
      while((data = hRegionInterface.next(scannerid)) != null) {
        if (!data.isEmpty()) visitor.visit(data);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Scan

   * @throws IOException
   */
  static void fullScan(CatalogTracker catalogTracker,
    final Visitor visitor, final byte [] startrow, final boolean scanRoot)
  throws IOException {
    Scan scan = new Scan();
    if (startrow != null) scan.setStartRow(startrow);
    if (startrow == null && !scanRoot) {
      int caching = catalogTracker.getConnection().getConfiguration()
          .getInt(HConstants.HBASE_META_SCANNER_CACHING, 100);
      scan.setCaching(caching);
    }
    scan.addFamily(HConstants.CATALOG_FAMILY);
    HTable metaTable = scanRoot?
      getRootHTable(catalogTracker): getMetaHTable(catalogTracker);
    ResultScanner scanner = metaTable.getScanner(scan);
    try {
      Result data;
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Scan

   * @throws IOException When reading the scan instance fails.
   */
  static Scan convertStringToScan(String base64) throws IOException {
    ByteArrayInputStream bis = new ByteArrayInputStream(Base64.decode(base64));
    DataInputStream dis = new DataInputStream(bis);
    Scan scan = new Scan();
    scan.readFields(dis);
    return scan;
  }
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.