public abstract class PoolingSegmentedFile extends SegmentedFile
Modifier and Type | Class and Description |
---|---|
protected static class |
PoolingSegmentedFile.Cleanup |
SegmentedFile.Builder
channel, length, onDiskLength
Modifier | Constructor and Description |
---|---|
protected |
PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup,
ChannelProxy channel,
long length) |
protected |
PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup,
ChannelProxy channel,
long length,
long onDiskLength) |
|
PoolingSegmentedFile(PoolingSegmentedFile copy) |
Modifier and Type | Method and Description |
---|---|
protected RandomAccessReader |
createPooledReader() |
FileDataInput |
getSegment(long position) |
void |
recycle(RandomAccessReader reader) |
createReader, createThrottledReader, dropPageCache, getBuilder, getCompressedBuilder, iterator, path, sharedCopy, toString
close, close, isCleanedUp
protected PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup, ChannelProxy channel, long length)
protected PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup, ChannelProxy channel, long length, long onDiskLength)
public PoolingSegmentedFile(PoolingSegmentedFile copy)
public FileDataInput getSegment(long position)
getSegment
in class SegmentedFile
protected RandomAccessReader createPooledReader()
public void recycle(RandomAccessReader reader)
Copyright © 2015 The Apache Software Foundation