public class SegmentPathManager
extends java.lang.Object
Constructor and Description |
---|
SegmentPathManager(java.nio.file.Path collectionPath,
SegmentSizeConfiguration sizeConfig) |
Modifier and Type | Method and Description |
---|---|
static boolean |
folderNameIsLongInRange(java.io.File file,
long minValue,
long maxValue) |
java.util.List<java.nio.file.Path> |
getAllPossibleSegmentPaths(BlueKey key) |
java.nio.file.Path |
getCollectionPath() |
java.util.List<java.io.File> |
getExistingSegmentFiles(long minValue,
long maxValue) |
java.util.List<java.io.File> |
getExistingSegmentFiles(Range range) |
java.util.List<java.lang.Long> |
getFolderSizes() |
java.util.List<java.lang.Long> |
getRollupLevels() |
java.nio.file.Path |
getSegmentPath(BlueKey key) |
java.nio.file.Path |
getSegmentPath(long groupingNumber) |
long |
getSegmentSize() |
static java.util.List<java.io.File> |
getSubfoldersInRange(java.io.File folder,
long minValue,
long maxValue) |
static java.util.List<java.io.File> |
getSubfoldersInRange(java.util.List<java.io.File> folders,
long minValue,
long maxValue) |
public SegmentPathManager(java.nio.file.Path collectionPath, SegmentSizeConfiguration sizeConfig)
public java.nio.file.Path getSegmentPath(BlueKey key)
public long getSegmentSize()
public java.util.List<java.lang.Long> getRollupLevels()
public java.util.List<java.lang.Long> getFolderSizes()
public java.nio.file.Path getCollectionPath()
public java.nio.file.Path getSegmentPath(long groupingNumber)
public java.util.List<java.nio.file.Path> getAllPossibleSegmentPaths(BlueKey key)
public java.util.List<java.io.File> getExistingSegmentFiles(Range range)
public java.util.List<java.io.File> getExistingSegmentFiles(long minValue, long maxValue)
public static java.util.List<java.io.File> getSubfoldersInRange(java.io.File folder, long minValue, long maxValue)
public static java.util.List<java.io.File> getSubfoldersInRange(java.util.List<java.io.File> folders, long minValue, long maxValue)
public static boolean folderNameIsLongInRange(java.io.File file, long minValue, long maxValue)