public interface SyncBulkReader extends AutoCloseable
Methods of this interface are expected to block until the whole read operation completes.
| Modifier and Type | Method and Description |
|---|---|
void |
readSync(Iterable<? extends Statement<?>> statements,
Consumer<? super ReadResult> consumer)
Executes the given stream of read statements synchronously, notifying the given consumer of
every read result.
|
void |
readSync(Publisher<? extends Statement<?>> statements,
Consumer<? super ReadResult> consumer)
Executes the given iterable of read statements asynchronously, notifying the given consumer of
every read result.
|
void |
readSync(Statement<?> statement,
Consumer<? super ReadResult> consumer)
Executes the given read statement synchronously, notifying the given consumer of every read
result.
|
void |
readSync(Stream<? extends Statement<?>> statements,
Consumer<? super ReadResult> consumer)
Executes the given stream of read statements synchronously, notifying the given consumer of
every read result.
|
default void |
readSync(String statement,
Consumer<? super ReadResult> consumer)
Executes the given read statement synchronously, notifying the given consumer of every read
result.
|
closedefault void readSync(String statement, Consumer<? super ReadResult> consumer) throws BulkExecutionException
statement - The statement to execute.consumer - A consumer for read results.BulkExecutionException - if the operation cannot complete normally.void readSync(Statement<?> statement, Consumer<? super ReadResult> consumer) throws BulkExecutionException
statement - The statement to execute.consumer - A consumer for read results.BulkExecutionException - if the operation cannot complete normally.void readSync(Stream<? extends Statement<?>> statements, Consumer<? super ReadResult> consumer) throws BulkExecutionException
statements - The statements to execute.consumer - A consumer for read results.BulkExecutionException - if the operation cannot complete normally.void readSync(Iterable<? extends Statement<?>> statements, Consumer<? super ReadResult> consumer) throws BulkExecutionException
statements - The statements to execute.consumer - A consumer for read results.BulkExecutionException - if the operation cannot complete normally.void readSync(Publisher<? extends Statement<?>> statements, Consumer<? super ReadResult> consumer) throws BulkExecutionException
statements - The statements to execute.consumer - A consumer for read results.BulkExecutionException - if the operation cannot complete normally.Copyright © 2017–2021 DataStax. All rights reserved.