I
- vertex id typeE
- edge typepublic abstract class GoraEdgeInputFormat<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends EdgeInputFormat<I,E>
GoraVertexOutputFormat
Modifier and Type | Class and Description |
---|---|
protected class |
GoraEdgeInputFormat.GoraEdgeReader
Abstract class to be implemented by the user based on their specific
vertex input.
|
Constructor and Description |
---|
GoraEdgeInputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
Check that input is valid.
|
org.apache.gora.store.DataStore |
createDataStore(org.apache.hadoop.conf.Configuration conf)
Gets the data store object initialized.
|
abstract GoraEdgeInputFormat.GoraEdgeReader |
createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create an edge reader for a given split.
|
static org.apache.gora.store.DataStore |
getDataStore()
Gets the data store.
|
static Class<? extends org.apache.gora.store.DataStore> |
getDatastoreClass() |
static org.apache.log4j.Logger |
getLogger()
Returns a logger.
|
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext context,
int minSplitCountHint)
Gets the splits for a data store.
|
Object |
getStartKey()
Gets the start key for querying.
|
static void |
setDataStore(org.apache.gora.store.DataStore dStore)
Sets the data store
|
static void |
setDatastoreClass(Class<? extends org.apache.gora.store.DataStore> dataStoreClass) |
static void |
setStartKey(Object startKey)
Gets the start key for querying.
|
readInputSplit, writeInputSplit
getConf, setConf
public void checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
GiraphInputFormat
checkInputSpecs
in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
conf
- configuration parameterspublic List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context, int minSplitCountHint) throws IOException, InterruptedException
getSplits
in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
context
- JobContextminSplitCountHint
- Hint for a minimum split countIOException
InterruptedException
public abstract GoraEdgeInputFormat.GoraEdgeReader createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
EdgeInputFormat
EdgeReader.initialize(InputSplit, TaskAttemptContext)
before
the split is used.createEdgeReader
in class EdgeInputFormat<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
split
- the split to be readcontext
- the information about the taskIOException
public org.apache.gora.store.DataStore createDataStore(org.apache.hadoop.conf.Configuration conf)
conf
- Configurationpublic static Class<? extends org.apache.gora.store.DataStore> getDatastoreClass()
public static void setDatastoreClass(Class<? extends org.apache.gora.store.DataStore> dataStoreClass)
dataStoreClass
- the dataStore class to setpublic Object getStartKey()
public static void setStartKey(Object startKey)
startKey
- start key.public static org.apache.gora.store.DataStore getDataStore()
public static void setDataStore(org.apache.gora.store.DataStore dStore)
dStore
- the dATA_STORE to setpublic static org.apache.log4j.Logger getLogger()
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.