|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstorage.primitiveStorage.PrimitiveStorageManager.Chunk
storage.primitiveStorage.PrimitiveStorageManager.FlexibleChunk
Flexible chunks are used to storage information in files which size can grow or decrease. This kind of chunks are used for storage information in files with a high control of the operating system, in database terms this represent the storage in cooked partitions.
Method Summary | |
void |
changeSize(long size)
Changes the size of the file used by the chunk. |
java.lang.String |
getInfo()
Returns a string contains the chunk information. |
long |
getSize()
Returns the real size (in bytes) of the chunk, i.e. the size of file used by the chunk. |
Methods inherited from class storage.primitiveStorage.PrimitiveStorageManager.Chunk |
getFile, getFileName, getMaxSize, readPage, writePage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public long getSize() throws java.io.IOException
java.io.IOException
public void changeSize(long size) throws java.io.IOException
size
- The new size of the chunk, this size will be round according to page size.
java.io.IOException
public java.lang.String getInfo() throws java.io.IOException
PrimitiveStorageManager.Chunk
getInfo
in class PrimitiveStorageManager.Chunk
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |