public abstract class PoolingSegmentedFile extends SegmentedFile
SegmentedFile.Builder
length, 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, toString
protected 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 SegmentedFile
protected abstract RandomAccessReader createReader(java.lang.String path)
public void recycle(RandomAccessReader reader)
public void cleanup()
SegmentedFile
cleanup
in class SegmentedFile
Copyright © 2015 The Apache Software Foundation