I
- Vertex id typeV
- Vertex value typeE
- Edge value typeM
- Message typeWV
- Worker value typeWM
- Worker message typeS
- Execution stage typepublic class DelegatePiece<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,WV,WM extends org.apache.hadoop.io.Writable,S> extends AbstractPiece<I,V,E,M,WV,WM,S>
Modifier and Type | Class and Description |
---|---|
protected class |
DelegatePiece.DelegateWorkerReceiveFunctions
Delegating WorkerReceivePiece
|
protected class |
DelegatePiece.DelegateWorkerSendFunctions
Delegating WorkerSendPiece
|
AbstractPiece.InnerVertexReceiver, AbstractPiece.InnerVertexSender
Constructor and Description |
---|
DelegatePiece(AbstractPiece<? super I,? super V,? super E,? super M,? super WV,? super WM,? super S>... innerPieces) |
DelegatePiece(AbstractPiece<? super I,? super V,? super E,? super M,? super WV,? super WM,? super S> innerPiece) |
Modifier and Type | Method and Description |
---|---|
protected DelegatePiece.DelegateWorkerReceiveFunctions |
delegateWorkerReceiveFunctions(ArrayList<VertexReceiver<I,V,E,M>> workerReceiveFunctions,
BlockWorkerReceiveApi<I> workerApi,
S executionStage) |
protected DelegatePiece.DelegateWorkerSendFunctions |
delegateWorkerSendFunctions(ArrayList<AbstractPiece.InnerVertexSender> workerSendFunctions,
BlockWorkerSendApi<I,V,E,M> workerApi,
S executionStage) |
protected String |
delegationName() |
void |
forAllPossiblePieces(Consumer<AbstractPiece> consumer)
Calls consumer for each Piece:
- in no particular order
- potentially calling multiple times on same Piece
- even if Piece might never be returned in the iterator
- it will be called at least once for every piece that is
going to be returned by iterator
Can be used for static analysis/introspection of the block,
without actually executing them.
|
MessageClasses<I,M> |
getMessageClasses(ImmutableClassesGiraphConfiguration conf)
Returns MessageClasses definition for messages being sent by this Piece.
|
PieceCount |
getPieceCount()
How many pieces are in this block.
|
AbstractPiece.InnerVertexReceiver |
getVertexReceiver(BlockWorkerReceiveApi<I> workerApi,
S executionStage)
Override to do vertex receive processing.
|
AbstractPiece.InnerVertexSender |
getWrappedVertexSender(BlockWorkerSendApi<I,V,E,M> workerApi,
S executionStage)
Add automatic handling of reducers to getVertexSender.
|
void |
masterCompute(BlockMasterApi api,
S executionStage)
Function that is called on master, after send phase, before receive phase.
|
S |
nextExecutionStage(S executionStage)
Override to provide different next execution stage for
Pieces that come after it.
|
void |
registerAggregators(BlockMasterApi master)
Override to register any potential aggregators used by this piece.
|
String |
toString() |
void |
workerContextReceive(BlockWorkerContextReceiveApi workerContextApi,
S executionStage,
WV workerValue,
List<WM> workerMessages)
Override to have worker context receive computation.
|
void |
workerContextSend(BlockWorkerContextSendApi<I,WM> workerContextApi,
S executionStage,
WV workerValue)
Override to have worker context send computation.
|
void |
wrappedRegisterReducers(BlockMasterApi masterApi,
S executionStage)
Add automatic handling of reducers to registerReducers.
|
equals, hashCode, iterator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
@SafeVarargs public DelegatePiece(AbstractPiece<? super I,? super V,? super E,? super M,? super WV,? super WM,? super S>... innerPieces)
protected DelegatePiece.DelegateWorkerSendFunctions delegateWorkerSendFunctions(ArrayList<AbstractPiece.InnerVertexSender> workerSendFunctions, BlockWorkerSendApi<I,V,E,M> workerApi, S executionStage)
protected DelegatePiece.DelegateWorkerReceiveFunctions delegateWorkerReceiveFunctions(ArrayList<VertexReceiver<I,V,E,M>> workerReceiveFunctions, BlockWorkerReceiveApi<I> workerApi, S executionStage)
public AbstractPiece.InnerVertexSender getWrappedVertexSender(BlockWorkerSendApi<I,V,E,M> workerApi, S executionStage)
AbstractPiece
getWrappedVertexSender
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,WV,WM extends org.apache.hadoop.io.Writable,S>
public AbstractPiece.InnerVertexReceiver getVertexReceiver(BlockWorkerReceiveApi<I> workerApi, S executionStage)
AbstractPiece
getVertexReceiver
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,WV,WM extends org.apache.hadoop.io.Writable,S>
public void masterCompute(BlockMasterApi api, S executionStage)
AbstractPiece
masterCompute
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,WV,WM extends org.apache.hadoop.io.Writable,S>
public void workerContextSend(BlockWorkerContextSendApi<I,WM> workerContextApi, S executionStage, WV 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,WV,WM extends org.apache.hadoop.io.Writable,S>
public void workerContextReceive(BlockWorkerContextReceiveApi workerContextApi, S executionStage, WV workerValue, List<WM> 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,WV,WM extends org.apache.hadoop.io.Writable,S>
public S nextExecutionStage(S executionStage)
AbstractPiece
nextExecutionStage
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,WV,WM extends org.apache.hadoop.io.Writable,S>
public MessageClasses<I,M> getMessageClasses(ImmutableClassesGiraphConfiguration conf)
AbstractPiece
getMessageClasses
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,WV,WM extends org.apache.hadoop.io.Writable,S>
public void forAllPossiblePieces(Consumer<AbstractPiece> consumer)
Block
forAllPossiblePieces
in interface Block
forAllPossiblePieces
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,WV,WM extends org.apache.hadoop.io.Writable,S>
public PieceCount getPieceCount()
Block
getPieceCount
in interface Block
getPieceCount
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,WV,WM extends org.apache.hadoop.io.Writable,S>
public void registerAggregators(BlockMasterApi master) throws InstantiationException, IllegalAccessException
AbstractPiece
registerAggregators
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,WV,WM extends org.apache.hadoop.io.Writable,S>
InstantiationException
IllegalAccessException
public void wrappedRegisterReducers(BlockMasterApi masterApi, S executionStage)
AbstractPiece
wrappedRegisterReducers
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,WV,WM extends org.apache.hadoop.io.Writable,S>
protected String delegationName()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.