org.apache.cassandra.io.util
Class MmappedSegmentedFile
java.lang.Object
org.apache.cassandra.io.util.SegmentedFile
org.apache.cassandra.io.util.MmappedSegmentedFile
public class MmappedSegmentedFile
- extends SegmentedFile
Constructor Summary |
MmappedSegmentedFile(java.lang.String path,
long length,
org.apache.cassandra.io.util.SegmentedFile.Segment[] segments)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MAX_SEGMENT_SIZE
public static long MAX_SEGMENT_SIZE
MmappedSegmentedFile
public MmappedSegmentedFile(java.lang.String path,
long length,
org.apache.cassandra.io.util.SegmentedFile.Segment[] segments)
getSegment
public FileDataInput getSegment(long position)
- Specified by:
getSegment
in class SegmentedFile
- Returns:
- The segment containing the given position: must be closed after use.
initCleaner
public static void initCleaner()
isCleanerAvailable
public static boolean isCleanerAvailable()
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 © 2011 The Apache Software Foundation