@API(value=STABLE) public class ValueIndexMaintainer extends StandardIndexMaintainer
TOO_LARGE_VALUE_MESSAGE_LIMIT
state
Constructor and Description |
---|
ValueIndexMaintainer(IndexMaintainerState state) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEvaluateAggregateFunction(IndexAggregateFunction function)
Get whether this index can be used to evaluate the given aggregate function.
|
CompletableFuture<Tuple> |
evaluateAggregateFunction(IndexAggregateFunction function,
TupleRange range,
IsolationLevel isolationLevel)
Evaluate an aggregate function over the given range using this index.
|
RecordCursor<IndexEntry> |
scan(IndexScanType scanType,
TupleRange range,
byte[] continuation,
ScanProperties scanProperties)
Scan entries in the index.
|
protected static KeyExpression |
ungroupedAggregateOperand(KeyExpression key) |
RecordCursor<InvalidIndexEntry> |
validateEntries(byte[] continuation,
ScanProperties scanProperties)
Validate entries in the index.
|
addedRangeWithKey, canDeleteWhere, canDeleteWhere, canEvaluateRecordFunction, checkKeyValueSizes, commonKeys, decodeValue, deleteWhere, evaluateIndex, evaluateRecordFunction, filteredIndexEntries, getExecutor, getGroupedCount, getGroupingCount, getTimer, indexEntryKey, isIdempotent, makeMutable, performOperation, saveIndexEntryAsKeyValue, scan, scanUniquenessViolations, skipUpdateForUnchangedKeys, trimTooLargeTuple, unpackKeyValue, unpackKeyValue, update, updateIndexKeys, updateIndexKeysFunction, updateOneKey, updateUniquenessViolations, validateMissingEntries, validateOrphanEntries
getIndexSubspace, getSecondarySubspace, unsupportedAggregateFunction, unsupportedRecordFunction
public ValueIndexMaintainer(IndexMaintainerState state)
@Nonnull public RecordCursor<IndexEntry> scan(@Nonnull IndexScanType scanType, @Nonnull TupleRange range, @Nullable byte[] continuation, @Nonnull ScanProperties scanProperties)
IndexMaintainer
scan
in class IndexMaintainer
scanType
- the type
of scan to performrange
- the range to scancontinuation
- any continuation from a previous scan invocationscanProperties
- skip, limit and other properties of the scan@Nonnull public RecordCursor<InvalidIndexEntry> validateEntries(@Nullable byte[] continuation, @Nullable ScanProperties scanProperties)
validateEntries
in class StandardIndexMaintainer
continuation
- any continuation from a previous validation invocationscanProperties
- skip, limit and other properties of the validation (use default values if null
)public boolean canEvaluateAggregateFunction(@Nonnull IndexAggregateFunction function)
IndexMaintainer
canEvaluateAggregateFunction
in class StandardIndexMaintainer
function
- the requested aggregate functiontrue
if this index be used to evaluate the given aggregate functionprotected static KeyExpression ungroupedAggregateOperand(@Nonnull KeyExpression key)
@Nonnull public CompletableFuture<Tuple> evaluateAggregateFunction(@Nonnull IndexAggregateFunction function, @Nonnull TupleRange range, @Nonnull IsolationLevel isolationLevel)
IndexMaintainer
evaluateAggregateFunction
in class StandardIndexMaintainer
function
- the aggregate function to evaluaterange
- the range over which to accumulate the aggregateisolationLevel
- the isolation level at which to perform the scan