public abstract class BaseLeftInheritanceTuple extends Tuple
Left inheritance tuples inherit their first few elements from another tuple, and extend it with additional "local" elements.
| Modifier and Type | Field and Description |
|---|---|
protected Tuple |
ancestor
This object contains the same elements as the ancestor on the first inheritedIndex positions
|
protected int |
inheritedIndex
The number of elements that aren't stored locally, but inherited from an ancestor Tuple instead.
|
cachedHash| Constructor and Description |
|---|
BaseLeftInheritanceTuple(Tuple ancestor) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getLocalSize() |
protected boolean |
internalEquals(ITuple other)
Optimized equals calculation (prediction: true, since hash values match)
|
protected abstract boolean |
localEquals(BaseLeftInheritanceTuple other)
Checks the equivalence of local elements only, after ancestor tuple has been determined to be equal.
|
equals, hashCode, replaceAll, toImmutabledoCalcHash, getDistinctElements, getElements, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toStringprotected final int inheritedIndex
protected final Tuple ancestor
public BaseLeftInheritanceTuple(Tuple ancestor)
ancestor - public abstract int getLocalSize()
protected boolean internalEquals(ITuple other)
internalEquals in class AbstractTupleprotected abstract boolean localEquals(BaseLeftInheritanceTuple other)