public class CompressedPoolingSegmentedFile extends PoolingSegmentedFile implements ICompressedFile
Modifier and Type | Class and Description |
---|---|
static class |
CompressedPoolingSegmentedFile.Builder |
protected static class |
CompressedPoolingSegmentedFile.Cleanup |
Modifier and Type | Field and Description |
---|---|
CompressionMetadata |
metadata |
channel, length, onDiskLength
Constructor and Description |
---|
CompressedPoolingSegmentedFile(ChannelProxy channel,
CompressionMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
ChannelProxy |
channel() |
java.util.TreeMap<java.lang.Long,java.nio.MappedByteBuffer> |
chunkSegments() |
protected RandomAccessReader |
createPooledReader() |
RandomAccessReader |
createReader() |
RandomAccessReader |
createThrottledReader(com.google.common.util.concurrent.RateLimiter limiter) |
void |
dropPageCache(long before) |
CompressionMetadata |
getMetadata() |
CompressedPoolingSegmentedFile |
sharedCopy() |
getSegment, recycle
copyReadableBounds, getBuilder, getCompressedBuilder, iterator, path, toString
close, close, isCleanedUp
public final CompressionMetadata metadata
public CompressedPoolingSegmentedFile(ChannelProxy channel, CompressionMetadata metadata)
public ChannelProxy channel()
channel
in interface ICompressedFile
public java.util.TreeMap<java.lang.Long,java.nio.MappedByteBuffer> chunkSegments()
chunkSegments
in interface ICompressedFile
public void dropPageCache(long before)
dropPageCache
in class SegmentedFile
public RandomAccessReader createReader()
createReader
in class SegmentedFile
public RandomAccessReader createThrottledReader(com.google.common.util.concurrent.RateLimiter limiter)
createThrottledReader
in class SegmentedFile
protected RandomAccessReader createPooledReader()
createPooledReader
in class PoolingSegmentedFile
public CompressionMetadata getMetadata()
getMetadata
in interface ICompressedFile
public CompressedPoolingSegmentedFile sharedCopy()
sharedCopy
in interface SharedCloseable
sharedCopy
in class SegmentedFile
Copyright © 2018 The Apache Software Foundation