public static class CompressedPoolingSegmentedFile.Builder extends CompressedSegmentedFile.Builder
writer
Constructor and Description |
---|
CompressedPoolingSegmentedFile.Builder(CompressedSequentialWriter writer) |
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(java.lang.String path)
Called after all potential boundaries have been added to apply this Builder to a concrete file on disk.
|
SegmentedFile |
openEarly(java.lang.String path)
Called after all potential boundaries have been added to apply this Builder to a concrete file on disk.
|
metadata
deserializeBounds, serializeBounds
public CompressedPoolingSegmentedFile.Builder(CompressedSequentialWriter writer)
public void addPotentialBoundary(long boundary)
SegmentedFile.Builder
addPotentialBoundary
in class CompressedSegmentedFile.Builder
boundary
- The absolute position of the potential boundary in the file.public SegmentedFile complete(java.lang.String path)
SegmentedFile.Builder
complete
in class CompressedSegmentedFile.Builder
path
- The file on disk.public SegmentedFile openEarly(java.lang.String path)
SegmentedFile.Builder
openEarly
in class CompressedSegmentedFile.Builder
path
- The file on disk.Copyright © 2014 The Apache Software Foundation