public static class DiameterComputation.DiameterMapper extends ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
Constructor and Description |
---|
DiameterMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyOp(int vecBlockId,
VectorCache<BitStrings> vecResult,
VectorCache<BitStrings> vecIntermediate) |
protected void |
combine2Op(int matBlockId,
MatrixCache<IntArrayWritable> matrix,
VectorCache<BitStrings> vecInput,
VectorCache<BitStrings> vecOutput) |
protected void |
combineAllOp(int matBlockId,
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,BitStrings> vecInput,
VectorCache<BitStrings> vecOutput) |
protected VectorCache<BitStrings> |
createIntermediateVectorCache(int numBlocks,
long numVertices) |
protected MatrixCache<IntArrayWritable> |
createMatrixCache(java.lang.String blockName,
org.apache.hadoop.conf.Configuration conf,
int numCols,
int numRows) |
protected VectorCache<BitStrings> |
createVectorCache(int numBlocks,
int blockId,
long numVertices) |
protected IntDoublePairWritable |
finalizeOp(int id,
BitStrings vec) |
protected java.lang.Class<BitStrings> |
intermediateVectorValueClass() |
protected java.lang.Class<IntArrayWritable> |
matrixValueClass() |
protected java.lang.Class<BitStrings> |
vectorValueClass() |
protected void |
writeOutputVecOp(int vecBlockId,
VectorCache<BitStrings> vector) |
cleanupComputation, computationContext, currentIteration, currentVector, maxIterations, notifyChanged, numBlocks, numVertices, reportStats, run, setEstimatedSize, setupComputation, statusMessage, writeIntermediateVecOp
protected VectorCache<BitStrings> createVectorCache(int numBlocks, int blockId, long numVertices)
createVectorCache
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
protected VectorCache<BitStrings> createIntermediateVectorCache(int numBlocks, long numVertices)
createIntermediateVectorCache
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
protected MatrixCache<IntArrayWritable> createMatrixCache(java.lang.String blockName, org.apache.hadoop.conf.Configuration conf, int numCols, int numRows) throws java.io.IOException
createMatrixCache
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
java.io.IOException
protected java.lang.Class<BitStrings> vectorValueClass()
vectorValueClass
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
protected java.lang.Class<BitStrings> intermediateVectorValueClass()
intermediateVectorValueClass
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
protected java.lang.Class<IntArrayWritable> matrixValueClass()
matrixValueClass
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
protected void combine2Op(int matBlockId, MatrixCache<IntArrayWritable> matrix, VectorCache<BitStrings> vecInput, VectorCache<BitStrings> vecOutput) throws java.lang.Exception
combine2Op
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
java.lang.Exception
protected void combineAllOp(int matBlockId, org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,BitStrings> vecInput, VectorCache<BitStrings> vecOutput) throws java.lang.Exception
combineAllOp
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
java.lang.Exception
protected void applyOp(int vecBlockId, VectorCache<BitStrings> vecResult, VectorCache<BitStrings> vecIntermediate) throws java.lang.Exception
applyOp
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
java.lang.Exception
protected IntDoublePairWritable finalizeOp(int id, BitStrings vec) throws java.lang.Exception
finalizeOp
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
java.lang.Exception
protected void writeOutputVecOp(int vecBlockId, VectorCache<BitStrings> vector) throws java.lang.Exception
writeOutputVecOp
in class ComputationMapper<IntArrayWritable,BitStrings,BitStrings,IntDoublePairWritable>
java.lang.Exception