public class MMapDataAccess extends ByteBufferDataAccess
bufferscurrentPosition, DEFAULT_SEGMENT_SIZE, segmentSize, segmentSizeDivisor, segmentSizePower| Constructor and Description |
|---|
MMapDataAccess(String fileName) |
MMapDataAccess(String fileName,
int bufferSize) |
MMapDataAccess(String fileName,
long bytesCapacity) |
MMapDataAccess(String fileName,
long bytesCapacity,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
ensureCapacity(long bytes) |
long |
getCapacity() |
boolean |
isEmpty() |
getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, setByte, setChar, setDouble, setFloat, setInt, setLong, setShortgetByte, getChar, getCurrentPosition, getDouble, getFloat, getInt, getLong, getShort, setByte, setChar, setCurrentPosition, setDouble, setFloat, setInt, setLong, setSegmentSize, setShortpublic MMapDataAccess(String fileName)
public MMapDataAccess(String fileName, int bufferSize)
public MMapDataAccess(String fileName, long bytesCapacity) throws IOException
IOExceptionpublic MMapDataAccess(String fileName, long bytesCapacity, int bufferSize) throws IOException
IOExceptionpublic void ensureCapacity(long bytes)
ensureCapacity in interface DataAccessensureCapacity in class ByteBufferDataAccesspublic long getCapacity()
getCapacity in interface DataAccessgetCapacity in class ByteBufferDataAccesspublic boolean isEmpty()
isEmpty in interface DataAccessisEmpty in class BaseDataAccesspublic void close()
close in interface DataAccessclose in class ByteBufferDataAccessCopyright © 2017. All rights reserved.