public class IndexedTableJoinMatcher extends Object implements JoinMatcher
| Modifier and Type | Method and Description |
|---|---|
ColumnSelectorFactory |
getColumnSelectorFactory()
Returns a factory for reading columns from the
Joinable that correspond to matched rows. |
boolean |
hasMatch()
Returns whether the active matcher (
JoinMatcher.matchCondition() or JoinMatcher.matchRemainder()) has matched something. |
void |
matchCondition()
|
boolean |
matchingRemainder()
Returns whether this matcher is currently matching the remainder (i.e.
|
void |
matchRemainder()
Matches every row that has not already been matched.
|
void |
nextMatch()
Moves on to the next match.
|
void |
reset()
Clears any active matches.
|
public ColumnSelectorFactory getColumnSelectorFactory()
JoinMatcherJoinable that correspond to matched rows.getColumnSelectorFactory in interface JoinMatcherpublic void matchCondition()
JoinMatcherColumnSelectorFactory and JoinConditionAnalysis supplied to
Joinable.makeJoinMatcher(org.apache.druid.segment.ColumnSelectorFactory, org.apache.druid.segment.join.JoinConditionAnalysis, boolean).
After calling this method, JoinMatcher.hasMatch() will return whether at least one row matched. After reading that
row, JoinMatcher.nextMatch() can be used to move on to the next row.matchCondition in interface JoinMatcherpublic void matchRemainder()
JoinMatcherJoinMatcher.hasMatch() will return whether at least one row matched. After reading that
row, JoinMatcher.nextMatch() can be used to move on to the next row.
Will only work correctly if Joinable.makeJoinMatcher(org.apache.druid.segment.ColumnSelectorFactory, org.apache.druid.segment.join.JoinConditionAnalysis, boolean) was called with remainderNeeded == true.matchRemainder in interface JoinMatcherpublic boolean matchingRemainder()
JoinMatcherJoinMatcher.matchRemainder() was the
most recent match method called).matchingRemainder in interface JoinMatcherpublic boolean hasMatch()
JoinMatcherJoinMatcher.matchCondition() or JoinMatcher.matchRemainder()) has matched something.hasMatch in interface JoinMatcherpublic void nextMatch()
JoinMatcherJoinMatcher.hasMatch() is true.nextMatch in interface JoinMatcherpublic void reset()
JoinMatcherreset in interface JoinMatcherCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.