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