lsst.dax.apdb g9290983e33+d2d81de7f7
 
Loading...
Searching...
No Matches
lsst.dax.apdb.cassandra.config.ApdbCassandraTimePartitionRange Class Reference
Inheritance diagram for lsst.dax.apdb.cassandra.config.ApdbCassandraTimePartitionRange:

Public Member Functions

Iterator[int] range (self)
 
Self from_meta (cls, ApdbMetadataCassandra metadata)
 
None save_to_meta (self, ApdbMetadataCassandra metadata)
 

Static Public Attributes

ClassVar metadataTimePartitionKey = "config:time-partition-range.json"
 
int start
 
int end
 

Detailed Description

Configuration of the time partitions, this is not user-configurable,
but it is reflected in metadata.

Member Function Documentation

◆ from_meta()

Self lsst.dax.apdb.cassandra.config.ApdbCassandraTimePartitionRange.from_meta ( cls,
ApdbMetadataCassandra metadata )
Read this configuration object from metadata table.

Parameters
----------
metadata : `ApdbMetadataCassandra`
    Metadata table.

Returns
-------
range : `ApdbCassandraTimePartitionRange`
    Configuration retrieved from database.

◆ range()

Iterator[int] lsst.dax.apdb.cassandra.config.ApdbCassandraTimePartitionRange.range ( self)
Generate a sequence of partition numbers.

◆ save_to_meta()

None lsst.dax.apdb.cassandra.config.ApdbCassandraTimePartitionRange.save_to_meta ( self,
ApdbMetadataCassandra metadata )
Save this configuration to metadata table.

Parameters
----------
metadata : `ApdbMetadataCassandra`
    Metadata table.

Member Data Documentation

◆ end

int lsst.dax.apdb.cassandra.config.ApdbCassandraTimePartitionRange.end
static
Initial value:
= Field(
description="End partition number (inclusive) for per-time-partition tables that exist in the schema."
)

◆ start

lsst.dax.apdb.cassandra.config.ApdbCassandraTimePartitionRange.start
static
Initial value:
= Field(
description="Start partition number for per-time-partition tables that exist in the schema."
)

The documentation for this class was generated from the following file: