Time Series Database Cache Module by Automation Professionals
E-Mail Support

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

PropertyData TypeDescription
columnNamesList<String>The column names associated present in the collection. Read-only.

Methods

timelinecollection.getColumn(arg0)
ArgumentData TypeDescription
arg0StringColumn name to look up
returnsColumnSpansNull/None if the column is not in the collection.
timelinecollection.intersect(arg0)
ArgumentData TypeDescription
arg0ColumnSpans
Collection<ColumnSpans>
Subject column(s) spans to check.
returnsbooleanTrue if any span intersects on a matching column.
timelinecollection.add(arg0)
ArgumentData TypeDescription
arg0ColumnSpansSubject column with date spans.
returnsvoidAdds the given column to the collection if not already present, and merges its date spans.
timelinecollection.remove(arg0)
ArgumentData TypeDescription
arg0DateSpan
DateSpans
ColumnSpans
Subject date span(s) or column with date spans.
returnsvoidRemoves 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)
ArgumentData TypeDescription
arg0ColumnSpans
Collection<ColumnSpans>
Subject column(s) with date spans.
returnsvoidRemoves this collection's matching date span(s) from the given argument's column(s). If a collection, resulting empty columns are removed.