Class EntryAllocationTable
- java.lang.Object
-
- eu.svjatoslav.sixth.data.store.file.EntryAllocationTable
-
public class EntryAllocationTable extends Object
-
-
Constructor Summary
Constructors Constructor Description EntryAllocationTable(FileDataStore fileDataStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenlarge(int newSize)longgetEntryRecordLocation(int entryId)intgetNewUnusedEntryId()voidinitializeNewFile()List<eu.svjatoslav.sixth.data.store.file.EntryRecord>loadAllEntryRecords()Sorted list of @linkEntryRecord's.
-
-
-
Constructor Detail
-
EntryAllocationTable
public EntryAllocationTable(FileDataStore fileDataStore)
-
-
Method Detail
-
enlarge
public void enlarge(int newSize) throws IOException- Throws:
IOException
-
getEntryRecordLocation
public long getEntryRecordLocation(int entryId)
-
getNewUnusedEntryId
public int getNewUnusedEntryId() throws IOException- Throws:
IOException
-
initializeNewFile
public void initializeNewFile() throws IOException- Throws:
IOException
-
loadAllEntryRecords
public List<eu.svjatoslav.sixth.data.store.file.EntryRecord> loadAllEntryRecords() throws IOException
Sorted list of @linkEntryRecord's.- Throws:
IOException
-
-