public abstract class PoolingSegmentedFile extends SegmentedFile
Modifier and Type | Class and Description |
---|---|
protected static class |
PoolingSegmentedFile.Cleanup |
SegmentedFile.Builder
length, onDiskLength, path
Modifier | Constructor and Description |
---|---|
protected |
PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup,
java.lang.String path,
long length) |
protected |
PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup,
java.lang.String path,
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, getCompressedBuilder, iterator, sharedCopy, toString
close, isCleanedUp
protected PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup, java.lang.String path, long length)
protected PoolingSegmentedFile(PoolingSegmentedFile.Cleanup cleanup, java.lang.String path, 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 © 2016 The Apache Software Foundation