public interface BulkWrite
Modifier and Type | Interface and Description |
---|---|
static class |
BulkWrite.Config |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_ALLOCATOR_INIT_RESERVATION
The default allocator init reservation bytes.
|
static long |
DEFAULT_ALLOCATOR_MAX_ALLOCATION
The default allocator max allocation bytes.
|
static int |
DEFAULT_MAX_REQUESTS_IN_FLIGHT
The default max in-flight requests in the stream.
|
static long |
DEFAULT_TIMEOUT_MS_PER_MESSAGE
The default timeout in milliseconds for each message.
|
Modifier and Type | Method and Description |
---|---|
default BulkStreamWriter |
bulkStreamWriter(TableSchema schema) |
default BulkStreamWriter |
bulkStreamWriter(TableSchema schema,
BulkWrite.Config config) |
default BulkStreamWriter |
bulkStreamWriter(TableSchema schema,
BulkWrite.Config config,
Context ctx) |
BulkStreamWriter |
bulkStreamWriter(TableSchema schema,
long allocatorInitReservation,
long allocatorMaxAllocation,
long timeoutMsPerMessage,
int maxRequestsInFlight,
Context ctx)
Creates a bulk stream writer for efficiently writing data to the server.
|
static final long DEFAULT_TIMEOUT_MS_PER_MESSAGE
static final long DEFAULT_ALLOCATOR_INIT_RESERVATION
static final long DEFAULT_ALLOCATOR_MAX_ALLOCATION
static final int DEFAULT_MAX_REQUESTS_IN_FLIGHT
default BulkStreamWriter bulkStreamWriter(TableSchema schema)
default BulkStreamWriter bulkStreamWriter(TableSchema schema, BulkWrite.Config config)
default BulkStreamWriter bulkStreamWriter(TableSchema schema, BulkWrite.Config config, Context ctx)
BulkStreamWriter bulkStreamWriter(TableSchema schema, long allocatorInitReservation, long allocatorMaxAllocation, long timeoutMsPerMessage, int maxRequestsInFlight, Context ctx)
schema
- the schema of the tableallocatorInitReservation
- the initial space reservation (obtained from this allocator)allocatorMaxAllocation
- the maximum amount of space the new child allocator can allocatetimeoutMsPerMessage
- the timeout in milliseconds for each messagemaxRequestsInFlight
- the max in-flight requests in the streamctx
- invoke contextCopyright © 2025. All rights reserved.