org.apache.cassandra.io.util
Class MmappedSegmentedFile

java.lang.Object
  extended by org.apache.cassandra.io.util.SegmentedFile
      extended by org.apache.cassandra.io.util.MmappedSegmentedFile

public class MmappedSegmentedFile
extends SegmentedFile


Field Summary
static long MAX_SEGMENT_SIZE
           
 
Fields inherited from class org.apache.cassandra.io.util.SegmentedFile
length, path
 
Constructor Summary
MmappedSegmentedFile(java.lang.String path, long length, org.apache.cassandra.io.util.SegmentedFile.Segment[] segments)
           
 
Method Summary
 FileDataInput getSegment(long position, int bufferSize)
           
 
Methods inherited from class org.apache.cassandra.io.util.SegmentedFile
getBuilder, iterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_SEGMENT_SIZE

public static long MAX_SEGMENT_SIZE
Constructor Detail

MmappedSegmentedFile

public MmappedSegmentedFile(java.lang.String path,
                            long length,
                            org.apache.cassandra.io.util.SegmentedFile.Segment[] segments)
Method Detail

getSegment

public FileDataInput getSegment(long position,
                                int bufferSize)
Specified by:
getSegment in class SegmentedFile
Returns:
The segment containing the given position: must be closed after use.


Copyright © 2011 The Apache Software Foundation