public interface Aggregator<V extends Value<?>>
| 限定符和类型 | 方法和说明 |
|---|---|
V |
aggregatedValue()
Used by worker or master to get the aggregated value.
|
void |
aggregatedValue(V value)
Used by worker or master to set current aggregated value directly.
|
default void |
aggregateValue(double value)
Used by worker to aggregate a double value.
|
default void |
aggregateValue(float value)
Used by worker to aggregate a float value.
|
default void |
aggregateValue(int value)
Used by worker to aggregate an int value.
|
default void |
aggregateValue(long value)
Used by worker to aggregate a long value.
|
void |
aggregateValue(V value)
Used by worker to aggregate a new value when compute a vertex.
|
Aggregator<V> |
copy()
Return cloned object of this instance.
|
void |
repair(ComputerContext context)
Repair the object because some fields may not be deserialized.
|
void aggregateValue(V value)
value - The value to be aggregateddefault void aggregateValue(int value)
default void aggregateValue(long value)
default void aggregateValue(float value)
default void aggregateValue(double value)
V aggregatedValue()
void aggregatedValue(V value)
Aggregator<V> copy()
void repair(ComputerContext context)
Copyright © 2020–2021. All rights reserved.