public static class BlockApiHandleTest.TestPiece extends DefaultParentPiece<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable,Object,org.apache.hadoop.io.DoubleWritable,Object>
AbstractPiece.InnerVertexReceiver, AbstractPiece.InnerVertexSender
MESSAGE_ENCODE_AND_STORE_TYPE_MIN_FORCE
Constructor and Description |
---|
TestPiece(BlockApiHandleTest.DummyObjectWithApiHandle object) |
Modifier and Type | Method and Description |
---|---|
protected Class<org.apache.hadoop.io.NullWritable> |
getMessageClass() |
VertexReceiver<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable> |
getVertexReceiver(BlockWorkerReceiveApi<org.apache.hadoop.io.WritableComparable> workerApi,
Object executionStage) |
VertexSender<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable> |
getVertexSender(BlockWorkerSendApi<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable> workerApi,
Object executionStage) |
void |
masterCompute(BlockMasterApi masterApi,
Object executionStage) |
void |
workerContextReceive(BlockWorkerContextReceiveApi workerContextApi,
Object executionStage,
Object workerValue,
List<org.apache.hadoop.io.DoubleWritable> workerMessages)
Override to have worker context receive computation.
|
void |
workerContextSend(BlockWorkerContextSendApi<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.DoubleWritable> workerContextApi,
Object executionStage,
org.apache.hadoop.io.Writable workerValue) |
allowOneMessageToManyIdsEncoding, getMessageClasses, getMessageCombiner, getMessageFactory, getWrappedVertexSender, receiveIgnoreExistingVertices, reduceDouble, reduceFloat, reduceInt, reduceLong, registerReducers, wrappedRegisterReducers
equals, forAllPossiblePieces, getPieceCount, hashCode, iterator, nextExecutionStage, registerAggregators, toString, workerContextSend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TestPiece(BlockApiHandleTest.DummyObjectWithApiHandle object)
public VertexSender<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable> getVertexSender(BlockWorkerSendApi<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable> workerApi, Object executionStage)
getVertexSender
in class DefaultParentPiece<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable,Object,org.apache.hadoop.io.DoubleWritable,Object>
public VertexReceiver<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable> getVertexReceiver(BlockWorkerReceiveApi<org.apache.hadoop.io.WritableComparable> workerApi, Object executionStage)
getVertexReceiver
in class AbstractPiece<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable,Object,org.apache.hadoop.io.DoubleWritable,Object>
public void workerContextSend(BlockWorkerContextSendApi<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.DoubleWritable> workerContextApi, Object executionStage, org.apache.hadoop.io.Writable workerValue)
public void workerContextReceive(BlockWorkerContextReceiveApi workerContextApi, Object executionStage, Object workerValue, List<org.apache.hadoop.io.DoubleWritable> workerMessages)
workerContextReceive
in class AbstractPiece<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable,Object,org.apache.hadoop.io.DoubleWritable,Object>
public void masterCompute(BlockMasterApi masterApi, Object executionStage)
masterCompute
in class AbstractPiece<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable,Object,org.apache.hadoop.io.DoubleWritable,Object>
protected Class<org.apache.hadoop.io.NullWritable> getMessageClass()
getMessageClass
in class DefaultParentPiece<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.NullWritable,Object,org.apache.hadoop.io.DoubleWritable,Object>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.