MCPcopy
hub / github.com/OpenTSDB/opentsdb / DataPoints

Interface DataPoints

src/core/DataPoints.java:29–240  ·  view source on GitHub ↗

Represents a read-only sequence of continuous data points. Implementations of this interface aren't expected to be synchronized.

Source from the content-addressed store, hash-verified

27 * Implementations of this interface aren't expected to be synchronized.
28 */
29public interface DataPoints extends Iterable<DataPoint> {
30
31 /**
32 * Returns the name of the series.
33 */
34 String metricName();
35
36 /**
37 * Returns the name of the series.
38 * @since 1.2
39 */
40 Deferred<String> metricNameAsync();
41
42 /**
43 * @return the metric UID
44 * @since 2.3
45 */
46 byte[] metricUID();
47
48 /**
49 * Returns the tags associated with these data points.
50 * @return A non-{@code null} map of tag names (keys), tag values (values).
51 */
52 Map<String, String> getTags();
53
54 /**
55 * Returns the tags associated with these data points.
56 * @return A non-{@code null} map of tag names (keys), tag values (values).
57 * @since 1.2
58 */
59 Deferred<Map<String, String>> getTagsAsync();
60
61 /**
62 * Returns a map of tag pairs as UIDs.
63 * When used on a span or row, it returns the tag set. When used on a span
64 * group it will return only the tag pairs that are common across all
65 * time series in the group.
66 * @return A potentially empty map of tagk to tagv pairs as UIDs
67 * @since 2.2
68 */
69 ByteMap<byte[]> getTagUids();
70
71 /**
72 * Returns the tags associated with some but not all of the data points.
73 * <p>
74 * When this instance represents the aggregation of multiple time series
75 * (same metric but different tags), {@link #getTags} returns the tags that
76 * are common to all data points (intersection set) whereas this method
77 * returns all the tags names that are not common to all data points (union
78 * set minus the intersection set, also called the symmetric difference).
79 * <p>
80 * If this instance does not represent an aggregation of multiple time
81 * series, the list returned is empty.
82 * @return A non-{@code null} list of tag names.
83 */
84 List<String> getAggregatedTags();
85
86 /**

Implementers 12

HistogramDataPointsToDataPointsAdaptorsrc/core/HistogramDataPointsToDataPoin
HistogramBucketDataPointsAdaptorsrc/core/HistogramBucketDataPointsAdap
Spansrc/core/Span.java
EDPtoDPSsrc/query/expression/EDPtoDPS.java
PostAggregatedDataPointssrc/query/expression/PostAggregatedDat
RollupSeqsrc/rollup/RollupSeq.java
SpanGroupsrc/core/SpanGroup.java
RowSeqsrc/core/RowSeq.java
IncomingDataPointssrc/core/IncomingDataPoints.java
BatchedDataPointssrc/core/BatchedDataPoints.java
SplitRollupSpanGroupsrc/core/SplitRollupSpanGroup.java
AbstractSpanGroupsrc/core/AbstractSpanGroup.java

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…