Search in sources :

Example 1 with RecordReaderParams

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()));
}
Also used : SinglePartitionQueryRanges(org.locationtech.geowave.core.index.SinglePartitionQueryRanges) QueryRanges(org.locationtech.geowave.core.index.QueryRanges) RecordReaderParams(org.locationtech.geowave.mapreduce.splits.RecordReaderParams) ReaderParams(org.locationtech.geowave.core.store.operations.ReaderParams) SinglePartitionQueryRanges(org.locationtech.geowave.core.index.SinglePartitionQueryRanges) ByteArrayRange(org.locationtech.geowave.core.index.ByteArrayRange)

Aggregations

ByteArrayRange (org.locationtech.geowave.core.index.ByteArrayRange)1 QueryRanges (org.locationtech.geowave.core.index.QueryRanges)1 SinglePartitionQueryRanges (org.locationtech.geowave.core.index.SinglePartitionQueryRanges)1 ReaderParams (org.locationtech.geowave.core.store.operations.ReaderParams)1 RecordReaderParams (org.locationtech.geowave.mapreduce.splits.RecordReaderParams)1