I
- Vertex index valueV
- Vertex valueE
- Edge valuepublic abstract class InputSplitsCallable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements Callable<VertexEdgeCount>
Modifier and Type | Field and Description |
---|---|
protected ImmutableClassesGiraphConfiguration<I,V,E> |
configuration
Configuration
|
protected org.apache.hadoop.mapreduce.Mapper.Context |
context
Context
|
protected WorkerClientRequestProcessor<I,V,E> |
workerClientRequestProcessor
Handles IPC communication
|
Constructor and Description |
---|
InputSplitsCallable(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 |
---|---|
VertexEdgeCount |
call() |
abstract GiraphInputFormat |
getInputFormat()
Get input format
|
protected org.apache.hadoop.mapreduce.InputSplit |
getInputSplit(byte[] serializedInputSplit)
Talk to ZooKeeper to convert the input split path to the actual
InputSplit.
|
abstract InputType |
getInputType()
Get input type
|
static com.yammer.metrics.core.Counter |
getTotalEdgesFilteredCounter()
Get Counter tracking edges filtered
|
static com.yammer.metrics.core.Meter |
getTotalEdgesLoadedMeter()
Get Meter tracking edges loaded
|
static com.yammer.metrics.core.Counter |
getTotalVerticesFilteredCounter()
Get Counter tracking vertices filtered
|
static com.yammer.metrics.core.Meter |
getTotalVerticesLoadedMeter()
Get Meter tracking number of vertices loaded.
|
static void |
initMetrics()
Initialize metrics used by this class and its subclasses.
|
protected abstract VertexEdgeCount |
readInputSplit(org.apache.hadoop.mapreduce.InputSplit inputSplit)
Load vertices/edges from the given input split.
|
protected final ImmutableClassesGiraphConfiguration<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> configuration
protected final org.apache.hadoop.mapreduce.Mapper.Context context
protected final WorkerClientRequestProcessor<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> workerClientRequestProcessor
public InputSplitsCallable(org.apache.hadoop.mapreduce.Mapper.Context context, ImmutableClassesGiraphConfiguration<I,V,E> configuration, BspServiceWorker<I,V,E> bspServiceWorker, WorkerInputSplitsHandler splitsHandler)
context
- Contextconfiguration
- ConfigurationbspServiceWorker
- service workersplitsHandler
- Handler for input splitspublic abstract GiraphInputFormat getInputFormat()
public abstract InputType getInputType()
public static com.yammer.metrics.core.Meter getTotalEdgesLoadedMeter()
public static com.yammer.metrics.core.Counter getTotalEdgesFilteredCounter()
public static com.yammer.metrics.core.Meter getTotalVerticesLoadedMeter()
public static com.yammer.metrics.core.Counter getTotalVerticesFilteredCounter()
public static void initMetrics()
protected abstract VertexEdgeCount readInputSplit(org.apache.hadoop.mapreduce.InputSplit inputSplit) throws IOException, InterruptedException
inputSplit
- Input split to loadIOException
InterruptedException
public VertexEdgeCount call()
call
in interface Callable<VertexEdgeCount>
protected org.apache.hadoop.mapreduce.InputSplit getInputSplit(byte[] serializedInputSplit) throws IOException, ClassNotFoundException
serializedInputSplit
- Serialized input splitIOException
ClassNotFoundException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.