public abstract class UnsortedBaseReducer extends AbstractReducer
Reducer.RowComparator| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
activeSourcesCnt |
protected Iterator<org.h2.value.Value[]> |
iter |
protected org.apache.ignite.internal.processors.query.h2.twostep.UnsortedBaseReducer.PollableQueue<ReduceResultPage> |
queue |
fetched, srcNodes| Constructor and Description |
|---|
UnsortedBaseReducer(GridKernalContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPage0(ReduceResultPage page) |
boolean |
fetchedAll()
Check if all rows has been fetched from all sources.
|
protected org.h2.index.Cursor |
findAllFetched(List<org.h2.result.Row> fetched,
@Nullable org.h2.result.SearchRow first,
@Nullable org.h2.result.SearchRow last) |
void |
setSources(Map<ClusterNode,BitSet> nodesToSegmentsCnt)
Set source nodes.
|
addPage, checkBounds, createDummyLastPage, fail, find, findInStream, hasSource, onBlockEvict, onFailure, pollNextIterator, setPageSize, sourcesprotected final AtomicInteger activeSourcesCnt
protected final org.apache.ignite.internal.processors.query.h2.twostep.UnsortedBaseReducer.PollableQueue<ReduceResultPage> queue
protected Iterator<org.h2.value.Value[]> iter
public UnsortedBaseReducer(GridKernalContext ctx)
ctx - Context.public void setSources(Map<ClusterNode,BitSet> nodesToSegmentsCnt)
setSources in interface ReducersetSources in class AbstractReducernodesToSegmentsCnt - Mapping of nodes to expected count of segments to scan.public boolean fetchedAll()
true If all rows has been fetched, false otherwise.protected void addPage0(ReduceResultPage page)
addPage0 in class AbstractReducerpage - Page.protected org.h2.index.Cursor findAllFetched(List<org.h2.result.Row> fetched, @Nullable @Nullable org.h2.result.SearchRow first, @Nullable @Nullable org.h2.result.SearchRow last)
findAllFetched in class AbstractReducerfetched - Fetched data.first - Row.last - Row.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023