MCPcopy
hub / github.com/prometheus/prometheus / histogramIterator

Struct histogramIterator

tsdb/chunkenc/histogram.go:892–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890}
891
892type histogramIterator struct {
893 br bstreamReader
894 numTotal uint16
895 numRead uint16
896
897 counterResetHeader CounterResetHeader
898
899 // Layout:
900 schema int32
901 zThreshold float64
902 pSpans, nSpans []histogram.Span
903 customValues []float64
904
905 // For the fields that are tracked as deltas and ultimately dod's.
906 t int64
907 cnt, zCnt uint64
908 tDelta, cntDelta, zCntDelta int64
909 pBuckets, nBuckets []int64 // Delta between buckets.
910 pFloatBuckets, nFloatBuckets []float64 // Absolute counts.
911 pBucketsDelta, nBucketsDelta []int64
912
913 // The sum is Gorilla xor encoded.
914 sum float64
915 leading uint8
916 trailing uint8
917
918 // Track calls to retrieve methods. Once they have been called, we
919 // cannot recycle the bucket slices anymore because we have returned
920 // them in the histogram.
921 atHistogramCalled, atFloatHistogramCalled bool
922
923 err error
924}
925
926func (it *histogramIterator) Seek(t int64) ValueType {
927 if it.err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected