I
- vertex id typeV
- vertex value typeE
- edge typepublic abstract class GoraVertexOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends VertexOutputFormat<I,V,E>
GoraVertexInputFormat
Modifier and Type | Class and Description |
---|---|
protected class |
GoraVertexOutputFormat.GoraVertexWriter
Abstract class to be implemented by the user based on their specific
vertex/edges output.
|
Constructor and Description |
---|
GoraVertexOutputFormat() |
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.
|
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.
|
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) |
createVertexWriter
getConf, setConf
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException
checkOutputSpecs
in class VertexOutputFormat<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 jobIOException
InterruptedException
public org.apache.gora.store.DataStore createDataStore(org.apache.hadoop.conf.Configuration conf)
conf
- Configuration.public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getOutputCommitter
in class VertexOutputFormat<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
context
- the task contextIOException
InterruptedException
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 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.