Class BulkIngester<Context>
java.lang.Object
co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester<Context>
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(BulkOperation operation) void
add
(BulkOperation operation, Context context) void
void
add
(Function<BulkOperation.Builder, ObjectBuilder<BulkOperation>> f, Context context) void
close()
void
flush()
The configured flush period.int
The configured maximum number of concurrent request sent to Elasticsearch.int
The configured max operations to buffer in a single bulk request.long
maxSize()
The configured maximum size in bytes for a bulk request.static <Context> BulkIngester<Context>
of
(Function<BulkIngester.Builder<Context>, BulkIngester.Builder<Context>> f) long
Statistics: the number of operations that had to wait before being added because the operation buffer was full and the number of http requests in flight exceeded the configured maximum number.long
Statistics: the number of operations that were added to this ingester since it was created.int
The number of operations that have been buffered, waiting to be sent.long
The size in bytes of operations that have been buffered, waiting to be sent.int
The number of in flight bulk requests.long
Statistics: the number of bulk requests that could not be sent immediately because the number of http requests in flight exceeded the configured maximum number.long
Statistics: the number of bulk requests that were produced by this ingester since it was created.
-
Method Details
-
maxOperations
public int maxOperations()The configured max operations to buffer in a single bulk request. -
maxSize
public long maxSize()The configured maximum size in bytes for a bulk request. Operations are added to the request until adding an operation leads the request to exceed this siz. -
maxConcurrentRequests
public int maxConcurrentRequests()The configured maximum number of concurrent request sent to Elasticsearch. -
flushInterval
The configured flush period. -
pendingOperations
public int pendingOperations()The number of operations that have been buffered, waiting to be sent. -
pendingOperationsSize
public long pendingOperationsSize()The size in bytes of operations that have been buffered, waiting to be sent. -
pendingRequests
public int pendingRequests()The number of in flight bulk requests. -
operationsCount
public long operationsCount()Statistics: the number of operations that were added to this ingester since it was created. -
operationContentionsCount
public long operationContentionsCount()Statistics: the number of operations that had to wait before being added because the operation buffer was full and the number of http requests in flight exceeded the configured maximum number.- See Also:
-
BulkIngester.Builder.maxConcurrentRequests
BulkIngester.Builder.maxOperations(int)
BulkIngester.Builder.maxSize(long)
-
requestCount
public long requestCount()Statistics: the number of bulk requests that were produced by this ingester since it was created. -
requestContentionsCount
public long requestContentionsCount()Statistics: the number of bulk requests that could not be sent immediately because the number of http requests in flight exceeded the configured maximum number.- See Also:
-
BulkIngester.Builder.maxConcurrentRequests
-
flush
public void flush() -
add
-
add
-
add
-
add
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
of
public static <Context> BulkIngester<Context> of(Function<BulkIngester.Builder<Context>, BulkIngester.Builder<Context>> f)
-