public class SimpleIndexEntityFile extends AbstractEntityFile<IndexKey>
| Modifier and Type | Field and Description |
|---|---|
static byte |
END_HEADER |
static byte |
EOF_FILE |
static byte |
LEN_HEADER |
batchLength, file, fileAccess, firstRecord, offset, recordLength| Constructor and Description |
|---|
SimpleIndexEntityFile(File file) |
| Modifier and Type | Method and Description |
|---|---|
ReadWriteLock |
getLock() |
protected IndexKey |
read(DataInputStream stream) |
protected void |
readMetaData(DataInputStream stream) |
protected void |
write(DataOutputStream stream,
IndexKey entity) |
protected void |
writeEOF(DataOutputStream stream) |
protected void |
writeMetaData(DataOutputStream stream) |
batchWrite, close, createNewFile, delete, exists, flush, getAbsoluteFile, getAbsolutePath, getBatchLength, getName, getOffset, length, open, read, readHeader, seek, setBatchLength, setLength, write, writeHeaderpublic static final byte LEN_HEADER
public static final byte END_HEADER
public static final byte EOF_FILE
public SimpleIndexEntityFile(File file)
protected void writeEOF(DataOutputStream stream) throws IOException
writeEOF in class AbstractEntityFile<IndexKey>IOExceptionprotected void write(DataOutputStream stream, IndexKey entity) throws IOException
write in class AbstractEntityFile<IndexKey>IOExceptionprotected IndexKey read(DataInputStream stream) throws IOException
read in class AbstractEntityFile<IndexKey>IOExceptionprotected void writeMetaData(DataOutputStream stream) throws IOException
writeMetaData in class AbstractEntityFile<IndexKey>IOExceptionprotected void readMetaData(DataInputStream stream) throws IOException
readMetaData in class AbstractEntityFile<IndexKey>IOExceptionpublic ReadWriteLock getLock()
getLock in interface EntityFile<IndexKey>getLock in class AbstractEntityFile<IndexKey>Copyright © 2016. All rights reserved.