public abstract static class SegmentedFile.Builder
extends java.lang.Object
| Constructor and Description |
|---|
SegmentedFile.Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addPotentialBoundary(long boundary)
Adds a position that would be a safe place for a segment boundary in the file.
|
abstract SegmentedFile |
complete(java.lang.String path)
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) |
public abstract void addPotentialBoundary(long boundary)
boundary - The absolute position of the potential boundary in the file.public abstract SegmentedFile complete(java.lang.String path)
path - The file on disk.public void serializeBounds(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void deserializeBounds(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionCopyright © 2015 The Apache Software Foundation