| Modifier and Type | Interface and Description |
|---|---|
interface |
Aggregator<V extends Value> |
| Modifier and Type | Method and Description |
|---|---|
<V extends Value> |
Aggregator4Master.aggregatedValue(String name)
Get the aggregated value.
|
<V extends Value> |
Aggregator4Worker.aggregatedValue(String name)
Get the aggregated value in worker-computation, the value is aggregated
by master at previous superstep, it won't be changed in a superstep.
|
<V extends Value> |
Aggregator4Master.aggregatedValue(String name,
V value)
Set the aggregated value by master-computation, generally users may not
need to explicitly set a aggregated value.
|
<V extends Value> |
Aggregator4Worker.aggregateValue(String name,
V value)
Set aggregate value in worker.
|
<V extends Value> |
Aggregator4Worker.createAggregator(String name)
Create aggregator by name in worker-computation, the aggregator is
registered by master-computation.
|
<V extends Value,C extends Aggregator<V>> |
Aggregator4Master.registerAggregator(String name,
Class<C> aggregator)
Register the aggregator with specified name.
|
<V extends Value,C extends Combiner<V>> |
Aggregator4Master.registerAggregator(String name,
ValueType type,
Class<C> combiner)
Register aggregator with specified value type and a combiner which can
combine values with specified value type.
|
<V extends Value,C extends Combiner<V>> |
Aggregator4Master.registerAggregator(String name,
V defaultValue,
Class<C> combiner)
Register aggregator with specified default value(include type) and
a combiner which can combine values with specified value type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OverwriteCombiner<T extends Value> |
class |
ValueMaxCombiner<T extends Value> |
class |
ValueMinCombiner<T extends Value> |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Value> |
Combiner.combineAll(Combiner<T> combiner,
Iterator<T> values) |
| Modifier and Type | Method and Description |
|---|---|
<V extends Value> |
GraphFactory.createVertex(Id id,
V value) |
<V extends Value> |
GraphFactory.createVertex(String label,
Id id,
V value) |
| Modifier and Type | Method and Description |
|---|---|
Value |
GraphFactory.createValue(byte code) |
Value |
GraphFactory.createValue(ValueType type) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Value> |
Edge.property(String key) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Id |
| Modifier and Type | Method and Description |
|---|---|
<T extends Value> |
Properties.get(String key) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Value> |
Properties.get() |
| Modifier and Type | Method and Description |
|---|---|
void |
Properties.put(String key,
Value value) |
void |
Properties.putIfAbsent(String key,
Value value) |
| Modifier and Type | Method and Description |
|---|---|
void |
Properties.putAll(Map<String,Value> kvs) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Value.CustomizeValue<T>
Value class with template parameter for composite subclass extension,
A customize Value class of the algorithm may need to extend this class.
|
static interface |
Value.Tvalue<T>
Value class with template parameter for simple subclass extension
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanValue |
class |
DoubleValue |
class |
FloatValue |
class |
IdList |
class |
IdListList |
class |
IntValue |
class |
ListValue<T extends Value.Tvalue<?>> |
class |
LongValue |
class |
NullValue |
class |
StringValue |
| Modifier and Type | Method and Description |
|---|---|
Value |
Value.copy() |
default Value |
Value.CustomizeValue.copy() |
| Modifier and Type | Method and Description |
|---|---|
void |
StringValue.assign(Value other) |
void |
ListValue.assign(Value other) |
void |
LongValue.assign(Value other) |
void |
DoubleValue.assign(Value other) |
void |
FloatValue.assign(Value other) |
void |
IntValue.assign(Value other) |
void |
Value.assign(Value value)
Assign a new value to this object
|
default void |
Value.CustomizeValue.assign(Value value) |
void |
NullValue.assign(Value other) |
void |
BooleanValue.assign(Value other) |
default void |
Value.checkAssign(Value other)
Check whether a value can be assigned to this object
|
int |
StringValue.compareTo(Value obj) |
int |
ListValue.compareTo(Value obj) |
int |
LongValue.compareTo(Value obj) |
int |
DoubleValue.compareTo(Value obj) |
int |
FloatValue.compareTo(Value obj) |
int |
IntValue.compareTo(Value obj) |
default int |
Value.CustomizeValue.compareTo(Value other) |
int |
NullValue.compareTo(Value obj) |
int |
BooleanValue.compareTo(Value obj) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Value> |
Vertex.property(String key) |
<V extends Value> |
Vertex.value() |
<V extends Value> |
Vertex.value(V value) |
| Modifier and Type | Method and Description |
|---|---|
Value |
GraphComputeInput.readValue(RandomAccessInput in) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.lang3.tuple.Pair<Id,Value> |
GraphComputeInput.readMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
GraphComputeOutput.writeMessage(Id id,
Value value) |
void |
GraphComputeOutput.writeValue(RandomAccessOutput out,
Value value) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Computation<M extends Value>
Computation is used to compute vertex.
|
interface |
FilterComputation<M extends Value>
FilterComputation is computation that can't combine the messages.
|
interface |
ReduceComputation<M extends Value>
For algorithm with combiner that combine all the messages, and the
algorithm can only receive a message for a vertex.
|
| Modifier and Type | Method and Description |
|---|---|
<V extends Value> |
ComputationContext.combiner() |
default <M extends Value> |
ComputationContext.sendMessagesToAllEdges(Vertex vertex,
Iterator<M> values)
Send all values to all adjacent vertices of specified vertex.
|
default <M extends Value> |
ComputationContext.sendMessagesToAllEdgesIf(Vertex vertex,
Iterator<M> values,
java.util.function.BiFunction<M,Id,Boolean> filter)
Send all values to filtered adjacent vertices of specified vertex.
|
default <M extends Value> |
ComputationContext.sendMessageToAllEdgesIf(Vertex vertex,
M value,
java.util.function.BiFunction<M,Id,Boolean> filter)
Send all values to filtered adjacent vertices of specified vertex.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ComputationContext.sendMessage(Id target,
Value value)
Send value to specified target vertex.
|
default void |
ComputationContext.sendMessageToAllEdges(Vertex vertex,
Value value)
Send value to all adjacent vertices of specified vertex.
|
Copyright © 2020–2022. All rights reserved.