public Iterator<GTRecord> iterator() { // to troubleshoot a myth NPE on line: return internal.iterator() checkNPE(); return internal.iterator(); }
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(); }
public Iterator<GTRecord> iterator() { // to troubleshoot a myth NPE on line: return internal.iterator() checkNPE(); return internal.iterator(); }
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(); }