Package com.terracottatech.store.async
Interface AsyncDatasetReader<K extends Comparable<K>>
- All Known Subinterfaces:
AsyncDatasetWriterReader<K>
public interface AsyncDatasetReader<K extends Comparable<K>>
An asynchronous equivalent to
DatasetReader.-
Method Summary
Modifier and TypeMethodDescriptionAn asynchronous equivalent toDatasetReader.get(Comparable).Equivalent toDatasetReader.on(Comparable), but returns an AsyncReadRecordAccessor rather than a ReadRecordAccessor.records()Returns anAsyncStreamof the records in this dataset.
-
Method Details
-
get
An asynchronous equivalent toDatasetReader.get(Comparable).- Parameters:
key- key for the record- Returns:
- an operation representing the get execution
-
on
Equivalent toDatasetReader.on(Comparable), but returns an AsyncReadRecordAccessor rather than a ReadRecordAccessor.- Parameters:
key- key of the record- Returns:
- an AsyncReadRecordAccessor
-
records
AsyncRecordStream<K> records()Returns anAsyncStreamof the records in this dataset.- Returns:
- an asynchronous stream of records
-