@Override
public RecordReader<E, Void> createRecordReader(InputSplit inputSplit,
TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException {
Configuration conf = Hadoop.TaskAttemptContext
.getConfiguration.invoke(taskAttemptContext);
TableInputFormat delegate = getDelegate(conf);
RecordReader<E, Void> unfilteredRecordReader = new HBaseRecordReaderWrapper<E>(
delegate.createRecordReader(inputSplit, taskAttemptContext), entityMapper);
if (view != null) {
// use the constraints to filter out entities from the reader
return new FilteredRecordReader<E>(unfilteredRecordReader,
view.getConstraints(), view.getAccessor());
}