Package org.elasticsearch.action.bulk
Class BulkRequestParser
- java.lang.Object
-
- org.elasticsearch.action.bulk.BulkRequestParser
-
public final class BulkRequestParser extends Object
Helper to parse bulk requests. This should be considered an internal class.
-
-
Constructor Summary
Constructors Constructor Description BulkRequestParser(boolean warnOnTypeUsage)Create a new parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidparse(BytesReference data, String defaultIndex, String defaultType, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer)voidparse(BytesReference data, String defaultIndex, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer)Parse the provideddataassuming the provided default values.
-
-
-
Method Detail
-
parse
public void parse(BytesReference data, @Nullable String defaultIndex, @Nullable String defaultRouting, @Nullable FetchSourceContext defaultFetchSourceContext, @Nullable String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer) throws IOException
Parse the provideddataassuming the provided default values. Index requests will be passed to theindexRequestConsumer, update requests to theupdateRequestConsumerand delete requests to thedeleteRequestConsumer.- Throws:
IOException
-
parse
@Deprecated public void parse(BytesReference data, @Nullable String defaultIndex, @Nullable String defaultType, @Nullable String defaultRouting, @Nullable FetchSourceContext defaultFetchSourceContext, @Nullable String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer) throws IOException
Deprecated.Parse the provideddataassuming the provided default values. Index requests will be passed to theindexRequestConsumer, update requests to theupdateRequestConsumerand delete requests to thedeleteRequestConsumer.- Throws:
IOException
-
-