public class SimpleFileDataSpace extends SimpleFileDataIO implements MemDataSpace
mapMode, persistent
Constructor and Description |
---|
SimpleFileDataSpace(java.lang.String path,
java.nio.channels.FileChannel.MapMode mapMode,
long reserved) |
SimpleFileDataSpace(java.lang.String path,
java.nio.channels.FileChannel.MapMode mapMode,
long reserved,
int lgPageSize) |
SimpleFileDataSpace(java.lang.String path,
long reserved) |
SimpleFileDataSpace(java.lang.String path,
long reserved,
int lgPageSize) |
Modifier and Type | Method and Description |
---|---|
long |
allocate(int len,
boolean clear) |
long |
allocatedSize() |
void |
setSize(long v) |
close, ensureSize, file, flush, rename, toString
fillByte, fillLong, read, read, read, readByte, readBytes, readBytes, readInt, readLong, readShort, readString, write, write, write, write, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeShort
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, fillLong, readBytes, readBytes, readInt, readLong, readShort, writeBytes, writeBytes, writeInt, writeLong, writeShort
public SimpleFileDataSpace(java.lang.String path, long reserved) throws java.io.IOException
java.io.IOException
public SimpleFileDataSpace(java.lang.String path, java.nio.channels.FileChannel.MapMode mapMode, long reserved) throws java.io.IOException
java.io.IOException
public SimpleFileDataSpace(java.lang.String path, long reserved, int lgPageSize) throws java.io.IOException
java.io.IOException
public SimpleFileDataSpace(java.lang.String path, java.nio.channels.FileChannel.MapMode mapMode, long reserved, int lgPageSize) throws java.io.IOException
java.io.IOException
public long allocatedSize()
allocatedSize
in interface MemSpace
public void setSize(long v)
setSize
in class SimpleFileDataIO