MCPcopy Index your code
hub / github.com/prometheus/prometheus / floatHistogramIterator

Struct floatHistogramIterator

tsdb/chunkenc/float_histogram.go:833–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833type floatHistogramIterator struct {
834 br bstreamReader
835 numTotal uint16
836 numRead uint16
837
838 counterResetHeader CounterResetHeader
839
840 // Layout:
841 schema int32
842 zThreshold float64
843 pSpans, nSpans []histogram.Span
844 customValues []float64
845
846 // For the fields that are tracked as deltas and ultimately dod's.
847 t int64
848 tDelta int64
849
850 // All Gorilla xor encoded.
851 sum, cnt, zCnt xorValue
852
853 // Buckets are not of type xorValue to avoid creating
854 // new slices for every AtFloatHistogram call.
855 pBuckets, nBuckets []float64
856 pBucketsLeading, nBucketsLeading []uint8
857 pBucketsTrailing, nBucketsTrailing []uint8
858
859 err error
860
861 // Track calls to retrieve methods. Once they have been called, we
862 // cannot recycle the bucket slices anymore because we have returned
863 // them in the histogram.
864 atFloatHistogramCalled bool
865}
866
867func (it *floatHistogramIterator) Seek(t int64) ValueType {
868 if it.err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected