public class Storage extends AbstractStorage
AbstractStorage.AppenderStream, AbstractStorage.StorageDataOutput
Disposable.Parent
DATA_EXTENSION, INDEX_EXTENSION, LOG, myDataTable, myLock, myPool, myRecordsTable
Constructor and Description |
---|
Storage(java.lang.String path) |
Storage(java.lang.String path,
CapacityAllocationPolicy capacityAllocationPolicy) |
Storage(java.lang.String path,
PagePool pool) |
Modifier and Type | Method and Description |
---|---|
int |
createNewRecord() |
protected AbstractRecordsTable |
createRecordsTable(PagePool pool,
java.io.File recordsFile) |
void |
deleteRecord(int record) |
appendBytes, appendStream, checkSanity, createRecordIdIterator, deleteFiles, dispose, doDeleteRecord, flushSome, force, getLiveRecordsCount, getVersion, isDirty, readBytes, readStream, replaceBytes, setVersion, writeBytes, writeStream, writeStream
public Storage(java.lang.String path) throws java.io.IOException
java.io.IOException
public Storage(java.lang.String path, PagePool pool) throws java.io.IOException
java.io.IOException
public Storage(java.lang.String path, CapacityAllocationPolicy capacityAllocationPolicy) throws java.io.IOException
java.io.IOException
protected AbstractRecordsTable createRecordsTable(PagePool pool, java.io.File recordsFile) throws java.io.IOException
createRecordsTable
in class AbstractStorage
java.io.IOException
public int createNewRecord() throws java.io.IOException
java.io.IOException
public void deleteRecord(int record) throws java.io.IOException
java.io.IOException