public class SegmentManager<T extends java.io.Serializable>
extends java.lang.Object
Constructor and Description |
---|
SegmentManager(java.nio.file.Path collectionPath,
FileManager fileManager,
Rollupable rollupable,
SegmentSizeConfiguration sizeConfig) |
Modifier and Type | Method and Description |
---|---|
protected static SegmentPathManager |
createSegmentPathManager(SegmentSizeConfiguration sizeConfig,
java.nio.file.Path collectionPath) |
java.util.List<Segment<T>> |
getAllExistingSegments() |
java.util.List<Segment<T>> |
getAllSegments(BlueKey key) |
java.util.List<Segment<T>> |
getExistingSegments(Range range) |
Segment<T> |
getFirstSegment(BlueKey key) |
SegmentPathManager |
getPathManager() |
Segment<T> |
getSegment(long groupingNumber) |
Segment<T> |
getSegmentAfter(Segment<T> segment) |
Range |
getSegmentRange(long groupingValue) |
long |
getSegmentSize() |
Range |
toRange(java.nio.file.Path path) |
protected Segment<T> |
toSegment(java.nio.file.Path path) |
public SegmentManager(java.nio.file.Path collectionPath, FileManager fileManager, Rollupable rollupable, SegmentSizeConfiguration sizeConfig)
public Range getSegmentRange(long groupingValue)
public SegmentPathManager getPathManager()
public Range toRange(java.nio.file.Path path)
public long getSegmentSize()
protected static SegmentPathManager createSegmentPathManager(SegmentSizeConfiguration sizeConfig, java.nio.file.Path collectionPath)