|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.table.JoinBatch
public final class JoinBatch
Support for asynchronous batched index lookups on joins.
Index.createLookupBatch(TableFilter),
IndexLookupBatch| Constructor Summary | |
|---|---|
JoinBatch(int filtersCount,
TableFilter additionalFilter)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JoinBatch(int filtersCount,
TableFilter additionalFilter)
filtersCount - number of filters participating in this batched joinadditionalFilter - table filter after this batched join.| Method Detail |
|---|
public IndexLookupBatch getLookupBatch(int joinFilterId)
joinFilterId - joined table filter id
public void reset(boolean beforeQuery)
beforeQuery - true if reset was called before the query run,
false if after
public void register(TableFilter filter,
IndexLookupBatch lookupBatch)
filter - table filterlookupBatch - lookup batch
public Value getValue(int filterId,
Column column)
filterId - table filter idcolumn - the column
public boolean next()
public static IndexLookupBatch createViewIndexLookupBatch(ViewIndex viewIndex)
viewIndex - view index
null if batching is not supported
for this querypublic static IndexLookupBatch createFakeIndexLookupBatch(TableFilter filter)
filter - the table filter
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||