Class DistributedLookupBatch
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.opt.join.DistributedLookupBatch
-
- All Implemented Interfaces:
org.h2.index.IndexLookupBatch
public class DistributedLookupBatch extends Object implements org.h2.index.IndexLookupBatch
Index lookup batch.
-
-
Constructor Summary
Constructors Constructor Description DistributedLookupBatch(H2TreeIndex idx, GridCacheContext<?,?> cctx, boolean ucast, int affColId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSearchRows(org.h2.result.SearchRow firstRow, org.h2.result.SearchRow lastRow)List<SegmentKey>broadcastSegments()static GridH2IndexRangeRequestcreateRequest(DistributedJoinContext joinCtx, int batchLookupId, int segmentId)List<Future<org.h2.index.Cursor>>find()StringgetPlanSQL()booleanisBatchFull()SegmentKeyrangeSegment(Object affKeyObj)voidreset(boolean beforeQry)
-
-
-
Constructor Detail
-
DistributedLookupBatch
public DistributedLookupBatch(H2TreeIndex idx, GridCacheContext<?,?> cctx, boolean ucast, int affColId)
- Parameters:
cctx- Cache Cache context.ucast- Unicast or broadcast query.affColId- Affinity column ID.
-
-
Method Detail
-
addSearchRows
public boolean addSearchRows(org.h2.result.SearchRow firstRow, org.h2.result.SearchRow lastRow)- Specified by:
addSearchRowsin interfaceorg.h2.index.IndexLookupBatch
-
isBatchFull
public boolean isBatchFull()
- Specified by:
isBatchFullin interfaceorg.h2.index.IndexLookupBatch
-
find
public List<Future<org.h2.index.Cursor>> find()
- Specified by:
findin interfaceorg.h2.index.IndexLookupBatch
-
reset
public void reset(boolean beforeQry)
- Specified by:
resetin interfaceorg.h2.index.IndexLookupBatch
-
getPlanSQL
public String getPlanSQL()
- Specified by:
getPlanSQLin interfaceorg.h2.index.IndexLookupBatch
-
rangeSegment
public SegmentKey rangeSegment(Object affKeyObj)
- Parameters:
affKeyObj- Affinity key.- Returns:
- Segment key for Affinity key.
-
broadcastSegments
public List<SegmentKey> broadcastSegments()
- Returns:
- Collection of nodes for broadcasting.
-
createRequest
public static GridH2IndexRangeRequest createRequest(DistributedJoinContext joinCtx, int batchLookupId, int segmentId)
- Parameters:
joinCtx- Join context.batchLookupId- Batch lookup ID.segmentId- Segment ID.- Returns:
- Index range request.
-
-