Package org.elasticsearch.hadoop.mr
Class EsOutputFormat
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat
org.elasticsearch.hadoop.mr.EsOutputFormat
- All Implemented Interfaces:
OutputFormat
ElasticSearch
OutputFormat (old and new API) for adding data to an index inside ElasticSearch.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classprotected static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckOutputSpecs(FileSystem ignored, JobConf cfg) voidcheckOutputSpecs(JobContext context) getOutputCommitter(TaskAttemptContext context) getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) getRecordWriter(TaskAttemptContext context)
-
Constructor Details
-
EsOutputFormat
public EsOutputFormat()
-
-
Method Details
-
getRecordWriter
- Specified by:
getRecordWriterin classOutputFormat
-
checkOutputSpecs
- Specified by:
checkOutputSpecsin classOutputFormat- Throws:
IOException
-
getOutputCommitter
- Specified by:
getOutputCommitterin classOutputFormat
-
getRecordWriter
public RecordWriter getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) - Specified by:
getRecordWriterin interfaceOutputFormat
-
checkOutputSpecs
- Specified by:
checkOutputSpecsin interfaceOutputFormat- Throws:
IOException
-