Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chenjiandongx/mandodb
/ functions
Functions
201 in github.com/chenjiandongx/mandodb
⨍
Functions
201
◇
Types & classes
44
↓ 20 callers
Method
height
()
pkg/sortedlist/list.go:282
↓ 18 callers
Method
Add
Add 新增节点
pkg/sortedlist/list.go:11
↓ 11 callers
Method
Close
()
segment.go:25
↓ 10 callers
Method
Next
()
pkg/sortedlist/list.go:22
↓ 9 callers
Method
Hash
Hash 哈希计算 LabelSet 唯一标识符
label.go:235
↓ 9 callers
Method
MinTs
()
segment.go:22
↓ 9 callers
Method
Value
()
pkg/sortedlist/list.go:23
↓ 8 callers
Method
Get
(start, end int64)
series.go:42
↓ 8 callers
Method
UnmarshalUint64
(b []byte)
encoding.go:85
↓ 7 callers
Method
Bytes
()
encoding.go:21
↓ 7 callers
Method
MaxTs
()
segment.go:23
↓ 7 callers
Function
max
(a, b int)
pkg/sortedlist/list.go:91
↓ 6 callers
Method
All
All 迭代所有对象
pkg/sortedlist/list.go:17
↓ 6 callers
Method
ID
ID 使用 hash 计算 Series 的唯一标识
tsdb.go:166
↓ 6 callers
Method
Load
()
segment.go:28
↓ 5 callers
Method
MarshalUint64
(u ...uint64)
encoding.go:42
↓ 4 callers
Method
InsertRows
(row []*Row)
segment.go:18
↓ 4 callers
Method
MarshalUint16
(u ...uint16)
encoding.go:28
↓ 4 callers
Method
MarshalUint32
(u ...uint32)
encoding.go:35
↓ 4 callers
Method
MatchSids
(lvs *labelValueSet, lms LabelMatcherSet)
index.go:206
↓ 4 callers
Method
Range
Range 过滤范围内的 key 并返回 Iter 对象
pkg/sortedlist/list.go:14
↓ 4 callers
Method
UnmarshalUint32
(b []byte)
encoding.go:77
↓ 4 callers
Function
joinSeparator
(a, b interface{})
tsdb.go:150
↓ 4 callers
Function
newMemorySidSet
()
index.go:17
↓ 3 callers
Function
ByteCompress
ByteCompress 数据压缩
compressor.go:29
↓ 3 callers
Method
MarshalString
(s string)
encoding.go:53
↓ 3 callers
Function
NewTree
NewTree 生成 AVL 树
pkg/sortedlist/list.go:59
↓ 3 callers
Function
OpenTSDB
(opts ...Option)
tsdb.go:465
↓ 3 callers
Method
QueryRange
(lms LabelMatcherSet, start, end int64)
segment.go:19
↓ 3 callers
Method
Remove
Remove 移除节点
pkg/sortedlist/list.go:8
↓ 3 callers
Method
Set
(label, value string)
label.go:51
↓ 3 callers
Method
Size
()
index.go:28
↓ 3 callers
Method
UnmarshalString
(b []byte)
encoding.go:93
↓ 3 callers
Function
WithDataPath
WithDataPath 设置 Segment 持久化存储文件夹 默认为 "."
tsdb.go:107
↓ 3 callers
Function
genPoints
(ts int64, node, dc int)
tsdb_test.go:21
↓ 3 callers
Method
llRotate
* 左左情况:右旋 * * * */
pkg/sortedlist/list.go:210
↓ 3 callers
Function
newDecbuf
()
encoding.go:65
↓ 3 callers
Function
newLabelValueSet
()
label.go:45
↓ 3 callers
Method
rrRotate
* 右右情况:左旋 * * * */
pkg/sortedlist/list.go:226
↓ 2 callers
Method
AddMetricName
AddMetricName 将指标名称也当成一个 label 处理 在存储的时候并不做特性的区分 每个指标的最后一个 label 就是 metricName
label.go:221
↓ 2 callers
Method
Append
(point *Point)
series.go:21
↓ 2 callers
Function
ByteDecompress
ByteDecompress 数据解压缩
compressor.go:34
↓ 2 callers
Method
Choose
(seg Segment, start, end int64)
segment.go:71
↓ 2 callers
Method
Cleanup
()
segment.go:26
↓ 2 callers
Method
Copy
()
index.go:35
↓ 2 callers
Method
Get
(label string)
label.go:62
↓ 2 callers
Method
Len
()
label.go:215
↓ 2 callers
Method
List
()
index.go:68
↓ 2 callers
Method
Marshal
(Metadata)
metadata.go:36
↓ 2 callers
Method
MarshalName
()
label.go:36
↓ 2 callers
Method
Match
Match 主要用于匹配 Labels 组合 支持正则匹配
label.go:166
↓ 2 callers
Method
MatchLabels
(lids ...uint32)
index.go:188
↓ 2 callers
Function
OpenMmapFile
OpenMmapFile 打开一个 mmap 句柄
pkg/mmap/mmap.go:15
↓ 2 callers
Method
QueryLabelValues
(label string)
segment.go:21
↓ 2 callers
Method
QuerySeries
(lms LabelMatcherSet)
segment.go:20
↓ 2 callers
Method
Reset
()
encoding.go:20
↓ 2 callers
Method
Sorted
()
label.go:230
↓ 2 callers
Method
Unmarshal
([]byte, *Metadata)
metadata.go:37
↓ 2 callers
Method
UnmarshalUint16
(b []byte)
encoding.go:69
↓ 2 callers
Function
dirname
(a, b int64)
tsdb.go:154
↓ 2 callers
Method
filter
filter 过滤空 kv 和重复数据
label.go:190
↓ 2 callers
Method
keepBalance
(k int64)
pkg/sortedlist/list.go:258
↓ 2 callers
Method
minNode
()
pkg/sortedlist/list.go:180
↓ 2 callers
Function
mkdir
(d string)
memory_segment.go:264
↓ 2 callers
Function
newBinaryMetaSerializer
()
metadata.go:61
↓ 2 callers
Function
newEncbuf
()
encoding.go:16
↓ 2 callers
Function
newMemorySegment
()
memory_segment.go:32
↓ 2 callers
Function
newNoopBytesCompressor
()
compressor.go:40
↓ 2 callers
Function
putTimer
(t *time.Timer)
tsdb.go:194
↓ 2 callers
Method
shift
()
disk_segment.go:101
↓ 2 callers
Method
values
(lower, upper int64)
pkg/sortedlist/list.go:301
↓ 2 callers
Function
writeToDisk
(segment *memorySegment)
memory_segment.go:274
↓ 1 callers
Method
All
()
series.go:60
↓ 1 callers
Method
Compress
(src []byte)
compressor.go:24
↓ 1 callers
Method
Decompress
(src []byte)
compressor.go:25
↓ 1 callers
Method
Err
()
encoding.go:97
↓ 1 callers
Method
Frozen
()
segment.go:24
↓ 1 callers
Method
Has
Has 判断 label 是否存在
label.go:254
↓ 1 callers
Method
Intersection
(other *memorySidSet)
index.go:47
↓ 1 callers
Method
Map
Map 将 Label 列表转换成 map
label.go:206
↓ 1 callers
Function
MarshalMeta
MarshalMeta 负责序列化 Meta 数据
metadata.go:41
↓ 1 callers
Method
MatchString
(s string)
label.go:150
↓ 1 callers
Method
MaxTs
()
memory_segment.go:59
↓ 1 callers
Method
MergeOutdatedList
(lst sortedlist.List)
series.go:72
↓ 1 callers
Method
MinTs
()
memory_segment.go:55
↓ 1 callers
Method
Read
()
disk_segment.go:39
↓ 1 callers
Method
Replace
(pre, nxt Segment)
segment.go:110
↓ 1 callers
Method
String
String 用户格式化输出
label.go:265
↓ 1 callers
Method
Union
(other *memorySidSet)
index.go:59
↓ 1 callers
Function
UnmarshalMeta
UnmarshalMeta 负责反序列化 Meta 数据
metadata.go:46
↓ 1 callers
Method
UpdateIndex
(sid string, labels LabelSet)
index.go:98
↓ 1 callers
Function
WithLoggerConfig
WithLoggerConfig 设置日志配置项
tsdb.go:130
↓ 1 callers
Function
appendValue
appendValue 中序遍历按顺序获取所有值
pkg/sortedlist/list.go:290
↓ 1 callers
Method
delete
(k int64)
pkg/sortedlist/list.go:143
↓ 1 callers
Method
filter
filter 过滤空 kv 和重复数据
label.go:306
↓ 1 callers
Method
getHeadPartition
()
tsdb.go:235
↓ 1 callers
Method
getOrCreateSeries
(row *Row)
memory_segment.go:42
↓ 1 callers
Function
getTimer
(d time.Duration)
tsdb.go:183
↓ 1 callers
Method
ingestRows
(ctx context.Context)
tsdb.go:218
↓ 1 callers
Function
insert
(k int64, v interface{}, t *avlNode)
pkg/sortedlist/list.go:98
next →
1–100 of 201, ranked by callers