@Override public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException { this.context = context; getCounter = TableRecordReaderImpl.retrieveGetCounterWithStringsParams(context); delegate.initialize( ((TableSnapshotRegionSplit) split).delegate, context.getConfiguration()); }
@Override public float getProgress() throws IOException, InterruptedException { return delegate.getProgress(); }
@Override public void close() throws IOException { delegate.close(); }
@Override public ImmutableBytesWritable getCurrentKey() throws IOException, InterruptedException { return delegate.getCurrentKey(); }
@Override public void close() throws IOException { delegate.close(); }
@Override public long getPos() throws IOException { return delegate.getPos(); }
@Override public long getPos() throws IOException { return delegate.getPos(); }
@Override public ImmutableBytesWritable getCurrentKey() throws IOException, InterruptedException { return delegate.getCurrentKey(); }
@Override public Result getCurrentValue() throws IOException, InterruptedException { return delegate.getCurrentValue(); }
@Override public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException { this.context = context; getCounter = TableRecordReaderImpl.retrieveGetCounterWithStringsParams(context); delegate.initialize( ((TableSnapshotRegionSplit) split).delegate, context.getConfiguration()); }
@Override public float getProgress() throws IOException, InterruptedException { return delegate.getProgress(); }
@Override public float getProgress() throws IOException, InterruptedException { return delegate.getProgress(); }
@Override public void close() throws IOException { delegate.close(); }
@Override public Result getCurrentValue() throws IOException, InterruptedException { return delegate.getCurrentValue(); }
@Override public long getPos() throws IOException { return delegate.getPos(); }
@Override public Result getCurrentValue() throws IOException, InterruptedException { return delegate.getCurrentValue(); }
@Override public void close() throws IOException { delegate.close(); } }
@Override public boolean next(ImmutableBytesWritable key, Result value) throws IOException { if (!delegate.nextKeyValue()) { return false; } ImmutableBytesWritable currentKey = delegate.getCurrentKey(); key.set(currentKey.get(), currentKey.getOffset(), currentKey.getLength()); value.copyFrom(delegate.getCurrentValue()); return true; }
@Override public void close() throws IOException { delegate.close(); } }
@Override public boolean nextKeyValue() throws IOException, InterruptedException { boolean result = delegate.nextKeyValue(); if (result) { ScanMetrics scanMetrics = delegate.getScanner().getScanMetrics(); if (scanMetrics != null && context != null) { TableRecordReaderImpl.updateCounters(scanMetrics, 0, getCounter, context, 0); } } return result; }