org.apache.cassandra.io.util
Class PoolingSegmentedFile
java.lang.Object
org.apache.cassandra.io.util.SegmentedFile
org.apache.cassandra.io.util.PoolingSegmentedFile
- Direct Known Subclasses:
- BufferedSegmentedFile, CompressedSegmentedFile
public abstract class PoolingSegmentedFile
- extends SegmentedFile
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
pool
public final java.util.Queue<RandomAccessReader> pool
PoolingSegmentedFile
protected PoolingSegmentedFile(java.lang.String path,
long length)
PoolingSegmentedFile
protected PoolingSegmentedFile(java.lang.String path,
long length,
long onDiskLength)
getSegment
public FileDataInput getSegment(long position)
- Specified by:
getSegment
in class SegmentedFile
createReader
protected abstract RandomAccessReader createReader(java.lang.String path)
recycle
public void recycle(RandomAccessReader reader)
cleanup
public void cleanup()
- Description copied from class:
SegmentedFile
- Do whatever action is needed to reclaim ressources used by this SegmentedFile.
- Specified by:
cleanup
in class SegmentedFile
Copyright © 2013 The Apache Software Foundation