use of org.locationtech.geowave.mapreduce.splits.RecordReaderParams in project geowave by locationtech.
the class MapReduceMemoryOperations method createReader.
@Override
public RowReader<GeoWaveRow> createReader(final RecordReaderParams readerParams) {
final byte[] partitionKey = readerParams.getRowRange().getPartitionKey() == null ? new byte[0] : readerParams.getRowRange().getPartitionKey();
final ByteArrayRange sortRange = new ByteArrayRange(readerParams.getRowRange().getStartSortKey() == null ? new byte[0] : readerParams.getRowRange().getStartSortKey(), readerParams.getRowRange().getEndSortKey() == null ? new byte[0] : readerParams.getRowRange().getEndSortKey());
return createReader(new ReaderParams(readerParams.getIndex(), readerParams.getAdapterStore(), readerParams.getAdapterIndexMappingStore(), readerParams.getInternalAdapterStore(), readerParams.getAdapterIds(), readerParams.getMaxResolutionSubsamplingPerDimension(), readerParams.getAggregation(), readerParams.getFieldSubsets(), readerParams.isMixedVisibility(), false, false, false, new QueryRanges(Collections.singleton(new SinglePartitionQueryRanges(partitionKey, Collections.singleton(sortRange)))), null, readerParams.getLimit(), readerParams.getMaxRangeDecomposition(), null, null, GeoWaveRowIteratorTransformer.NO_OP_TRANSFORMER, readerParams.getAdditionalAuthorizations()));
}
Aggregations