I
- Vertex index valueV
- Vertex valueE
- Edge valuepublic class VertexInputSplitsCallable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends InputSplitsCallable<I,V,E>
Modifier and Type | Field and Description |
---|---|
static int |
VERTICES_FILTERED_UPDATE_PERIOD
How often to update filtered out metrics
|
static int |
VERTICES_UPDATE_PERIOD
How often to update metrics and print info
|
configuration, context, workerClientRequestProcessor
Constructor and Description |
---|
VertexInputSplitsCallable(VertexInputFormat<I,V,E> vertexInputFormat,
org.apache.hadoop.mapreduce.Mapper.Context context,
ImmutableClassesGiraphConfiguration<I,V,E> configuration,
BspServiceWorker<I,V,E> bspServiceWorker,
WorkerInputSplitsHandler splitsHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
GiraphInputFormat |
getInputFormat()
Get input format
|
InputType |
getInputType()
Get input type
|
protected VertexEdgeCount |
readInputSplit(org.apache.hadoop.mapreduce.InputSplit inputSplit)
Read vertices from input split.
|
call, getInputSplit, getTotalEdgesFilteredCounter, getTotalEdgesLoadedMeter, getTotalVerticesFilteredCounter, getTotalVerticesLoadedMeter, initMetrics
public static final int VERTICES_UPDATE_PERIOD
public static final int VERTICES_FILTERED_UPDATE_PERIOD
public VertexInputSplitsCallable(VertexInputFormat<I,V,E> vertexInputFormat, org.apache.hadoop.mapreduce.Mapper.Context context, ImmutableClassesGiraphConfiguration<I,V,E> configuration, BspServiceWorker<I,V,E> bspServiceWorker, WorkerInputSplitsHandler splitsHandler)
vertexInputFormat
- Vertex input formatcontext
- Contextconfiguration
- ConfigurationbspServiceWorker
- service workersplitsHandler
- Handler for input splitspublic GiraphInputFormat getInputFormat()
InputSplitsCallable
getInputFormat
in class InputSplitsCallable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
public InputType getInputType()
InputSplitsCallable
getInputType
in class InputSplitsCallable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
protected VertexEdgeCount readInputSplit(org.apache.hadoop.mapreduce.InputSplit inputSplit) throws IOException, InterruptedException
readInputSplit
in class InputSplitsCallable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
inputSplit
- Input split to process with vertex readerIOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.