Class CombineSubKvOuterSortFlusher

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush​(EntryIterator entries, KvEntryFileWriter writer)
      Combine the list of inputValues, and write the inputKey and combined result length and results to HgkvDirWriter.
      void sources​(int sources)
      Number of path to generate entries iterator in flush method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CombineSubKvOuterSortFlusher

        public CombineSubKvOuterSortFlusher​(PointerCombiner combiner,
                                            int subKvFlushThreshold)
    • Method Detail

      • sources

        public void sources​(int sources)
        Description copied from interface: OuterSortFlusher
        Number of path to generate entries iterator in flush method. This method must be called before flush if sort with subKv.
        Specified by:
        sources in interface OuterSortFlusher
      • flush

        public void flush​(EntryIterator entries,
                          KvEntryFileWriter writer)
                   throws java.io.IOException
        Description copied from interface: OuterSortFlusher
        Combine the list of inputValues, and write the inputKey and combined result length and results to HgkvDirWriter. The caller maybe needs to call the sources method before call this method.
        Specified by:
        flush in interface OuterSortFlusher
        Throws:
        java.io.IOException