I
- Vertex id typeV
- Vertex value typeE
- Edge value typeP
- Previous valuepublic class SendMessageChain<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,P> extends Object
Modifier and Type | Method and Description |
---|---|
Block |
endConsume(ConsumerWithVertex<I,V,E,P> messagesConsumer)
End chain by processing messages received within the last link
in the chain.
|
Block |
endCustom(Function<SupplierFromVertex<I,V,E,P>,Block> createBlockToAttach)
End chain by providing a function that will produce Block to be attached
to the end of current chain, given a supplier of messages received
within the last link in the chain.
|
<S,R extends org.apache.hadoop.io.Writable> |
endReduce(String name,
ReduceOperation<S,R> reduceOp,
FunctionWithVertex<I,V,E,P,S> valueSupplier,
Consumer<R> reducedValueConsumer)
End chain by giving received messages to valueSupplier,
to produce value that should be reduced, and consumed on master
by reducedValueConsumer.
|
<S,R extends org.apache.hadoop.io.Writable> |
endReduceWithMaster(String name,
ReduceOperation<S,R> reduceOp,
FunctionWithVertex<I,V,E,P,S> valueSupplier,
PairConsumer<R,BlockMasterApi> reducedValueConsumer)
End chain by giving received messages to valueSupplier,
to produce value that should be reduced, and consumed on master
by reducedValueConsumer.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,P extends org.apache.hadoop.io.Writable> |
startCustom(Function<ConsumerWithVertex<I,V,E,P>,Block> createStartingBlock)
Start chain by providing a function that will produce Block representing
beginning of the chain, given a consumer of messages send
by the last link in the created block.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> |
startSend(String name,
Class<M> messageClass,
SupplierFromVertex<I,V,E,M> messageSupplier,
SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
Start chain with sending message provided by messageSupplier to all
targets provided by targetsSupplier.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> |
startSend(String name,
MessageCombiner<? super I,M> messageCombiner,
SupplierFromVertex<I,V,E,M> messageSupplier,
SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
Start chain with sending message provided by messageSupplier to all
targets provided by targetsSupplier, and use given messageCombiner to
combine messages together.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> |
startSendToNeighbors(String name,
Class<M> messageClass,
SupplierFromVertex<I,V,E,M> messageSupplier)
Start chain with sending message provided by messageSupplier to all
neighbors of a current vertex.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> |
startSendToNeighbors(String name,
MessageCombiner<? super I,M> messageCombiner,
SupplierFromVertex<I,V,E,M> messageSupplier)
Start chain with sending message provided by messageSupplier to all
neighbors of a current vertex, and use given messageCombiner to
combine messages together.
|
<M extends org.apache.hadoop.io.Writable> |
thenSend(String name,
Class<M> messageClass,
FunctionWithVertex<I,V,E,P,M> messageSupplier,
SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
Give previously received message(s) to messageSupplier, and send message
it returns to all targets provided by targetsSupplier.
|
<M extends org.apache.hadoop.io.Writable> |
thenSend(String name,
MessageCombiner<? super I,M> messageCombiner,
FunctionWithVertex<I,V,E,P,M> messageSupplier,
SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
Give previously received message(s) to messageSupplier, and send message
it returns to all targets provided by targetsSupplier, and use given
messageCombiner to combine messages together.
|
<M extends org.apache.hadoop.io.Writable> |
thenSendToNeighbors(String name,
Class<M> messageClass,
FunctionWithVertex<I,V,E,P,M> messageSupplier)
Give previously received message(s) to messageSupplier, and send message
it returns to all neighbors of current vertex.
|
<M extends org.apache.hadoop.io.Writable> |
thenSendToNeighbors(String name,
MessageCombiner<? super I,M> messageCombiner,
FunctionWithVertex<I,V,E,P,M> messageSupplier)
Give previously received message(s) to messageSupplier, and send message
it returns to all neighbors of current vertex, and use given
messageCombiner to combine messages together.
|
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,Iterable<M>> startSend(String name, Class<M> messageClass, SupplierFromVertex<I,V,E,M> messageSupplier, SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,M> startSend(String name, MessageCombiner<? super I,M> messageCombiner, SupplierFromVertex<I,V,E,M> messageSupplier, SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,Iterable<M>> startSendToNeighbors(String name, Class<M> messageClass, SupplierFromVertex<I,V,E,M> messageSupplier)
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,M> startSendToNeighbors(String name, MessageCombiner<? super I,M> messageCombiner, SupplierFromVertex<I,V,E,M> messageSupplier)
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,P extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,P> startCustom(Function<ConsumerWithVertex<I,V,E,P>,Block> createStartingBlock)
public <M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,Iterable<M>> thenSend(String name, Class<M> messageClass, FunctionWithVertex<I,V,E,P,M> messageSupplier, SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
public <M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,Iterable<M>> thenSendToNeighbors(String name, Class<M> messageClass, FunctionWithVertex<I,V,E,P,M> messageSupplier)
public <M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,M> thenSend(String name, MessageCombiner<? super I,M> messageCombiner, FunctionWithVertex<I,V,E,P,M> messageSupplier, SupplierFromVertex<I,V,E,Iterator<I>> targetsSupplier)
public <M extends org.apache.hadoop.io.Writable> SendMessageChain<I,V,E,M> thenSendToNeighbors(String name, MessageCombiner<? super I,M> messageCombiner, FunctionWithVertex<I,V,E,P,M> messageSupplier)
public <S,R extends org.apache.hadoop.io.Writable> Block endReduce(String name, ReduceOperation<S,R> reduceOp, FunctionWithVertex<I,V,E,P,S> valueSupplier, Consumer<R> reducedValueConsumer)
public <S,R extends org.apache.hadoop.io.Writable> Block endReduceWithMaster(String name, ReduceOperation<S,R> reduceOp, FunctionWithVertex<I,V,E,P,S> valueSupplier, PairConsumer<R,BlockMasterApi> reducedValueConsumer)
public Block endConsume(ConsumerWithVertex<I,V,E,P> messagesConsumer)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.