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 Writer
DatastoreException
public void closeWriter() throws JasDBStorageException
closeWriter
in interface Writer
JasDBStorageException
public long getDiskSize() throws JasDBStorageException
getDiskSize
in interface Writer
JasDBStorageException
public RecordIteratorImpl readAllRecords() throws DatastoreException
readAllRecords
in interface Writer
DatastoreException
public RecordIteratorImpl readAllRecords(int limit) throws DatastoreException
readAllRecords
in interface Writer
DatastoreException
public RecordResultImpl readRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier) throws DatastoreException
readRecord
in interface Writer
DatastoreException
public Long writeRecord(String recordContents, java.util.function.Consumer<Long> postAction) throws DatastoreException
writeRecord
in interface Writer
DatastoreException
public void removeRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.Consumer<Long> postRemoveAction) throws DatastoreException
removeRecord
in interface Writer
DatastoreException
public Long updateRecord(String recordContents, java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.BiConsumer<Long,Long> postUpdateAction) throws DatastoreException
updateRecord
in interface Writer
DatastoreException
Copyright © 2015. All rights reserved.