public class ByteBufferVolSingle
extends Volume
Abstract Volume over single ByteBuffer, maximal size is 2GB (32bit limit). It leaves ByteBufferVol details (allocation, disposal) on subclasses. Most methods are final for better performance (JIT compiler can inline those).
Modifier and Type | Field and Description |
---|---|
java.nio.ByteBuffer |
buffer |
boolean |
cleanerHackEnabled |
long |
maxSize |
boolean |
readOnly |
LOG, UNSAFE_VOL_FACTORY, closed
Constructor and Description |
---|
ByteBufferVolSingle() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
copyTo() |
void |
ensureAvailable() |
byte |
getByte() |
void |
getData() |
DataInput2.ByteBuffer |
getDataInput() |
DataInput2 |
getDataInputOverlap() |
int |
getInt() |
long |
getLong() |
boolean |
isSliced() |
void |
putByte() |
void |
putData() |
void |
putData() |
void |
putDataOverlap() |
void |
putInt() |
void |
putLong() |
int |
sliceSize() |
assertZeroes, clear, clearOverlap, close, copyFrom, copyTo, copyTo, copyTo, deleteFile, ensureAvailable, fileLoad, finalize, getByte, getData, getDataInput, getDataInputOverlap, getFile, getFileLocked, getInt, getLong, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, hash, isClosed, isReadOnly, isSliced, length, putByte, putData, putData, putDataOverlap, putInt, putLong, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, sliceSize, sync, truncate
public boolean cleanerHackEnabled
public java.nio.ByteBuffer buffer
public boolean readOnly
public long maxSize
public void ensureAvailable()
public void putLong()
public void putInt()
public void putByte()
public void putData()
public void putData()
public void copyTo()
public void getData()
public long getLong()
public int getInt()
public byte getByte()
public DataInput2.ByteBuffer getDataInput()
public void putDataOverlap()
public DataInput2 getDataInputOverlap()
public void clear()
public int sliceSize()
public boolean isSliced()