storage.primitiveStorage
Class PrimitiveStorageManager.FixedChunk

java.lang.Object
  extended bystorage.primitiveStorage.PrimitiveStorageManager.Chunk
      extended bystorage.primitiveStorage.PrimitiveStorageManager.FixedChunk
Enclosing class:
PrimitiveStorageManager

public final class PrimitiveStorageManager.FixedChunk
extends PrimitiveStorageManager.Chunk

Fixed chunks are used to storage information in files which size is considered fixed. This kind of chunks are used for storage information in files with a low control of the operating system, in database terms this represent the storage in raw partitions. A fixed chunk has an offset that indicates where the chunks starts in the file, and also has a maximun size that indicates what part of the file it occups.


Method Summary
 java.lang.String getInfo()
          Returns a string contains the chunk information.
 long getOffset()
          Returns the file offset when the chunk starts.
 
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

getOffset

public long getOffset()
Returns the file offset when the chunk starts.


getInfo

public java.lang.String getInfo()
                         throws java.io.IOException
Description copied from class: PrimitiveStorageManager.Chunk
Returns a string contains the chunk information.

Specified by:
getInfo in class PrimitiveStorageManager.Chunk
Throws:
java.io.IOException