public ScannerWorker(ISegment segment, Cuboid cuboid, GTScanRequest scanRequest, String gtStorage, StorageContext context) { inputArgs = new Object[] { segment, cuboid, scanRequest, gtStorage, context }; if (scanRequest == null) { logger.info("Segment {} will be skipped", segment); internal = new EmptyGTScanner(); return; } final GTInfo info = scanRequest.getInfo(); try { IGTStorage rpc = (IGTStorage) Class.forName(gtStorage) .getConstructor(ISegment.class, Cuboid.class, GTInfo.class, StorageContext.class) .newInstance(segment, cuboid, info, context); // default behavior internal = rpc.getGTScanner(scanRequest); } catch (Exception e) { throw new RuntimeException(e); } checkNPE(); }
if (!filterToggledOn) { //Skip reading this section if you're not profiling! lookAndForget(result); return new EmptyGTScanner(); } else { return new EmptyGTScanner();
public ScannerWorker(ISegment segment, Cuboid cuboid, GTScanRequest scanRequest, String gtStorage, StorageContext context) { inputArgs = new Object[] { segment, cuboid, scanRequest, gtStorage, context }; if (scanRequest == null) { logger.info("Segment {} will be skipped", segment); internal = new EmptyGTScanner(); return; } final GTInfo info = scanRequest.getInfo(); try { IGTStorage rpc = (IGTStorage) Class.forName(gtStorage) .getConstructor(ISegment.class, Cuboid.class, GTInfo.class, StorageContext.class) .newInstance(segment, cuboid, info, context); // default behavior internal = rpc.getGTScanner(scanRequest); } catch (Exception e) { throw new RuntimeException(e); } checkNPE(); }
if (!filterToggledOn) { //Skip reading this section if you're not profiling! lookAndForget(result); return new EmptyGTScanner(); } else { return new EmptyGTScanner();