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

Method add

src/query/expression/ExpressionDataPoint.java:121–137  ·  view source on GitHub ↗

Add another metric series to this collection, computing the tag and agg intersections and incrementing the size. @param dps The series to add

(final DataPoints dps)

Source from the content-addressed store, hash-verified

119 * @param dps The series to add
120 */
121 public void add(final DataPoints dps) {
122 metric_uids.add(dps.metricUID());
123
124 // TODO - tags intersection
125
126 for (final byte[] tagk : dps.getAggregatedTagUids()) {
127 aggregated_tags.add(tagk);
128 }
129
130 tsuids.addAll(dps.getTSUIDs());
131 // TODO - this ain't right. We need to number of dps emitted from HERE. For
132 // now we'll just take the first dps size. If it's downsampled then this
133 // will be accurate.
134 //size += dps.size();
135 // TODO - restore when this is faster
136 //raw_size += dps.aggregatedSize();
137 }
138
139 /**
140 * Add another metric series to this collection, computing the tag and

Callers 15

buildFuzzyFiltersMethod · 0.45
getRowKeyTSUIDRegexMethod · 0.45
compileMethod · 0.45
extractVariableNamesMethod · 0.45
scaleMethod · 0.45
addSubExpressionMethod · 0.45
addFunctionParameterMethod · 0.45
evaluateMethod · 0.45
writeStringFieldMethod · 0.45
cleanMethod · 0.45
callMethod · 0.45

Calls 3

metricUIDMethod · 0.65
getAggregatedTagUidsMethod · 0.65
getTSUIDsMethod · 0.65

Tested by

no test coverage detected