Interface OuterSortFlusher

    • Method Detail

      • sources

        default void sources​(int sources)
        Number of path to generate entries iterator in flush method. This method must be called before flush if sort with subKv.
      • combiner

        default org.apache.hugegraph.computer.core.combiner.Combiner<Pointer> combiner()
        Combiner entries with the same key.
      • flush

        void flush​(EntryIterator entries,
                   KvEntryFileWriter writer)
            throws java.io.IOException
        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.
        Throws:
        java.io.IOException