public abstract class SegmentedFile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SegmentedFile.Builder
Collects potential segmentation points in an underlying file, and builds a SegmentedFile to represent it.
|
Modifier and Type | Field and Description |
---|---|
long |
length |
long |
onDiskLength |
java.lang.String |
path |
Modifier | Constructor and Description |
---|---|
protected |
SegmentedFile(java.lang.String path,
long length,
long onDiskLength) |
Modifier and Type | Method and Description |
---|---|
abstract void |
cleanup()
Do whatever action is needed to reclaim ressources used by this SegmentedFile.
|
static SegmentedFile.Builder |
getBuilder(Config.DiskAccessMode mode) |
static SegmentedFile.Builder |
getCompressedBuilder() |
abstract FileDataInput |
getSegment(long position) |
java.util.Iterator<FileDataInput> |
iterator(long position) |
java.lang.String |
toString() |
public final java.lang.String path
public final long length
public final long onDiskLength
protected SegmentedFile(java.lang.String path, long length, long onDiskLength)
public static SegmentedFile.Builder getBuilder(Config.DiskAccessMode mode)
public static SegmentedFile.Builder getCompressedBuilder()
public abstract FileDataInput getSegment(long position)
public java.util.Iterator<FileDataInput> iterator(long position)
public abstract void cleanup()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014 The Apache Software Foundation