java.lang.Object
org.yamcs.yarch.PartitionManager
org.yamcs.yarch.rocksdb.RdbPartitionManager
Handles partitions for one table. All partitions are stored as records in the tablespace.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.yarch.PartitionManager
PartitionManager.Interval -
Field Summary
Fields inherited from class org.yamcs.yarch.PartitionManager
intervals, partitioningSpec, pcache, tableDefinition -
Constructor Summary
ConstructorsConstructorDescriptionRdbPartitionManager(RdbTable table, String yamcsInstance, TableDefinition tableDefinition) -
Method Summary
Modifier and TypeMethodDescriptionprotected HistogramInfocreateHistogram(String columnName) For non time partitioned tables - create a tablespace record for the histogram for the given column nameprotected HistogramInfocreateHistogramByTime(TimePartitionInfo pinfo, String columnName) For time partitioned tables: creates a tablespace record for the histogram for the given column nameprotected PartitioncreatePartition(Object value) Create a partition for value based partitioningprotected PartitioncreatePartitionByTime(TimePartitionInfo pinfo, Object value) Create a partition for time (and possible value) based partitioningvoidCalled at startup to read existing partitionsMethods inherited from class org.yamcs.yarch.PartitionManager
createAndGetHistogram, createAndGetPartition, getPartitionForTuple, getPartitioningSpec, getPartitions, getTableDefinition, getTableName, intervalIterator, iterator, iterator, reverseIterator, reverseIterator
-
Constructor Details
-
RdbPartitionManager
-
-
Method Details
-
readPartitions
Called at startup to read existing partitions- Throws:
IOExceptionorg.rocksdb.RocksDBException
-
createPartitionByTime
Description copied from class:PartitionManagerCreate a partition for time (and possible value) based partitioning- Specified by:
createPartitionByTimein classPartitionManager- Returns:
- Throws:
IOException
-
createPartition
Description copied from class:PartitionManagerCreate a partition for value based partitioning- Specified by:
createPartitionin classPartitionManager- Returns:
-
createHistogramByTime
For time partitioned tables: creates a tablespace record for the histogram for the given column name- Specified by:
createHistogramByTimein classPartitionManager
-
createHistogram
For non time partitioned tables - create a tablespace record for the histogram for the given column name- Specified by:
createHistogramin classPartitionManager
-