Display.DefaultPrinter, Display.Printer
Constructor and Description |
---|
WriteClient() |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Map<Endpoint,Boolean>> |
checkHealth() |
void |
display(Display.Printer out) |
boolean |
init(WriteOptions opts) |
void |
shutdownGracefully() |
StreamWriter<Table,WriteOk> |
streamWriter(int maxPointsPerSecond,
Context ctx)
Create a `Stream` to continuously write data to the database, typically used in data import
scenarios.
|
String |
toString() |
CompletableFuture<Result<WriteOk,Err>> |
write(Collection<Table> tables,
WriteOp writeOp,
Context ctx)
Write multiple rows of data (which can belong to multiple tables) to the database at once.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
streamWriter, streamWriter, write, write, write
ensureInitialized
public boolean init(WriteOptions opts)
init
in interface Lifecycle<WriteOptions>
public void shutdownGracefully()
shutdownGracefully
in interface Lifecycle<WriteOptions>
public CompletableFuture<Result<WriteOk,Err>> write(Collection<Table> tables, WriteOp writeOp, Context ctx)
Write
public StreamWriter<Table,WriteOk> streamWriter(int maxPointsPerSecond, Context ctx)
Write
streamWriter
in interface Write
maxPointsPerSecond
- the max number of points that can be written per second,
exceeding which may cause blockagectx
- invoke contextpublic CompletableFuture<Map<Endpoint,Boolean>> checkHealth()
checkHealth
in interface Health
public void display(Display.Printer out)
Copyright © 2025. All rights reserved.