Class DistributedLookupBatch

  • All Implemented Interfaces:
    org.h2.index.IndexLookupBatch

    public class DistributedLookupBatch
    extends Object
    implements org.h2.index.IndexLookupBatch
    Index lookup batch.
    • 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:
        addSearchRows in interface org.h2.index.IndexLookupBatch
      • isBatchFull

        public boolean isBatchFull()
        Specified by:
        isBatchFull in interface org.h2.index.IndexLookupBatch
      • find

        public List<Future<org.h2.index.Cursor>> find()
        Specified by:
        find in interface org.h2.index.IndexLookupBatch
      • reset

        public void reset​(boolean beforeQry)
        Specified by:
        reset in interface org.h2.index.IndexLookupBatch
      • getPlanSQL

        public String getPlanSQL()
        Specified by:
        getPlanSQL in interface org.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.