public static class MmappedSegmentedFile.Builder extends SegmentedFile.Builder
| Modifier and Type | Class and Description |
|---|---|
static class |
MmappedSegmentedFile.Builder.Boundaries |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPotentialBoundary(long boundary)
Adds a position that would be a safe place for a segment boundary in the file.
|
long[] |
boundaries() |
SegmentedFile |
complete(java.lang.String path,
long overrideLength,
boolean isFinal)
Called after all potential boundaries have been added to apply this Builder to a concrete file on disk.
|
void |
deserializeBounds(java.io.DataInput in) |
void |
serializeBounds(java.io.DataOutput out) |
complete, complete, completepublic long[] boundaries()
public void addPotentialBoundary(long boundary)
SegmentedFile.BuilderaddPotentialBoundary in class SegmentedFile.Builderboundary - The absolute position of the potential boundary in the file.public SegmentedFile complete(java.lang.String path, long overrideLength, boolean isFinal)
SegmentedFile.Buildercomplete in class SegmentedFile.Builderpath - The file on disk.public void serializeBounds(java.io.DataOutput out)
throws java.io.IOException
serializeBounds in class SegmentedFile.Builderjava.io.IOExceptionpublic void deserializeBounds(java.io.DataInput in)
throws java.io.IOException
deserializeBounds in class SegmentedFile.Builderjava.io.IOExceptionCopyright © 2015 The Apache Software Foundation