public interface Write
Modifier and Type | Method and Description |
---|---|
default StreamWriter<Table,WriteOk> |
streamWriter() |
default StreamWriter<Table,WriteOk> |
streamWriter(int maxPointsPerSecond) |
StreamWriter<Table,WriteOk> |
streamWriter(int maxPointsPerSecond,
Context ctx)
Create a `Stream` to continuously write data to the database, typically used in data import
scenarios.
|
default CompletableFuture<Result<WriteOk,Err>> |
write(Collection<Table> tables) |
default CompletableFuture<Result<WriteOk,Err>> |
write(Collection<Table> tables,
WriteOp writeOp) |
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.
|
default CompletableFuture<Result<WriteOk,Err>> |
write(Table... tables) |
default CompletableFuture<Result<WriteOk,Err>> write(Table... tables)
tables
- the tables to writewrite(Collection, WriteOp, Context)
default CompletableFuture<Result<WriteOk,Err>> write(Collection<Table> tables)
tables
- the tables to writewrite(Collection, WriteOp, Context)
default CompletableFuture<Result<WriteOk,Err>> write(Collection<Table> tables, WriteOp writeOp)
tables
- the tables to writewriteOp
- the write operationwrite(Collection, WriteOp, Context)
CompletableFuture<Result<WriteOk,Err>> write(Collection<Table> tables, WriteOp writeOp, Context ctx)
tables
- a collection of data to be written, classified by tablewriteOp
- write operation(insert or delete)ctx
- invoke contextdefault StreamWriter<Table,WriteOk> streamWriter()
streamWriter(int, Context)
default StreamWriter<Table,WriteOk> streamWriter(int maxPointsPerSecond)
maxPointsPerSecond
- the max number of points that can be written per second, exceeding which may cause blockagestreamWriter(int, Context)
StreamWriter<Table,WriteOk> streamWriter(int maxPointsPerSecond, Context ctx)
maxPointsPerSecond
- the max number of points that can be written per second,
exceeding which may cause blockagectx
- invoke contextCopyright © 2025. All rights reserved.