Search in sources :

Example 1 with MessageValueCombiner

use of com.baidu.hugegraph.computer.core.combiner.MessageValueCombiner in project hugegraph-computer by hugegraph.

the class SortManager method createMessageCombiner.

private PointerCombiner createMessageCombiner() {
    Config config = this.context.config();
    Combiner<Value> valueCombiner = config.createObject(ComputerOptions.WORKER_COMBINER_CLASS, false);
    if (valueCombiner == null) {
        return null;
    }
    return new MessageValueCombiner(this.context);
}
Also used : Config(com.baidu.hugegraph.computer.core.config.Config) Value(com.baidu.hugegraph.computer.core.graph.value.Value) MessageValueCombiner(com.baidu.hugegraph.computer.core.combiner.MessageValueCombiner)

Aggregations

MessageValueCombiner (com.baidu.hugegraph.computer.core.combiner.MessageValueCombiner)1 Config (com.baidu.hugegraph.computer.core.config.Config)1 Value (com.baidu.hugegraph.computer.core.graph.value.Value)1