private boolean useSecondaryId(final MetadataQuery query) { return !MetadataType.STATS.equals(metadataType) || query.hasSecondaryId(); } }
public static boolean isSortByKeyRequired(final RangeReaderParams<?> params) { // subsampling needs to be sorted by sort key to work properly return (params.getMaxResolutionSubsamplingPerDimension() != null) && (params.getMaxResolutionSubsamplingPerDimension().length > 0); }
default <T> Deleter<T> createDeleter(final ReaderParams<T> readerParams) { return new QueryAndDeleteByRow<>( createRowDeleter( readerParams.getIndex().getName(), readerParams.getAdapterStore(), readerParams.getInternalAdapterStore(), readerParams.getAdditionalAuthorizations()), createReader(readerParams)); }
default void delete(final DataIndexReaderParams readerParams) { try (QueryAndDeleteByRow<GeoWaveRow> defaultDeleter = new QueryAndDeleteByRow<>( createRowDeleter( DataIndexUtils.DATA_ID_INDEX.getName(), readerParams.getAdapterStore(), readerParams.getInternalAdapterStore()), createReader(readerParams))) { while (defaultDeleter.hasNext()) { defaultDeleter.next(); } } }
protected String getColumnOptionValue(final Map<String, String> options) { // if this is not "row" merging than it is merging stats on the metadata // table return MetadataType.STATS.name(); }
public static boolean isMergingIteratorRequired( final RangeReaderParams<?> readerParams, final boolean visibilityEnabled) { return readerParams.isClientsideRowMerging() || (readerParams.isMixedVisibility() && visibilityEnabled); } }
@Override public void close() { delegateDeleter.close(); } }
@Override public void close() { if (closeable != null) { closeable.close(); closeable = null; } }
@Override public void close() { for (final RowReader<GeoWaveRow> r : readers) { r.close(); } } }, Iterators.concat(readers.iterator())));
public R maxResolutionSubsamplingPerDimension( final double[] maxResolutionSubsamplingPerDimension) { this.maxResolutionSubsamplingPerDimension = maxResolutionSubsamplingPerDimension; return builder(); }
@Override public boolean hasNext() { if (next == null) { computeNext(); } return next != null; }
@Override public boolean hasNext() { if (nextResult == null) { computeNext(); } return nextResult != null; }
public R isAuthorizationsLimiting(final boolean isAuthorizationsLimiting) { this.isAuthorizationsLimiting = isAuthorizationsLimiting; return builder(); } }
public ReaderParamsBuilder<T> coordinateRanges( final List<MultiDimensionalCoordinateRangesArray> coordinateRanges) { this.coordinateRanges = coordinateRanges; return builder(); }
public static boolean isSortByKeyRequired(final RangeReaderParams<?> params) { // subsampling needs to be sorted by sort key to work properly return (params.getMaxResolutionSubsamplingPerDimension() != null) && (params.getMaxResolutionSubsamplingPerDimension().length > 0); }
@Override public R additionalAuthorizations(final String... authorizations) { additionalAuthorizations = authorizations; return builder(); } }
@Override public GeoWaveRow next() { if (next == null) { computeNext(); } final GeoWaveRow retVal = next; next = null; return retVal; }
@SuppressWarnings("unchecked") @Override public T next() { if (nextResult == null) { computeNext(); } final Object next = nextResult; nextResult = null; return (T) next; }
public R limit(final Integer limit) { this.limit = limit; return builder(); }