public interface Writer
Modifier and Type | Method and Description |
---|---|
void |
closeWriter() |
long |
getDiskSize() |
long |
getSize() |
boolean |
isOpen() |
void |
openWriter() |
RecordIterator |
readAllRecords() |
RecordIterator |
readAllRecords(int limit) |
RecordResultImpl |
readRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier) |
void |
removeRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier,
java.util.function.Consumer<Long> postRemoveAction) |
Long |
updateRecord(String recordContents,
java.util.function.Supplier<Optional<Long>> recordPointerSupplier,
java.util.function.BiConsumer<Long,Long> consumer) |
Long |
writeRecord(String recordContents,
java.util.function.Consumer<Long> postWriteAction) |
void openWriter() throws DatastoreException
DatastoreException
boolean isOpen()
void closeWriter() throws JasDBStorageException
JasDBStorageException
RecordResultImpl readRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier) throws DatastoreException
DatastoreException
Long writeRecord(String recordContents, java.util.function.Consumer<Long> postWriteAction) throws DatastoreException
DatastoreException
void removeRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.Consumer<Long> postRemoveAction) throws DatastoreException
DatastoreException
Long updateRecord(String recordContents, java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.BiConsumer<Long,Long> consumer) throws DatastoreException
DatastoreException
long getDiskSize() throws JasDBStorageException
JasDBStorageException
long getSize()
RecordIterator readAllRecords() throws DatastoreException
DatastoreException
RecordIterator readAllRecords(int limit) throws DatastoreException
DatastoreException
Copyright © 2015. All rights reserved.