Package com.onenetwork.platform.data.tlv
Interface DataMeasure
public interface DataMeasure
-
Method Summary
Modifier and Type Method Description Bucket
getBucket(java.util.Date date)
Returns the Bucket which includes the given Date.Bucketization
getBucketization()
Returns the Bucketization of this DataMeasurejava.util.List<Bucket>
getBucketsForWeek(java.util.Date date)
Return all Buckets for the entire week associated with the given date.java.util.List<DataMeasure>
getChildren()
Returns all children which have this DataMeasure as a parent - if it has no children, an empty list is returned.java.util.Map<java.lang.String,java.lang.Object>
getContext()
Typically, a DataMeasure is uniquely identified by name.java.lang.String
getName()
Uniquely identifies this DataMeasure within its parentTimeline
Timeline
getTimeline()
Returns the parentTimeline
objectjava.util.TimeZone
getTimeZone()
Timezone of DataMeasureboolean
isHidden()
Whether or not the data measure is hidden.
-
Method Details
-
getName
java.lang.String getName()Uniquely identifies this DataMeasure within its parentTimeline
-
getBucket
Returns the Bucket which includes the given Date.- Parameters:
date
- date which falls within the bucket to be fetched
-
getBucketsForWeek
Return all Buckets for the entire week associated with the given date. This is useful when computing a weekly DataMeasure value using values from a different, daily DataMeasure.- Parameters:
date
- all Buckets which share the same week as this date will be returned
-
getBucketization
Bucketization getBucketization()Returns the Bucketization of this DataMeasure -
getTimeline
Timeline getTimeline()Returns the parentTimeline
object -
getChildren
java.util.List<DataMeasure> getChildren()Returns all children which have this DataMeasure as a parent - if it has no children, an empty list is returned. Only immediate children are returned, not children's children. -
getContext
java.util.Map<java.lang.String,java.lang.Object> getContext()Typically, a DataMeasure is uniquely identified by name. However, it is possible to have multiple DataMeasures with the same name but different context if you use the ColumnHierarchy feature of the TLV. For example, I might have a DataMeasure "RequestQuantity" with a ColumnHierarchy for "Item" - this would give me one DataMeasure named "RequestQuantity" for every distinct Item selected in the results. The Map returned from this method returns all such context fields, keyed by field name. -
getTimeZone
java.util.TimeZone getTimeZone()Timezone of DataMeasure- Returns:
-
isHidden
boolean isHidden()Whether or not the data measure is hidden.- Returns:
- true if the data measure is hidden, false otherwise
-