| Modifier and Type | Method and Description |
|---|---|
void |
closeWriter() |
long |
getDiskSize() |
long |
getSize() |
boolean |
isOpen() |
void |
openWriter() |
RecordIteratorImpl |
readAllRecords() |
RecordIteratorImpl |
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> postUpdateAction) |
Long |
writeRecord(String recordContents,
java.util.function.Consumer<Long> postAction) |
public FSWriter(File recordLocation)
public void openWriter()
throws DatastoreException
openWriter in interface WriterDatastoreExceptionpublic void closeWriter()
throws JasDBStorageException
closeWriter in interface WriterJasDBStorageExceptionpublic long getDiskSize()
throws JasDBStorageException
getDiskSize in interface WriterJasDBStorageExceptionpublic RecordIteratorImpl readAllRecords() throws DatastoreException
readAllRecords in interface WriterDatastoreExceptionpublic RecordIteratorImpl readAllRecords(int limit) throws DatastoreException
readAllRecords in interface WriterDatastoreExceptionpublic RecordResultImpl readRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier) throws DatastoreException
readRecord in interface WriterDatastoreExceptionpublic Long writeRecord(String recordContents, java.util.function.Consumer<Long> postAction) throws DatastoreException
writeRecord in interface WriterDatastoreExceptionpublic void removeRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.Consumer<Long> postRemoveAction) throws DatastoreException
removeRecord in interface WriterDatastoreExceptionpublic Long updateRecord(String recordContents, java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.BiConsumer<Long,Long> postUpdateAction) throws DatastoreException
updateRecord in interface WriterDatastoreExceptionCopyright © 2015. All rights reserved.