protected void initRecordScanner() {
final short[] adapterIds =
recordReaderParams.getAdapterIds() != null ? recordReaderParams.getAdapterIds()
: new short[0];
final GeoWaveRowRange range = recordReaderParams.getRowRange();
final byte[] startKey = range.isInfiniteStartSortKey() ? null : range.getStartSortKey();
final byte[] stopKey = range.isInfiniteStopSortKey() ? null : range.getEndSortKey();
final SinglePartitionQueryRanges partitionRange =
new SinglePartitionQueryRanges(
range.getPartitionKey(),
Collections.singleton(new ByteArrayRange(startKey, stopKey)));
final Set<String> authorizations =
Sets.newHashSet(recordReaderParams.getAdditionalAuthorizations());
iterator =
operations.getBatchedRangeRead(
recordReaderParams.getIndex().getName(),
adapterIds,
Collections.singleton(partitionRange),
DataStoreUtils.isMergingIteratorRequired(recordReaderParams, visibilityEnabled),
rowTransformer,
new ClientVisibilityFilter(authorizations)).results();
}