I
- Vertex id typeV
- Vertex value typeE
- Edge value typeM
- Message typeS
- Execution stage typepublic class Piece<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,S> extends DefaultParentPiece<I,V,E,M,Object,NoMessage,S>
AbstractPiece.InnerVertexReceiver, AbstractPiece.InnerVertexSender
MESSAGE_ENCODE_AND_STORE_TYPE_MIN_FORCE
Constructor and Description |
---|
Piece() |
Modifier and Type | Method and Description |
---|---|
void |
workerContextReceive(BlockWorkerContextReceiveApi workerContextApi,
S executionStage,
Object workerValue,
List<NoMessage> workerMessages)
Override to have worker context receive computation.
|
void |
workerContextSend(BlockWorkerContextSendApi<I,NoMessage> workerContextApi,
S executionStage,
Object workerValue)
Override to have worker context send computation.
|
allowOneMessageToManyIdsEncoding, getMessageClass, getMessageClasses, getMessageCombiner, getMessageFactory, getVertexSender, getWrappedVertexSender, receiveIgnoreExistingVertices, reduceDouble, reduceFloat, reduceInt, reduceLong, registerReducers, wrappedRegisterReducers
equals, forAllPossiblePieces, getPieceCount, getVertexReceiver, hashCode, iterator, masterCompute, nextExecutionStage, registerAggregators, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public final void workerContextSend(BlockWorkerContextSendApi<I,NoMessage> workerContextApi, S executionStage, Object workerValue)
AbstractPiece
workerContextSend
in class AbstractPiece<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,Object,NoMessage,S>
public final void workerContextReceive(BlockWorkerContextReceiveApi workerContextApi, S executionStage, Object workerValue, List<NoMessage> workerMessages)
AbstractPiece
workerContextReceive
in class AbstractPiece<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,Object,NoMessage,S>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.