TimespanColumnSpec¶
- final class lsst.daf.butler.column_spec.TimespanColumnSpec(*, name: str = 'timespan', doc: str = '', type: Literal['timespan'] = 'timespan', nullable: bool = True)¶
Bases:
_BaseColumnSpec
Description of a timespan column.
Attributes Summary
A dictionary of computed field names and their corresponding
ComputedFieldInfo
objects.Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].Metadata about the fields defined on the model, mapping of field names to [
FieldInfo
][pydantic.fields.FieldInfo] objects.Methods Summary
Return object that converts values of this column to or from serializable format.
to_arrow
()Return an object that converts values of this column to a column in an Arrow table.
Attributes Documentation
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding
ComputedFieldInfo
objects.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'doc': FieldInfo(annotation=str, required=False, default='', description='Documentation for the column.'), 'name': FieldInfo(annotation=str, required=False, default='timespan'), 'nullable': FieldInfo(annotation=bool, required=False, default=True, description='Whether the column may be ``NULL``.'), 'type': FieldInfo(annotation=Literal['timespan'], required=False, default='timespan')}¶
Metadata about the fields defined on the model, mapping of field names to [
FieldInfo
][pydantic.fields.FieldInfo] objects.This replaces
Model.__fields__
from Pydantic V1.
Methods Documentation
- serializer() ColumnValueSerializer ¶
Return object that converts values of this column to or from serializable format.
- Returns:
- serializer
ColumnValueSerializer
A converter instance.
- serializer