public static class BufferedSegmentedFile.Builder extends SegmentedFile.Builder
| 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.
|
SegmentedFile |
complete(ChannelProxy channel,
int bufferSize,
long overrideLength)
Called after all potential boundaries have been added to apply this Builder to a concrete file on disk.
|
buildData, buildData, buildIndex, buildIndex, close, close, deserializeBounds, serializeBoundspublic void addPotentialBoundary(long boundary)
SegmentedFile.BuilderaddPotentialBoundary in class SegmentedFile.Builderboundary - The absolute position of the potential boundary in the file.public SegmentedFile complete(ChannelProxy channel, int bufferSize, long overrideLength)
SegmentedFile.Buildercomplete in class SegmentedFile.Builderchannel - The channel to the file on disk.Copyright © 2015 The Apache Software Foundation