org.mapdb
Class Volume.MemoryVol

java.lang.Object
  extended by org.mapdb.Volume
      extended by org.mapdb.Volume.ByteBufferVol
          extended by org.mapdb.Volume.MemoryVol
Enclosing class:
Volume

public static final class Volume.MemoryVol
extends Volume.ByteBufferVol


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mapdb.Volume
Volume.ByteBufferVol, Volume.Factory, Volume.FileChannelVol, Volume.MappedFileVol, Volume.MemoryVol
 
Field Summary
protected  boolean useDirectBuffer
           
 
Fields inherited from class org.mapdb.Volume.ByteBufferVol
chunks, chunkShift, chunkSize, chunkSizeModMask, growLock, hasLimit, readOnly, sizeLimit
 
Constructor Summary
Volume.MemoryVol(boolean useDirectBuffer, long sizeLimit, int chunkShift)
           
 
Method Summary
 void close()
           
 void deleteFile()
           
 File getFile()
          returns underlying file if it exists
protected  ByteBuffer makeNewBuffer(long offset)
           
 void sync()
           
 String toString()
           
 void truncate(long size)
           
 
Methods inherited from class org.mapdb.Volume.ByteBufferVol
getByte, getDataInput, getInt, getLong, isEmpty, isSliced, putByte, putData, putData, putInt, putLong, tryAvailable, unmap
 
Methods inherited from class org.mapdb.Volume
ensureAvailable, fileFactory, fileFactory, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, memoryFactory, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, volumeForFile, volumeTransfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

useDirectBuffer

protected final boolean useDirectBuffer
Constructor Detail

Volume.MemoryVol

public Volume.MemoryVol(boolean useDirectBuffer,
                        long sizeLimit,
                        int chunkShift)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

makeNewBuffer

protected ByteBuffer makeNewBuffer(long offset)
Specified by:
makeNewBuffer in class Volume.ByteBufferVol

truncate

public void truncate(long size)
Specified by:
truncate in class Volume

close

public void close()
Specified by:
close in class Volume

sync

public void sync()
Specified by:
sync in class Volume

deleteFile

public void deleteFile()
Specified by:
deleteFile in class Volume

getFile

public File getFile()
Description copied from class: Volume
returns underlying file if it exists

Specified by:
getFile in class Volume


Copyright © 2014. All Rights Reserved.