public final class JoinBatch
extends java.lang.Object
| Constructor and Description |
|---|
JoinBatch(int filtersCount,
TableFilter additionalFilter) |
| Modifier and Type | Method and Description |
|---|---|
static IndexLookupBatch |
createFakeIndexLookupBatch(TableFilter filter)
Create fake index lookup batch for non-batched table filter.
|
static IndexLookupBatch |
createViewIndexLookupBatch(ViewIndex viewIndex)
Create index lookup batch for a view index.
|
IndexLookupBatch |
getLookupBatch(int joinFilterId)
Get the lookup batch for the given table filter.
|
Value |
getValue(int filterId,
Column column)
Get the value for the given column.
|
boolean |
next()
Get next row from the join batch.
|
void |
register(TableFilter filter,
IndexLookupBatch lookupBatch)
Register the table filter and lookup batch.
|
void |
reset(boolean beforeQuery)
Reset state of this batch.
|
java.lang.String |
toString() |
public JoinBatch(int filtersCount,
TableFilter additionalFilter)
filtersCount - number of filters participating in this batched joinadditionalFilter - table filter after this batched join.public IndexLookupBatch getLookupBatch(int joinFilterId)
joinFilterId - joined table filter idpublic void reset(boolean beforeQuery)
beforeQuery - true if reset was called before the query run,
false if afterpublic void register(TableFilter filter, IndexLookupBatch lookupBatch)
filter - table filterlookupBatch - lookup batchpublic Value getValue(int filterId, Column column)
filterId - table filter idcolumn - the columnpublic boolean next()
public static IndexLookupBatch createViewIndexLookupBatch(ViewIndex viewIndex)
viewIndex - view indexnull if batching is not supported
for this querypublic static IndexLookupBatch createFakeIndexLookupBatch(TableFilter filter)
filter - the table filterpublic java.lang.String toString()
toString in class java.lang.Object