public AsyncInputFormatIteratorWrapper( final Iterator<GeoWaveRow> reader, final QueryFilter[] queryFilters, final TransientAdapterStore adapterStore, final InternalAdapterStore internalAdapterStore, final Index index, final boolean isOutputWritable, final BatchDataIndexRetrieval dataIndexRetrieval) { super( reader, queryFilters, adapterStore, internalAdapterStore, index, isOutputWritable, dataIndexRetrieval); batchHelper = new BatchDataIndexRetrievalIteratorHelper<>(dataIndexRetrieval); }
public V postDecodeRow(final V decodedRow) { return postDecodeRow(decodedRow, (Function<V, O>) NO_OP); }
@Override protected void findNext() { super.findNext(); final boolean hasNextValue = (nextEntry != null); final Pair<GeoWaveInputKey, T> batchNextValue = batchHelper.postFindNext(hasNextValue, reader.hasNext()); if (!hasNextValue) { nextEntry = batchNextValue; } }
@Override public boolean hasNext() { batchHelper.preHasNext(); return super.hasNext(); }
@Override protected void findNext() { super.findNext(); final boolean hasNextValue = (nextValue != null); final T batchNextValue = batchHelper.postFindNext(hasNextValue, hasNextScannedResult()); if (!hasNextValue) { nextValue = batchNextValue; } } }
@Override public boolean hasNext() { batchHelper.preHasNext(); return super.hasNext(); }
@Override protected T decodeRow( final GeoWaveRow row, final QueryFilter[] clientFilters, final Index index) { final T retVal = super.decodeRow(row, clientFilters, index); return batchHelper.postDecodeRow(retVal); }
public AsyncNativeEntryIteratorWrapper( final PersistentAdapterStore adapterStore, final Index index, final Iterator<GeoWaveRow> scannerIt, final QueryFilter[] clientFilters, final ScanCallback<T, ? extends GeoWaveRow> scanCallback, final byte[] fieldSubsetBitmask, final double[] maxResolutionSubsamplingPerDimension, final boolean decodePersistenceEncoding, final BatchDataIndexRetrieval dataIndexRetrieval) { super( adapterStore, index, scannerIt, clientFilters, scanCallback, fieldSubsetBitmask, maxResolutionSubsamplingPerDimension, decodePersistenceEncoding, dataIndexRetrieval); batchHelper = new BatchDataIndexRetrievalIteratorHelper<>(dataIndexRetrieval); }
@Override protected Pair<GeoWaveInputKey, T> decodeRowToEntry( final GeoWaveRow row, final QueryFilter[] clientFilters, final InternalDataAdapter<T> adapter, final Index index) { Object value = decodeRowToValue(row, clientFilters, adapter, index); if (value == null) { return null; } value = batchHelper.postDecodeRow((T) value, v -> valueToEntry(row, v)); if (value == null) { return null; } return valueToEntry(row, value); } }