|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.ext.MemoryFile
public class MemoryFile
carries in-memory data for db4o in-memory operation.
In-memory ObjectContainers are useful for maximum performance
on small databases, for swapping objects or for storing db4o format data
to other media or other databases.
Be aware of the danger of running
into OutOfMemory problems or complete loss of all data, in case of hardware
or JVM failures.
ExtDb4o.openMemoryFile(com.db4o.ext.MemoryFile)
Constructor Summary | |
---|---|
MemoryFile()
constructs a new MemoryFile without any data. |
|
MemoryFile(byte[] bytes)
constructs a MemoryFile to use the byte data from a previous MemoryFile. |
Method Summary | |
---|---|
byte[] |
getBytes()
returns the raw byte data. |
int |
getIncrementSizeBy()
returns the size the MemoryFile is to be enlarged, if it grows beyond the current size. |
int |
getInitialSize()
returns the initial size of the MemoryFile. |
void |
setBytes(byte[] bytes)
sets the raw byte data. |
void |
setIncrementSizeBy(int byteCount)
configures the size the MemoryFile is to be enlarged by, if it grows beyond the current size. |
void |
setInitialSize(int byteCount)
configures the initial size of the MemoryFile. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryFile()
ExtDb4o.openMemoryFile(com.db4o.ext.MemoryFile)
public MemoryFile(byte[] bytes)
bytes
- the raw byte data.ExtDb4o.openMemoryFile(com.db4o.ext.MemoryFile)
Method Detail |
---|
public byte[] getBytes()
public int getIncrementSizeBy()
public int getInitialSize()
public void setBytes(byte[] bytes)
bytes
- the raw byte data.public void setIncrementSizeBy(int byteCount)
ExtDb4o.openMemoryFile(MemoryFile)
.
byteCount
- the desired size in bytespublic void setInitialSize(int byteCount)
ExtDb4o.openMemoryFile(MemoryFile)
.
byteCount
- the desired size in bytes
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |