public class CompressedSegmentedFile extends SegmentedFile implements ICompressedFile
Modifier and Type | Class and Description |
---|---|
static class |
CompressedSegmentedFile.Builder |
Modifier and Type | Field and Description |
---|---|
CompressionMetadata |
metadata |
bufferSize, channel, length, onDiskLength
Constructor and Description |
---|
CompressedSegmentedFile(ChannelProxy channel,
int bufferSize,
CompressionMetadata metadata) |
CompressedSegmentedFile(ChannelProxy channel,
int bufferSize,
CompressionMetadata metadata,
MmappedRegions regions) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(Ref.IdentityCollection identities) |
ChannelProxy |
channel() |
RandomAccessReader |
createReader() |
RandomAccessReader |
createReader(com.google.common.util.concurrent.RateLimiter limiter) |
void |
dropPageCache(long before) |
CompressionMetadata |
getMetadata() |
MmappedRegions |
regions() |
CompressedSegmentedFile |
sharedCopy() |
createReader, getBuilder, getCompressedBuilder, path, toString
close, close, isCleanedUp
public final CompressionMetadata metadata
public CompressedSegmentedFile(ChannelProxy channel, int bufferSize, CompressionMetadata metadata)
public CompressedSegmentedFile(ChannelProxy channel, int bufferSize, CompressionMetadata metadata, MmappedRegions regions)
public ChannelProxy channel()
channel
in interface ICompressedFile
public MmappedRegions regions()
regions
in interface ICompressedFile
public CompressedSegmentedFile sharedCopy()
sharedCopy
in interface SharedCloseable
sharedCopy
in class SegmentedFile
public void addTo(Ref.IdentityCollection identities)
addTo
in interface SharedCloseable
addTo
in class SharedCloseableImpl
public void dropPageCache(long before)
dropPageCache
in class SegmentedFile
public RandomAccessReader createReader()
createReader
in class SegmentedFile
public RandomAccessReader createReader(com.google.common.util.concurrent.RateLimiter limiter)
createReader
in class SegmentedFile
public CompressionMetadata getMetadata()
getMetadata
in interface ICompressedFile
Copyright © 2015 The Apache Software Foundation