public class DbFile extends SimpleFileDataSpace
Modifier and Type | Field and Description |
---|---|
static short |
VERSION |
mapMode, persistent
Constructor and Description |
---|
DbFile(java.lang.String path) |
DbFile(java.lang.String path,
Db.Type type,
int align) |
Modifier and Type | Method and Description |
---|---|
long |
allocate(int len,
boolean clear) |
java.lang.String |
defaultLogPath() |
static java.lang.String |
defaultLogPath(java.lang.String path) |
int |
getAlign() |
long |
getDbRoot() |
Db.Type |
getDbType() |
int |
getDbVersion() |
long |
getRecordedSize() |
int |
getVersion() |
void |
mergeLogs(java.lang.String... paths) |
long |
recordedSizeAddr() |
void |
resume() |
void |
setDbRoot(long addr) |
void |
setDbVersion(int v) |
void |
setRecordedSize(long v) |
allocatedSize, setSize
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 static final short VERSION
public DbFile(java.lang.String path, Db.Type type, int align) throws java.io.IOException
java.io.IOException
public DbFile(java.lang.String path) throws java.io.IOException
java.io.IOException
public static java.lang.String defaultLogPath(java.lang.String path)
public java.lang.String defaultLogPath()
public int getVersion()
public int getAlign()
public Db.Type getDbType()
public int getDbVersion()
public void setDbVersion(int v)
public long getDbRoot()
public void setDbRoot(long addr)
public long getRecordedSize()
public void setRecordedSize(long v)
public final long recordedSizeAddr()
public void mergeLogs(java.lang.String... paths) throws java.io.IOException
java.io.IOException
public void resume()
public long allocate(int len, boolean clear)
allocate
in interface MemSpace
allocate
in class SimpleFileDataSpace