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, setSizeclose, ensureSize, file, flush, rename, toStringfillByte, fillLong, read, read, read, readByte, readBytes, readBytes, readInt, readLong, readShort, readString, write, write, write, write, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeShortequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, fillLong, readBytes, readBytes, readInt, readLong, readShort, writeBytes, writeBytes, writeInt, writeLong, writeShortpublic static final short VERSION
public DbFile(java.lang.String path,
Db.Type type,
int align)
throws java.io.IOException
java.io.IOExceptionpublic DbFile(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic 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.IOExceptionpublic void resume()
public long allocate(int len,
boolean clear)
allocate in interface MemSpaceallocate in class SimpleFileDataSpace