public interface IIndexTable
IInputKey
-specific slice of an instance store to realize a
IQueryRuntimeContext
. Implemented by a customizable data store that is responsible for:
IInputKey
,Can be specialized for unary / binary / etc., opposite edges or node subtypes, specific types, distributed storage, etc.
Writeable API is specific to the customized implementations (e.g. unary).
Precondition: the associated input key is enumerable, see IQueryMetaContext.isEnumerable(IInputKey)
.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same.
AbstractIndexTable
instead.Modifier and Type | Method and Description |
---|---|
boolean |
containsTuple(ITuple seed)
Simpler form of
enumerateTuples(TupleMask, ITuple) in the case where all values of the tuples are bound
by the seed. |
int |
countTuples(TupleMask seedMask,
ITuple seed) |
java.lang.Iterable<Tuple> |
enumerateTuples(TupleMask seedMask,
ITuple seed)
Returns the tuples, optionally seeded with the given tuple.
|
java.lang.Iterable<? extends java.lang.Object> |
enumerateValues(TupleMask seedMask,
ITuple seed)
Simpler form of
enumerateTuples(TupleMask, ITuple) in the case where all values of the tuples are bound
by the seed except for one. |
IInputKey |
getInputKey() |
IInputKey getInputKey()
java.lang.Iterable<Tuple> enumerateTuples(TupleMask seedMask, ITuple seed)
seedMask
- a mask that extracts those parameters of the input key (from the entire parameter list) that should be
bound to a fixed value; must not be null. Note: any given index must occur at most
once in seedMask.seed
- the tuple of fixed values restricting the row set to be considered, in the same order as given in
parameterSeedMask, so that for each considered row tuple,
projectedParameterSeed.equals(parameterSeedMask.transform(row)) should hold. Must not be null.java.lang.Iterable<? extends java.lang.Object> enumerateValues(TupleMask seedMask, ITuple seed)
enumerateTuples(TupleMask, ITuple)
in the case where all values of the tuples are bound
by the seed except for one.
Selects the tuples in the table, optionally seeded with the given tuple, and then returns the single value from each tuple which is not bound by the seed mask.
seedMask
- a mask that extracts those parameters of the input key (from the entire parameter list) that should be
bound to a fixed value; must not be null. Note: any given index must occur at most
once in seedMask, and seedMask must include all parameters in any arbitrary order except one.seed
- the tuple of fixed values restricting the row set to be considered, in the same order as given in
parameterSeedMask, so that for each considered row tuple,
projectedParameterSeed.equals(parameterSeedMask.transform(row)) should hold. Must not be null.boolean containsTuple(ITuple seed)
enumerateTuples(TupleMask, ITuple)
in the case where all values of the tuples are bound
by the seed.
Returns whether the given tuple is in the table identified by the input key.
seed
- a row tuple of fixed values whose presence in the table is queried