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, toStringclose, close, isCleanedUppublic 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 ICompressedFilepublic MmappedRegions regions()
regions in interface ICompressedFilepublic CompressedSegmentedFile sharedCopy()
sharedCopy in interface SharedCloseablesharedCopy in class SegmentedFilepublic void addTo(Ref.IdentityCollection identities)
addTo in interface SharedCloseableaddTo in class SharedCloseableImplpublic void dropPageCache(long before)
dropPageCache in class SegmentedFilepublic RandomAccessReader createReader()
createReader in class SegmentedFilepublic RandomAccessReader createReader(com.google.common.util.concurrent.RateLimiter limiter)
createReader in class SegmentedFilepublic CompressionMetadata getMetadata()
getMetadata in interface ICompressedFileCopyright © 2016 The Apache Software Foundation