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, iteratorclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, 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)
AbstractPiecegetWrappedVertexSender 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)
AbstractPiecegetVertexReceiver 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)
AbstractPiecemasterCompute 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)
AbstractPieceworkerContextSend 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)
AbstractPieceworkerContextReceive 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)
AbstractPiecenextExecutionStage 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)
AbstractPiecegetMessageClasses 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)
BlockforAllPossiblePieces in interface BlockforAllPossiblePieces 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()
BlockgetPieceCount in interface BlockgetPieceCount 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
AbstractPieceregisterAggregators 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>InstantiationExceptionIllegalAccessExceptionpublic void wrappedRegisterReducers(BlockMasterApi masterApi, S executionStage)
AbstractPiecewrappedRegisterReducers 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.