public class EsOutputFormat extends OutputFormat implements OutputFormat
OutputFormat
(old and new API) for adding data to an index inside ElasticSearch.Modifier and Type | Class and Description |
---|---|
static class |
EsOutputFormat.EsOldAPIOutputCommitter |
static class |
EsOutputFormat.EsOutputCommitter |
protected static class |
EsOutputFormat.EsRecordWriter |
Constructor and Description |
---|
EsOutputFormat() |
Modifier and Type | Method and Description |
---|---|
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) |
public RecordWriter getRecordWriter(TaskAttemptContext context)
getRecordWriter
in class OutputFormat
public void checkOutputSpecs(JobContext context) throws IOException
checkOutputSpecs
in class OutputFormat
IOException
public OutputCommitter getOutputCommitter(TaskAttemptContext context)
getOutputCommitter
in class OutputFormat
public RecordWriter getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress)
getRecordWriter
in interface OutputFormat
public void checkOutputSpecs(FileSystem ignored, JobConf cfg) throws IOException
checkOutputSpecs
in interface OutputFormat
IOException