java.lang.Object
org.elasticsearch.action.bulk.BulkRequestParser
Helper to parse bulk requests. This should be considered an internal class.
- 
Constructor SummaryConstructorsConstructorDescriptionBulkRequestParser(boolean deprecateOrErrorOnType, RestApiVersion restApiVersion) Create a new parser.
- 
Method SummaryModifier and TypeMethodDescriptionvoidparse(BytesReference data, String defaultIndex, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, Boolean defaultRequireAlias, boolean allowExplicitIndex, XContentType xContentType, BiConsumer<IndexRequest, String> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer) Parse the provideddataassuming the provided default values.
- 
Constructor Details- 
BulkRequestParserCreate a new parser.- Parameters:
- deprecateOrErrorOnType- whether to allow _type information in the index line; used by BulkMonitoring
- restApiVersion-
 
 
- 
- 
Method Details- 
parsepublic void parse(BytesReference data, @Nullable String defaultIndex, @Nullable String defaultRouting, @Nullable FetchSourceContext defaultFetchSourceContext, @Nullable String defaultPipeline, @Nullable Boolean defaultRequireAlias, boolean allowExplicitIndex, XContentType xContentType, BiConsumer<IndexRequest, String> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer) throws IOExceptionParse the provideddataassuming the provided default values. Index requests will be passed to theindexRequestConsumer, update requests to theupdateRequestConsumerand delete requests to thedeleteRequestConsumer.- Throws:
- IOException
 
 
-