public class RawLDBackendState extends AbstractOpenFileState
RawLDBackend
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private File |
datFile
The data file
|
private RandomAccessFile |
datRaf
The data random access file
|
private File |
idxFile
The index file
|
private RandomAccessFile |
idxRaf
The index random access file
|
private static org.slf4j.Logger |
LOGGER
The log stream
|
private int |
size
The number of entries in the book.
|
Constructor and Description |
---|
RawLDBackendState(BookMetaData bookMetaData)
This is default package access for forcing the use of the
OpenFileStateManager to manage the creation.
|
Modifier and Type | Method and Description |
---|---|
RandomAccessFile |
getDatRaf() |
File |
getIdxFile() |
RandomAccessFile |
getIdxRaf() |
int |
getSize() |
void |
releaseResources() |
void |
setSize(int size) |
close, getBookMetaData, getLastAccess, setLastAccess
private int size
private File idxFile
private RandomAccessFile idxRaf
private File datFile
private RandomAccessFile datRaf
private static final org.slf4j.Logger LOGGER
RawLDBackendState(BookMetaData bookMetaData) throws BookException
bookMetaData
- the appropriate metadata for the bookBookException
public void releaseResources()
public int getSize()
public File getIdxFile()
public RandomAccessFile getIdxRaf()
public RandomAccessFile getDatRaf()
public void setSize(int size)
size
- the size to set