I - edge id typeV - vertex typeE - edge typepublic abstract class GoraEdgeOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends EdgeOutputFormat<I,V,E>
GoraEdgeInputFormat| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
GoraEdgeOutputFormat.GoraEdgeWriter
Abstract class to be implemented by the user based on their specific
 vertex/edges output. 
 | 
| Constructor and Description | 
|---|
GoraEdgeOutputFormat()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
checkOutputSpecs 
 | 
org.apache.gora.store.DataStore | 
createDataStore(org.apache.hadoop.conf.Configuration conf)
Gets the data store object initialized. 
 | 
abstract GoraEdgeOutputFormat.GoraEdgeWriter | 
createEdgeWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create an edge writer 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()
Gets the logger for the class. 
 | 
org.apache.hadoop.mapreduce.OutputCommitter | 
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
getOutputCommitter 
 | 
static void | 
setDataStore(org.apache.gora.store.DataStore dStore)
Sets the data store 
 | 
static void | 
setDatastoreClass(Class<? extends org.apache.gora.store.DataStore> dataStoreClass)  | 
getConf, setConfpublic void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
                      throws IOException,
                             InterruptedException
checkOutputSpecs in class EdgeOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - information about the jobIOExceptionInterruptedExceptionpublic org.apache.gora.store.DataStore createDataStore(org.apache.hadoop.conf.Configuration conf)
conf - Configurationpublic abstract GoraEdgeOutputFormat.GoraEdgeWriter createEdgeWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
EdgeOutputFormatEdgeWriter.initialize(TaskAttemptContext) before
 the split is used.createEdgeWriter in class EdgeOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - the information about the taskIOExceptionInterruptedExceptionpublic org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                               throws IOException,
                                                                      InterruptedException
getOutputCommitter in class EdgeOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>context - the task contextIOExceptionInterruptedExceptionpublic static org.apache.gora.store.DataStore getDataStore()
public static void setDataStore(org.apache.gora.store.DataStore dStore)
dStore - the dATA_STORE to setpublic 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 static org.apache.log4j.Logger getLogger()
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.