Package org.elasticsearch.hadoop.mr
Class EsOutputFormat.EsRecordWriter
java.lang.Object
org.apache.hadoop.mapreduce.RecordWriter
org.elasticsearch.hadoop.mr.EsOutputFormat.EsRecordWriter
- All Implemented Interfaces:
RecordWriter
- Enclosing class:
- EsOutputFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Configurationprotected booleanprotected org.elasticsearch.hadoop.rest.RestRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose(TaskAttemptContext context) protected voiddoClose(Progressable progressable) protected voidinit()void
-
Field Details
-
cfg
-
initialized
protected boolean initialized -
repository
protected org.elasticsearch.hadoop.rest.RestRepository repository
-
-
Constructor Details
-
EsRecordWriter
-
-
Method Details
-
write
- Specified by:
writein interfaceRecordWriter- Specified by:
writein classRecordWriter- Throws:
IOException
-
init
- Throws:
IOException
-
close
- Specified by:
closein classRecordWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceRecordWriter- Throws:
IOException
-
doClose
-