Class UnsortedBaseReducer

    • Field Detail

      • activeSourcesCnt

        protected final AtomicInteger activeSourcesCnt
      • queue

        protected final org.apache.ignite.internal.processors.query.h2.twostep.UnsortedBaseReducer.PollableQueue<ReduceResultPage> queue
      • iter

        protected Iterator<org.h2.value.Value[]> iter
    • Constructor Detail

      • UnsortedBaseReducer

        public UnsortedBaseReducer​(GridKernalContext ctx)
        Constructor.
        Parameters:
        ctx - Context.
    • Method Detail

      • fetchedAll

        public boolean fetchedAll()
        Check if all rows has been fetched from all sources.
        Returns:
        true If all rows has been fetched, false otherwise.
      • findAllFetched

        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)
        Specified by:
        findAllFetched in class AbstractReducer
        Parameters:
        fetched - Fetched data.
        first - Row.
        last - Row.
        Returns:
        Cursor over fetched data.