MCPcopy
hub / github.com/prometheus/prometheus / xor2Iterator

Struct xor2Iterator

tsdb/chunkenc/xor2.go:515–535  ·  view source on GitHub ↗

xor2Iterator decodes XOR2 chunks.

Source from the content-addressed store, hash-verified

513
514// xor2Iterator decodes XOR2 chunks.
515type xor2Iterator struct {
516 br bstreamReader
517 numTotal uint16
518 numRead uint16
519
520 firstSTKnown bool
521 firstSTChangeOn uint8
522
523 leading uint8
524 trailing uint8
525
526 st int64
527 t int64
528 val float64
529
530 tDelta uint64
531 stDiff int64 // Accumulated prevT - st.
532 err error
533
534 baselineV float64 // Last non-stale value for XOR baseline.
535}
536
537func (it *xor2Iterator) Seek(t int64) ValueType {
538 if it.err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected