|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cassandra.io.util.SegmentedFile.Builder
public abstract static class SegmentedFile.Builder
Collects potential segmentation points in an underlying file, and builds a SegmentedFile to represent it.
Constructor Summary | |
---|---|
SegmentedFile.Builder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SegmentedFile.Builder()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |