Class BroadcastCursor
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.opt.join.BroadcastCursor
-
- All Implemented Interfaces:
Comparator<RangeStream>,org.h2.index.Cursor
public class BroadcastCursor extends Object implements org.h2.index.Cursor, Comparator<RangeStream>
Merge cursor from multiple nodes.
-
-
Constructor Summary
Constructors Constructor Description BroadcastCursor(GridH2IndexBase idx, int rangeId, Collection<SegmentKey> segmentKeys, Map<SegmentKey,RangeStream> rangeStreams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(RangeStream o1, RangeStream o2)org.h2.result.Rowget()org.h2.result.SearchRowgetSearchRow()booleannext()booleanprevious()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
BroadcastCursor
public BroadcastCursor(GridH2IndexBase idx, int rangeId, Collection<SegmentKey> segmentKeys, Map<SegmentKey,RangeStream> rangeStreams)
- Parameters:
rangeId- Range ID.segmentKeys- Remote nodes.rangeStreams- Range streams.
-
-
Method Detail
-
compare
public int compare(RangeStream o1, RangeStream o2)
- Specified by:
comparein interfaceComparator<RangeStream>
-
next
public boolean next()
- Specified by:
nextin interfaceorg.h2.index.Cursor
-
get
public org.h2.result.Row get()
- Specified by:
getin interfaceorg.h2.index.Cursor
-
getSearchRow
public org.h2.result.SearchRow getSearchRow()
- Specified by:
getSearchRowin interfaceorg.h2.index.Cursor
-
previous
public boolean previous()
- Specified by:
previousin interfaceorg.h2.index.Cursor
-
-