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 |
channel, length, onDiskLength
Constructor and Description |
---|
MmappedSegmentedFile(ChannelProxy channel,
long length,
org.apache.cassandra.io.util.SegmentedFile.Segment[] segments) |
Modifier and Type | Method and Description |
---|---|
long[] |
copyReadableBounds()
Retrieve the readable bounds if any so they can be cloned into other files such
as when downsampling an index summary.
|
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, iterator, path, toString
close, close, isCleanedUp
public MmappedSegmentedFile(ChannelProxy channel, long length, org.apache.cassandra.io.util.SegmentedFile.Segment[] segments)
public MmappedSegmentedFile sharedCopy()
sharedCopy
in interface SharedCloseable
sharedCopy
in class SegmentedFile
public FileDataInput getSegment(long position)
getSegment
in class SegmentedFile
public long[] copyReadableBounds()
SegmentedFile
copyReadableBounds
in class SegmentedFile
public static boolean maybeRepair(CFMetaData metadata, Descriptor descriptor, IndexSummary indexSummary, SegmentedFile.Builder ibuilder, SegmentedFile.Builder dbuilder)
Copyright © 2016 The Apache Software Foundation