public class MmappedSegmentedFile extends SegmentedFile
| Modifier and Type | Class and Description |
|---|---|
static class |
MmappedSegmentedFile.Builder
Overrides the default behaviour to create segments of a maximum size.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_SEGMENT_SIZE |
length, onDiskLength, path| Constructor and Description |
|---|
MmappedSegmentedFile(java.lang.String path,
long length,
org.apache.cassandra.io.util.SegmentedFile.Segment[] segments) |
| Modifier and Type | Method and Description |
|---|---|
FileDataInput |
getSegment(long position) |
static boolean |
maybeRepair(CFMetaData metadata,
Descriptor descriptor,
IndexSummary indexSummary,
SegmentedFile.Builder ibuilder,
SegmentedFile.Builder dbuilder) |
MmappedSegmentedFile |
sharedCopy() |
createReader, createThrottledReader, dropPageCache, getBuilder, getCompressedBuilder, getCompressedBuilder, iterator, toStringclose, isCleanedUppublic MmappedSegmentedFile(java.lang.String path,
long length,
org.apache.cassandra.io.util.SegmentedFile.Segment[] segments)
public MmappedSegmentedFile sharedCopy()
sharedCopy in interface SharedCloseablesharedCopy in class SegmentedFilepublic FileDataInput getSegment(long position)
getSegment in class SegmentedFilepublic static boolean maybeRepair(CFMetaData metadata, Descriptor descriptor, IndexSummary indexSummary, SegmentedFile.Builder ibuilder, SegmentedFile.Builder dbuilder)
Copyright © 2015 The Apache Software Foundation