I - vertex id typeV - vertex value typeE - edge typepublic abstract class GoraVertexInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends VertexInputFormat<I,V,E>
GoraVertexOutputFormat| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
GoraVertexInputFormat.GoraVertexReader
Abstract class to be implemented by the user based on their specific
 vertex input. 
 | 
| Constructor and Description | 
|---|
GoraVertexInputFormat()  | 
| 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 GoraVertexInputFormat.GoraVertexReader | 
createVertexReader(org.apache.hadoop.mapreduce.InputSplit split,
                  org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create a vertex 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()  | 
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, writeInputSplitgetConf, setConfpublic void checkInputSpecs(org.apache.hadoop.conf.Configuration conf)
GiraphInputFormatcheckInputSpecs in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>conf - configuration parameterspublic abstract GoraVertexInputFormat.GoraVertexReader createVertexReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
VertexReader.initialize(InputSplit, TaskAttemptContext) before
 the split is used.createVertexReader in class VertexInputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>split - the split to be readcontext - the information about the taskIOExceptionpublic 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,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - JobContextminSplitCountHint - Hint for a minimum split countIOExceptionInterruptedExceptionpublic 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 setCopyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.