Package nz.org.riskscape.engine.join
Class NoIndexIndexer
java.lang.Object
nz.org.riskscape.engine.join.JoinIndexer
nz.org.riskscape.engine.join.NoIndexIndexer
JoinIndexer
that does nothing, so should always work, albeit slowly
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.org.riskscape.engine.join.JoinIndexer
JoinIndexer.Constructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JoinIndexer.Constructor
static final int
The default capacity that the index will be created to contain.Fields inherited from class nz.org.riskscape.engine.join.JoinIndexer
expressionRealizer, join
-
Constructor Summary
ConstructorDescriptionNoIndexIndexer
(nz.org.riskscape.engine.join.Join join, int initialIndexSize, nz.org.riskscape.engine.rl.ExpressionRealizer expressionRealizer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToIndex
(nz.org.riskscape.engine.Tuple rhs) nz.org.riskscape.engine.relation.TupleIterator
createRhsIterator
(nz.org.riskscape.engine.Tuple lhs) Create aTupleIterator
that will contain at least the set ofTuple
s that are needed to completely join the lhs to the rhs based on the join.boolean
isUsable()
toString()
Methods inherited from class nz.org.riskscape.engine.join.JoinIndexer
getExpressionRealizer, getJoin
-
Field Details
-
DEFAULT_INITIAL_INDEX_SIZE
public static final int DEFAULT_INITIAL_INDEX_SIZEThe default capacity that the index will be created to contain.
The NoIndexIndexer contains items individually. So for best performance the initial index should be as large as the expected number of items.
- See Also:
-
CONSTRUCTOR
-
-
Constructor Details
-
NoIndexIndexer
public NoIndexIndexer(nz.org.riskscape.engine.join.Join join, int initialIndexSize, nz.org.riskscape.engine.rl.ExpressionRealizer expressionRealizer)
-
-
Method Details
-
addToIndex
public void addToIndex(nz.org.riskscape.engine.Tuple rhs) - Specified by:
addToIndex
in classJoinIndexer
-
createRhsIterator
public nz.org.riskscape.engine.relation.TupleIterator createRhsIterator(nz.org.riskscape.engine.Tuple lhs) Description copied from class:JoinIndexer
Create a
TupleIterator
that will contain at least the set ofTuple
s that are needed to completely join the lhs to the rhs based on the join.- Specified by:
createRhsIterator
in classJoinIndexer
-
isUsable
public boolean isUsable()- Specified by:
isUsable
in classJoinIndexer
- Returns:
- true if this join can be used, e.g. it's suitable for the query and join. This is intended as a simpler
way of providing a set of implementations such that the
DefaultJoiner
can work through which ones are appropriate by checking this method.
-
toString
-