public abstract static class SegmentedFile.Builder
extends java.lang.Object
Constructor and Description |
---|
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.
|
SegmentedFile |
complete(java.lang.String path) |
SegmentedFile |
complete(java.lang.String path,
boolean isFinal) |
SegmentedFile |
complete(java.lang.String path,
long overrideLength) |
protected abstract 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) |
public abstract void addPotentialBoundary(long boundary)
boundary
- The absolute position of the potential boundary in the file.protected abstract SegmentedFile complete(java.lang.String path, long overrideLength, boolean isFinal)
path
- The file on disk.public SegmentedFile complete(java.lang.String path)
public SegmentedFile complete(java.lang.String path, boolean isFinal)
public SegmentedFile complete(java.lang.String path, long overrideLength)
public void serializeBounds(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void deserializeBounds(java.io.DataInput in) throws java.io.IOException
java.io.IOException
Copyright © 2015 The Apache Software Foundation