Package com.terracottatech.store.async
Interface AsyncDatasetWriterReader<K extends Comparable<K>>
- All Superinterfaces:
AsyncDatasetReader<K>
An asynchronous equivalent to
DatasetWriterReader.-
Method Summary
Modifier and TypeMethodDescriptionAn asynchronous equivalent toDatasetWriterReader.add(Comparable, Cell...).An asynchronous equivalent toDatasetWriterReader.add(Comparable, Iterable).An asynchronous equivalent toDatasetWriterReader.delete(Comparable).Equivalent toDatasetWriterReader.on(Comparable), but returns an AsyncReadWriteRecordAccessor rather than a ReadWriteRecordAccessor.records()Returns anAsyncStreamof the records in this dataset.update(K key, UpdateOperation<? super K> transform) An asynchronous equivalent toDatasetWriterReader.update(Comparable, UpdateOperation).Methods inherited from interface com.terracottatech.store.async.AsyncDatasetReader
get
-
Method Details
-
add
An asynchronous equivalent toDatasetWriterReader.add(Comparable, Cell...).- Parameters:
key- key for the recordcells- cells which form the record- Returns:
- an operation representing the add execution
-
add
An asynchronous equivalent toDatasetWriterReader.add(Comparable, Iterable).- Parameters:
key- key for the recordcells- a non-nullIterablesupplying cells which form the record- Returns:
- an operation representing the add execution
- Throws:
NullPointerException- ifcellsisnull
-
update
An asynchronous equivalent toDatasetWriterReader.update(Comparable, UpdateOperation).- Parameters:
key- key of the record to mutatetransform- the mutating transformation to apply to the record- Returns:
- an operation representing the update execution
-
delete
An asynchronous equivalent toDatasetWriterReader.delete(Comparable).- Parameters:
key- key of the record to remove- Returns:
- an operation representing the delete execution
-
on
Equivalent toDatasetWriterReader.on(Comparable), but returns an AsyncReadWriteRecordAccessor rather than a ReadWriteRecordAccessor.- Specified by:
onin interfaceAsyncDatasetReader<K extends Comparable<K>>- Parameters:
key- key of the record- Returns:
- an AsyncReadWriteRecordAccessor
-
records
AsyncMutableRecordStream<K> records()Description copied from interface:AsyncDatasetReaderReturns anAsyncStreamof the records in this dataset.- Specified by:
recordsin interfaceAsyncDatasetReader<K extends Comparable<K>>- Returns:
- an asynchronous stream of records
-