This composite type extends the DateSpans type to include a dataset column name as a property. It is used to carry data present and/or data missing information for a single column.
from java.util import Date
from com.automation_pros.tsdbcache import DateSpan, ColumnSpans
timeline = ColumnSpans('acolumnname')
timeline.add(DateSpan(Date(...), Date(...)))
| Property | Data Type | Description |
|---|---|---|
| colName | String | The column name associated with the time spans. |
| spans | List<DateSpan> | Underlying list of DateSpans. Operations on this list are unchecked. |
| timeline.compareTo(arg0) | ||
| Argument | Data Type | Description |
|---|---|---|
| arg0 | ColumnSpans | Comparison subject |
| returns | int | Implements natural ordering for ColumnSpans objects, which will sort by ascending column name, case sensitive. |
See the documentation for the parent class, DateSpans, for a description of its methods. ColumnSpans includes all of those methods.