I
- Vertex idV
- Vertex valueE
- Edge valuepublic class EdgeInputSplitsCallable<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 |
EDGES_FILTERED_UPDATE_PERIOD
How often to update filtered metrics
|
static int |
EDGES_UPDATE_PERIOD
How often to update metrics and print info
|
configuration, context, workerClientRequestProcessor
Constructor and Description |
---|
EdgeInputSplitsCallable(EdgeInputFormat<I,E> edgeInputFormat,
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 |
---|---|
EdgeInputFormat<I,E> |
getInputFormat()
Get input format
|
InputType |
getInputType()
Get input type
|
protected VertexEdgeCount |
readInputSplit(org.apache.hadoop.mapreduce.InputSplit inputSplit)
Read edges from input split.
|
call, getInputSplit, getTotalEdgesFilteredCounter, getTotalEdgesLoadedMeter, getTotalVerticesFilteredCounter, getTotalVerticesLoadedMeter, initMetrics
public static final int EDGES_UPDATE_PERIOD
public static final int EDGES_FILTERED_UPDATE_PERIOD
public EdgeInputSplitsCallable(EdgeInputFormat<I,E> edgeInputFormat, org.apache.hadoop.mapreduce.Mapper.Context context, ImmutableClassesGiraphConfiguration<I,V,E> configuration, BspServiceWorker<I,V,E> bspServiceWorker, WorkerInputSplitsHandler splitsHandler)
edgeInputFormat
- Edge input formatcontext
- Contextconfiguration
- ConfigurationbspServiceWorker
- service workersplitsHandler
- Handler for input splitspublic EdgeInputFormat<I,E> 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 edge readerIOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.