public class BulkWriteClient extends Object implements BulkWrite, Health, Lifecycle<BulkWriteOptions>, Display
BulkWrite.Config
Display.DefaultPrinter, Display.Printer
DEFAULT_ALLOCATOR_INIT_RESERVATION, DEFAULT_ALLOCATOR_MAX_ALLOCATION, DEFAULT_MAX_REQUESTS_IN_FLIGHT, DEFAULT_TIMEOUT_MS_PER_MESSAGE
Constructor and Description |
---|
BulkWriteClient() |
Modifier and Type | Method and Description |
---|---|
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.
|
CompletableFuture<Map<Endpoint,Boolean>> |
checkHealth() |
void |
display(Display.Printer out) |
boolean |
init(BulkWriteOptions opts) |
void |
shutdownGracefully() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bulkStreamWriter, bulkStreamWriter, bulkStreamWriter
ensureInitialized
public boolean init(BulkWriteOptions opts)
init
in interface Lifecycle<BulkWriteOptions>
public void shutdownGracefully()
shutdownGracefully
in interface Lifecycle<BulkWriteOptions>
public BulkStreamWriter bulkStreamWriter(TableSchema schema, long allocatorInitReservation, long allocatorMaxAllocation, long timeoutMsPerMessage, int maxRequestsInFlight, Context ctx)
BulkWrite
bulkStreamWriter
in interface BulkWrite
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 contextpublic CompletableFuture<Map<Endpoint,Boolean>> checkHealth()
checkHealth
in interface Health
public void display(Display.Printer out)
Copyright © 2025. All rights reserved.