org.elasticsearch.hadoop.mr
Class EsOutputFormat
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EsOutputFormat
public EsOutputFormat()
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