elasticsearch-hadoop

org.elasticsearch.hadoop.mr
Class EsOutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapreduce.OutputFormat
      extended by org.elasticsearch.hadoop.mr.EsOutputFormat
All Implemented Interfaces:
OutputFormat
Direct Known Subclasses:
EsHiveOutputFormat

public class EsOutputFormat
extends OutputFormat
implements OutputFormat

ElasticSearch OutputFormat (old and new API) for adding data to an index inside ElasticSearch.


Nested Class Summary
static class EsOutputFormat.EsOldAPIOutputCommitter
           
static class EsOutputFormat.EsOutputCommitter
           
protected static class EsOutputFormat.EsRecordWriter
           
 
Constructor Summary
EsOutputFormat()
           
 
Method Summary
 void checkOutputSpecs(FileSystem ignored, JobConf cfg)
           
 void checkOutputSpecs(JobContext context)
           
 OutputCommitter getOutputCommitter(TaskAttemptContext context)
           
 RecordWriter getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress)
           
 RecordWriter getRecordWriter(TaskAttemptContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsOutputFormat

public EsOutputFormat()
Method Detail

getRecordWriter

public RecordWriter getRecordWriter(TaskAttemptContext context)
Specified by:
getRecordWriter in class OutputFormat

checkOutputSpecs

public void checkOutputSpecs(JobContext context)
                      throws IOException
Specified by:
checkOutputSpecs in class OutputFormat
Throws:
IOException

getOutputCommitter

public OutputCommitter getOutputCommitter(TaskAttemptContext context)
Specified by:
getOutputCommitter in class OutputFormat

getRecordWriter

public RecordWriter getRecordWriter(FileSystem ignored,
                                    JobConf job,
                                    String name,
                                    Progressable progress)
Specified by:
getRecordWriter in interface OutputFormat

checkOutputSpecs

public void checkOutputSpecs(FileSystem ignored,
                             JobConf cfg)
                      throws IOException
Specified by:
checkOutputSpecs in interface OutputFormat
Throws:
IOException

elasticsearch-hadoop