MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / write

Method write

src/core/SimpleHistogram.java:216–227  ·  view source on GitHub ↗
(Kryo kryo, Output output)

Source from the content-addressed store, hash-verified

214 }
215
216 public void write(Kryo kryo, Output output) {
217 int bucketCount = buckets.size();
218 output.writeShort(bucketCount);
219
220 for (Map.Entry<HistogramBucket, Long> bucket : buckets.entrySet()) {
221 bucket.getKey().write(kryo, output);
222 output.writeLong(bucket.getValue(), true);
223 }
224
225 output.writeLong(this.getUnderflow(), true);
226 output.writeLong(this.getOverflow(), true);
227 }
228
229 public void read(Kryo kryo, Input input) {
230 int bucketCount = input.readShort();

Callers 15

handleMethod · 0.45
mainFunction · 0.45
messageReceivedMethod · 0.45
mockChannelFutureMethod · 0.45
executeMethod · 0.45
executeAggOnlyMethod · 0.45
executeRollupWithAggMethod · 0.45
executeBadValueMethod · 0.45
executeMissingMetricMethod · 0.45

Calls 5

getUnderflowMethod · 0.95
getOverflowMethod · 0.95
sizeMethod · 0.65
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by 15

messageReceivedMethod · 0.36
mockChannelFutureMethod · 0.36
executeMethod · 0.36
executeAggOnlyMethod · 0.36
executeRollupWithAggMethod · 0.36
executeBadValueMethod · 0.36
executeMissingMetricMethod · 0.36
executeUnknownMetricMethod · 0.36
executeHBaseErrorMethod · 0.36