public class DisjointUnionTable extends AbstractIndexTable
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.
Modifier and Type | Field and Description |
---|---|
protected java.util.List<IIndexTable> |
childTables |
tableContext
Constructor and Description |
---|
DisjointUnionTable(IInputKey inputKey,
ITableContext tableContext) |
Modifier and Type | Method and Description |
---|---|
void |
addChildTable(IIndexTable child)
Precondition: the new child currently is, and will forever stay, disjoint from any other child tables.
|
boolean |
containsTuple(ITuple seed)
Simpler form of
IIndexTable.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
IIndexTable.enumerateTuples(TupleMask, ITuple) in the case where all values of the tuples are bound
by the seed except for one. |
java.util.List<IIndexTable> |
getChildTables() |
getInputKey, logError, toString
protected java.util.List<IIndexTable> childTables
public DisjointUnionTable(IInputKey inputKey, ITableContext tableContext)
public java.util.List<IIndexTable> getChildTables()
public void addChildTable(IIndexTable child)
public java.lang.Iterable<Tuple> enumerateTuples(TupleMask seedMask, ITuple seed)
IIndexTable
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.public java.lang.Iterable<? extends java.lang.Object> enumerateValues(TupleMask seedMask, ITuple seed)
IIndexTable
IIndexTable.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.public boolean containsTuple(ITuple seed)
IIndexTable
IIndexTable.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