public abstract class PoolingSegmentedFile extends SegmentedFile
SegmentedFile.Builderlength, onDiskLength, path| Modifier | Constructor and Description |
|---|---|
protected |
PoolingSegmentedFile(java.lang.String path,
long length) |
protected |
PoolingSegmentedFile(java.lang.String path,
long length,
long onDiskLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Do whatever action is needed to reclaim ressources used by this SegmentedFile.
|
protected abstract RandomAccessReader |
createReader(java.lang.String path) |
FileDataInput |
getSegment(long position) |
void |
recycle(RandomAccessReader reader) |
getBuilder, getCompressedBuilder, iterator, toStringprotected PoolingSegmentedFile(java.lang.String path,
long length)
protected PoolingSegmentedFile(java.lang.String path,
long length,
long onDiskLength)
public FileDataInput getSegment(long position)
getSegment in class SegmentedFileprotected abstract RandomAccessReader createReader(java.lang.String path)
public void recycle(RandomAccessReader reader)
public void cleanup()
SegmentedFilecleanup in class SegmentedFileCopyright © 2015 The Apache Software Foundation