MCPcopy Create free account

hub / github.com/chenjiandongx/mandodb / functions

Functions201 in github.com/chenjiandongx/mandodb

↓ 20 callersMethodheight
()
pkg/sortedlist/list.go:282
↓ 18 callersMethodAdd
Add 新增节点
pkg/sortedlist/list.go:11
↓ 11 callersMethodClose
()
segment.go:25
↓ 10 callersMethodNext
()
pkg/sortedlist/list.go:22
↓ 9 callersMethodHash
Hash 哈希计算 LabelSet 唯一标识符
label.go:235
↓ 9 callersMethodMinTs
()
segment.go:22
↓ 9 callersMethodValue
()
pkg/sortedlist/list.go:23
↓ 8 callersMethodGet
(start, end int64)
series.go:42
↓ 8 callersMethodUnmarshalUint64
(b []byte)
encoding.go:85
↓ 7 callersMethodBytes
()
encoding.go:21
↓ 7 callersMethodMaxTs
()
segment.go:23
↓ 7 callersFunctionmax
(a, b int)
pkg/sortedlist/list.go:91
↓ 6 callersMethodAll
All 迭代所有对象
pkg/sortedlist/list.go:17
↓ 6 callersMethodID
ID 使用 hash 计算 Series 的唯一标识
tsdb.go:166
↓ 6 callersMethodLoad
()
segment.go:28
↓ 5 callersMethodMarshalUint64
(u ...uint64)
encoding.go:42
↓ 4 callersMethodInsertRows
(row []*Row)
segment.go:18
↓ 4 callersMethodMarshalUint16
(u ...uint16)
encoding.go:28
↓ 4 callersMethodMarshalUint32
(u ...uint32)
encoding.go:35
↓ 4 callersMethodMatchSids
(lvs *labelValueSet, lms LabelMatcherSet)
index.go:206
↓ 4 callersMethodRange
Range 过滤范围内的 key 并返回 Iter 对象
pkg/sortedlist/list.go:14
↓ 4 callersMethodUnmarshalUint32
(b []byte)
encoding.go:77
↓ 4 callersFunctionjoinSeparator
(a, b interface{})
tsdb.go:150
↓ 4 callersFunctionnewMemorySidSet
()
index.go:17
↓ 3 callersFunctionByteCompress
ByteCompress 数据压缩
compressor.go:29
↓ 3 callersMethodMarshalString
(s string)
encoding.go:53
↓ 3 callersFunctionNewTree
NewTree 生成 AVL 树
pkg/sortedlist/list.go:59
↓ 3 callersFunctionOpenTSDB
(opts ...Option)
tsdb.go:465
↓ 3 callersMethodQueryRange
(lms LabelMatcherSet, start, end int64)
segment.go:19
↓ 3 callersMethodRemove
Remove 移除节点
pkg/sortedlist/list.go:8
↓ 3 callersMethodSet
(label, value string)
label.go:51
↓ 3 callersMethodSize
()
index.go:28
↓ 3 callersMethodUnmarshalString
(b []byte)
encoding.go:93
↓ 3 callersFunctionWithDataPath
WithDataPath 设置 Segment 持久化存储文件夹 默认为 "."
tsdb.go:107
↓ 3 callersFunctiongenPoints
(ts int64, node, dc int)
tsdb_test.go:21
↓ 3 callersMethodllRotate
* 左左情况:右旋 * * * */
pkg/sortedlist/list.go:210
↓ 3 callersFunctionnewDecbuf
()
encoding.go:65
↓ 3 callersFunctionnewLabelValueSet
()
label.go:45
↓ 3 callersMethodrrRotate
* 右右情况:左旋 * * * */
pkg/sortedlist/list.go:226
↓ 2 callersMethodAddMetricName
AddMetricName 将指标名称也当成一个 label 处理 在存储的时候并不做特性的区分 每个指标的最后一个 label 就是 metricName
label.go:221
↓ 2 callersMethodAppend
(point *Point)
series.go:21
↓ 2 callersFunctionByteDecompress
ByteDecompress 数据解压缩
compressor.go:34
↓ 2 callersMethodChoose
(seg Segment, start, end int64)
segment.go:71
↓ 2 callersMethodCleanup
()
segment.go:26
↓ 2 callersMethodCopy
()
index.go:35
↓ 2 callersMethodGet
(label string)
label.go:62
↓ 2 callersMethodLen
()
label.go:215
↓ 2 callersMethodList
()
index.go:68
↓ 2 callersMethodMarshal
(Metadata)
metadata.go:36
↓ 2 callersMethodMarshalName
()
label.go:36
↓ 2 callersMethodMatch
Match 主要用于匹配 Labels 组合 支持正则匹配
label.go:166
↓ 2 callersMethodMatchLabels
(lids ...uint32)
index.go:188
↓ 2 callersFunctionOpenMmapFile
OpenMmapFile 打开一个 mmap 句柄
pkg/mmap/mmap.go:15
↓ 2 callersMethodQueryLabelValues
(label string)
segment.go:21
↓ 2 callersMethodQuerySeries
(lms LabelMatcherSet)
segment.go:20
↓ 2 callersMethodReset
()
encoding.go:20
↓ 2 callersMethodSorted
()
label.go:230
↓ 2 callersMethodUnmarshal
([]byte, *Metadata)
metadata.go:37
↓ 2 callersMethodUnmarshalUint16
(b []byte)
encoding.go:69
↓ 2 callersFunctiondirname
(a, b int64)
tsdb.go:154
↓ 2 callersMethodfilter
filter 过滤空 kv 和重复数据
label.go:190
↓ 2 callersMethodkeepBalance
(k int64)
pkg/sortedlist/list.go:258
↓ 2 callersMethodminNode
()
pkg/sortedlist/list.go:180
↓ 2 callersFunctionmkdir
(d string)
memory_segment.go:264
↓ 2 callersFunctionnewBinaryMetaSerializer
()
metadata.go:61
↓ 2 callersFunctionnewEncbuf
()
encoding.go:16
↓ 2 callersFunctionnewMemorySegment
()
memory_segment.go:32
↓ 2 callersFunctionnewNoopBytesCompressor
()
compressor.go:40
↓ 2 callersFunctionputTimer
(t *time.Timer)
tsdb.go:194
↓ 2 callersMethodshift
()
disk_segment.go:101
↓ 2 callersMethodvalues
(lower, upper int64)
pkg/sortedlist/list.go:301
↓ 2 callersFunctionwriteToDisk
(segment *memorySegment)
memory_segment.go:274
↓ 1 callersMethodAll
()
series.go:60
↓ 1 callersMethodCompress
(src []byte)
compressor.go:24
↓ 1 callersMethodDecompress
(src []byte)
compressor.go:25
↓ 1 callersMethodErr
()
encoding.go:97
↓ 1 callersMethodFrozen
()
segment.go:24
↓ 1 callersMethodHas
Has 判断 label 是否存在
label.go:254
↓ 1 callersMethodIntersection
(other *memorySidSet)
index.go:47
↓ 1 callersMethodMap
Map 将 Label 列表转换成 map
label.go:206
↓ 1 callersFunctionMarshalMeta
MarshalMeta 负责序列化 Meta 数据
metadata.go:41
↓ 1 callersMethodMatchString
(s string)
label.go:150
↓ 1 callersMethodMaxTs
()
memory_segment.go:59
↓ 1 callersMethodMergeOutdatedList
(lst sortedlist.List)
series.go:72
↓ 1 callersMethodMinTs
()
memory_segment.go:55
↓ 1 callersMethodRead
()
disk_segment.go:39
↓ 1 callersMethodReplace
(pre, nxt Segment)
segment.go:110
↓ 1 callersMethodString
String 用户格式化输出
label.go:265
↓ 1 callersMethodUnion
(other *memorySidSet)
index.go:59
↓ 1 callersFunctionUnmarshalMeta
UnmarshalMeta 负责反序列化 Meta 数据
metadata.go:46
↓ 1 callersMethodUpdateIndex
(sid string, labels LabelSet)
index.go:98
↓ 1 callersFunctionWithLoggerConfig
WithLoggerConfig 设置日志配置项
tsdb.go:130
↓ 1 callersFunctionappendValue
appendValue 中序遍历按顺序获取所有值
pkg/sortedlist/list.go:290
↓ 1 callersMethoddelete
(k int64)
pkg/sortedlist/list.go:143
↓ 1 callersMethodfilter
filter 过滤空 kv 和重复数据
label.go:306
↓ 1 callersMethodgetHeadPartition
()
tsdb.go:235
↓ 1 callersMethodgetOrCreateSeries
(row *Row)
memory_segment.go:42
↓ 1 callersFunctiongetTimer
(d time.Duration)
tsdb.go:183
↓ 1 callersMethodingestRows
(ctx context.Context)
tsdb.go:218
↓ 1 callersFunctioninsert
(k int64, v interface{}, t *avlNode)
pkg/sortedlist/list.go:98
next →1–100 of 201, ranked by callers