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, toStringclose, close, isCleanedUppublic MmappedSegmentedFile(ChannelProxy channel, 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 long[] copyReadableBounds()
SegmentedFilecopyReadableBounds in class SegmentedFilepublic static boolean maybeRepair(CFMetaData metadata, Descriptor descriptor, IndexSummary indexSummary, SegmentedFile.Builder ibuilder, SegmentedFile.Builder dbuilder)
Copyright © 2018 The Apache Software Foundation