Search in sources :

Example 11 with EntryIterator

use of com.baidu.hugegraph.computer.core.store.EntryIterator in project hugegraph-computer by hugegraph.

the class DefaultSorter method mergeBuffers.

public void mergeBuffers(List<EntryIterator> entries, KvEntryFileWriter writer, OuterSortFlusher flusher) throws IOException {
    InputsSorter sorter = new InputsSorterImpl();
    EntryIterator result = sorter.sort(entries);
    flusher.flush(result, writer);
}
Also used : InputsSorterImpl(com.baidu.hugegraph.computer.core.sort.sorter.InputsSorterImpl) InputsSorter(com.baidu.hugegraph.computer.core.sort.sorter.InputsSorter) EntryIterator(com.baidu.hugegraph.computer.core.store.EntryIterator)

Aggregations

EntryIterator (com.baidu.hugegraph.computer.core.store.EntryIterator)11 InputsSorterImpl (com.baidu.hugegraph.computer.core.sort.sorter.InputsSorterImpl)3 KvEntryFileWriter (com.baidu.hugegraph.computer.core.store.KvEntryFileWriter)3 KvEntry (com.baidu.hugegraph.computer.core.store.entry.KvEntry)3 Test (org.junit.Test)3 Config (com.baidu.hugegraph.computer.core.config.Config)2 BytesId (com.baidu.hugegraph.computer.core.graph.id.BytesId)2 Id (com.baidu.hugegraph.computer.core.graph.id.Id)2 Properties (com.baidu.hugegraph.computer.core.graph.properties.Properties)2 LongValue (com.baidu.hugegraph.computer.core.graph.value.LongValue)2 BytesInput (com.baidu.hugegraph.computer.core.io.BytesInput)2 Sorter (com.baidu.hugegraph.computer.core.sort.Sorter)2 InputsSorter (com.baidu.hugegraph.computer.core.sort.sorter.InputsSorter)2 KvEntriesInput (com.baidu.hugegraph.computer.core.store.buffer.KvEntriesInput)2 HgkvDirReaderImpl (com.baidu.hugegraph.computer.core.store.file.hgkvfile.reader.HgkvDirReaderImpl)2 DisperseEvenlySelector (com.baidu.hugegraph.computer.core.store.file.select.DisperseEvenlySelector)2 InputFilesSelector (com.baidu.hugegraph.computer.core.store.file.select.InputFilesSelector)2 SelectedFiles (com.baidu.hugegraph.computer.core.store.file.select.SelectedFiles)2 IntValueSumCombiner (com.baidu.hugegraph.computer.core.combiner.IntValueSumCombiner)1 PointerCombiner (com.baidu.hugegraph.computer.core.combiner.PointerCombiner)1