ColumnsSpans
This composite type is a collection of ColumnSpans objects. (Iterable.)
It is used to carry data present and/or data missing information within
the cache engine.
Syntax
from java.util import Date
from com.automation_pros.tsdbcache import DateSpan, ColumnSpans, ColumnsSpans
timeline = ColumnSpans('acolumnname')
timeline.add(DateSpan(Date(...), Date(...)))
timelinecollection = ColumnsSpans()
timelinecollection.add(timeline)
Properties
| Property | Data Type | Description |
| columnNames | List<String> | The column names
associated present in the collection. Read-only. |
Methods
| timelinecollection.getColumn(arg0) |
| Argument | Data Type | Description |
| arg0 | String | Column name to look up |
| returns | ColumnSpans | Null/None if the
column is not in the collection. |
| timelinecollection.intersect(arg0) |
| Argument | Data Type | Description |
| arg0 | ColumnSpans Collection<ColumnSpans> | Subject column(s)
spans to check. |
| returns | boolean | True if any span intersects on
a matching column. |
| timelinecollection.add(arg0) |
| Argument | Data Type | Description |
| arg0 | ColumnSpans | Subject column with date spans. |
| returns | void | Adds the given column to the
collection if not already present, and merges its date spans. |
| timelinecollection.remove(arg0) |
| Argument | Data Type | Description |
| arg0 | DateSpan DateSpans ColumnSpans | Subject
date span(s) or column with date spans. |
| returns | void | Removes the given date span(s)
from the entire collection or from the given column. Resulting empty
columns are removed from the collection. |
| timelinecollection.filter(arg0) |
| Argument | Data Type | Description |
| arg0 | ColumnSpans Collection<ColumnSpans> | Subject
column(s) with date spans. |
| returns | void | Removes this collection's matching
date span(s) from the given argument's column(s). If a collection, resulting
empty columns are removed. |