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
↓ 1 callers
Function
isFileExist
(path string)
segment.go:128
↓ 1 callers
Method
loadFiles
()
tsdb.go:408
↓ 1 callers
Method
lrRotate
* 左右情况:先左旋 后右旋 * * * */
pkg/sortedlist/list.go:242
↓ 1 callers
Method
maxNode
()
pkg/sortedlist/list.go:192
↓ 1 callers
Method
mergeQueryRangeResult
(ret ...MetricRet)
tsdb.go:295
↓ 1 callers
Method
mergeQuerySeriesResult
(ret ...LabelSet)
tsdb.go:338
↓ 1 callers
Function
newDiskIndexMap
(swl []seriesWithLabel)
index.go:170
↓ 1 callers
Function
newDiskSegment
(mf *mmap.MmapFile, dir string, minTs, maxTs int64)
disk_segment.go:65
↓ 1 callers
Function
newDiskSidSet
()
index.go:152
↓ 1 callers
Function
newFastRegexMatcher
(v string)
label.go:87
↓ 1 callers
Function
newMemoryIndexMap
()
index.go:85
↓ 1 callers
Function
newSegmentList
()
segment.go:44
↓ 1 callers
Function
newSeries
(row *Row)
series.go:101
↓ 1 callers
Function
newSnappyBytesCompressor
()
compressor.go:70
↓ 1 callers
Function
newZstdBytesCompressor
()
compressor.go:54
↓ 1 callers
Function
optimizeConcatRegex
optimizeConcatRegex returns literal prefix/suffix text that can be safely checked against the label value before running the regexp matcher.
label.go:111
↓ 1 callers
Method
removeExpires
()
tsdb.go:384
↓ 1 callers
Method
rlRotate
* 右左情况:先右旋 后左旋 * * * */
pkg/sortedlist/list.go:253
↓ 1 callers
Method
search
(k int64)
pkg/sortedlist/list.go:126
↓ 1 callers
Function
syscallMmap
(f *os.File, length int)
pkg/mmap/mmap_unix.go:11
↓ 1 callers
Function
syscallMunmap
(b []byte)
pkg/mmap/mmap_unix.go:15
↓ 1 callers
Function
unmarshalLabelName
(s string)
label.go:21
↓ 1 callers
Function
yoloString
骚操作
encoding.go:102
Method
Add
(a string)
index.go:21
Method
Add
(a uint32)
index.go:156
Method
Add
(segment Segment)
segment.go:87
Method
Add
(k int64, v interface{})
pkg/sortedlist/list.go:63
Method
AddMetricName
AddMetricName 将指标名称也当成一个 label 处理 在存储的时候并不做特性的区分 每个指标的最后一个 label 就是 metricName
label.go:294
Method
All
()
pkg/sortedlist/list.go:75
Method
Bytes
()
series.go:68
Method
Bytes
()
pkg/mmap/mmap.go:57
Method
Cleanup
()
disk_segment.go:97
Method
Cleanup
()
memory_segment.go:83
Method
Close
()
tsdb.go:372
Method
Close
()
disk_segment.go:92
Method
Close
()
memory_segment.go:75
Method
Close
Close 关闭句柄
pkg/mmap/mmap.go:43
Method
Compress
(src []byte)
compressor.go:44
Method
Compress
(src []byte)
compressor.go:58
Method
Compress
(src []byte)
compressor.go:74
Method
Count
()
series.go:64
Method
Decompress
(src []byte)
compressor.go:48
Method
Decompress
(src []byte)
compressor.go:63
Method
Decompress
(src []byte)
compressor.go:78
Method
File
()
pkg/mmap/mmap.go:53
Method
Frozen
()
disk_segment.go:84
Method
Frozen
()
memory_segment.go:63
Method
Get
(start, end int64)
segment.go:48
Method
InsertRows
(rows []*Row)
tsdb.go:205
Method
InsertRows
(_ []*Row)
disk_segment.go:149
Method
InsertRows
(rows []*Row)
memory_segment.go:91
Method
Len
()
encoding.go:22
Method
Less
(i, j int)
label.go:216
Method
Load
()
disk_segment.go:105
Method
Load
()
memory_segment.go:87
Method
Marshal
(meta Metadata)
metadata.go:65
Method
Marshal
()
memory_segment.go:169
Method
MarshalBytes
(b []byte)
encoding.go:49
Method
MarshalUint8
(b uint8)
encoding.go:24
Method
MatchSids
(lvs *labelValueSet, lms LabelMatcherSet)
index.go:111
Method
MaxTs
()
disk_segment.go:80
Method
MinTs
()
disk_segment.go:76
Method
Next
Next 推进迭代器
pkg/sortedlist/list.go:32
Method
QueryLabelValues
(label string, start, end int64)
tsdb.go:352
Method
QueryLabelValues
(label string)
disk_segment.go:153
Method
QueryLabelValues
(label string)
memory_segment.go:124
Method
QueryRange
(metric string, lms LabelMatcherSet, start, end int64)
tsdb.go:278
Method
QueryRange
(lms LabelMatcherSet, start, end int64)
disk_segment.go:168
Method
QueryRange
(lms LabelMatcherSet, start, end int64)
memory_segment.go:141
Method
QuerySeries
(lms LabelMatcherSet, start, end int64)
tsdb.go:323
Method
QuerySeries
(lms LabelMatcherSet)
disk_segment.go:157
Method
QuerySeries
(lms LabelMatcherSet)
memory_segment.go:128
Method
Range
(f func(k string, v *memorySidSet))
index.go:89
Method
Range
(lower, upper int64)
pkg/sortedlist/list.go:79
Method
Remove
(segment Segment)
segment.go:94
Method
Remove
(k int64)
pkg/sortedlist/list.go:67
Method
Swap
(i, j int)
label.go:217
Function
TestAVLTree
(t *testing.T)
pkg/sortedlist/list_test.go:9
Function
TestLabels_Has
(t *testing.T)
label_test.go:42
Function
TestLabels_Hash
(t *testing.T)
label_test.go:74
Function
TestLabels_String
(t *testing.T)
label_test.go:9
Function
TestLabels_WithoutEmpty
(t *testing.T)
label_test.go:85
Function
TestTSDB_QueryLabelValues
(t *testing.T)
tsdb_test.go:123
Function
TestTSDB_QueryRange
(t *testing.T)
tsdb_test.go:37
Function
TestTSDB_QuerySeries
(t *testing.T)
tsdb_test.go:92
Method
Type
()
segment.go:27
Method
Type
()
disk_segment.go:88
Method
Type
()
memory_segment.go:71
Method
Unmarshal
(data []byte, meta *Metadata)
metadata.go:107
Method
Value
Value 返回迭代器当前 value
pkg/sortedlist/list.go:42
Function
WithEnabledOutdated
WithEnabledOutdated 设置是否支持乱序写入 此特性会增加资源开销 但会提升数据完整性 默认为 true
tsdb.go:91
Function
WithMaxRowsPerSegment
WithMaxRowsPerSegment 设置单 Segment 最大允许存储的点数 默认为 19960412(夹杂私货 🐶)
tsdb.go:99
Function
WithMetaBytesCompressorType
WithMetaBytesCompressorType 设置字节数据的压缩算法 目前提供了 * 不压缩: NoopBytesCompressor(默认) * ZSTD: ZstdBytesCompressor * Snappy: SnappyBytesCompressor
tsdb.go:68
Function
WithMetaSerializerType
WithMetaSerializerType 设置 Metadata 数据的序列化类型 目前只提供了 BinaryMetaSerializer
tsdb.go:54
Function
WithOnlyMemoryMode
WithOnlyMemoryMode 设置是否默认只存储在内存中 默认为 false
tsdb.go:83
Function
WithRetention
WithRetention 设置 Segment 持久化数据保存时长 默认为 7d
tsdb.go:115
Function
WithWriteTimeout
WithWriteTimeout 设置写入超时阈值 默认为 30s
tsdb.go:123
Method
getMaxValue
()
pkg/sortedlist/list.go:83
Method
getMinValue
()
pkg/sortedlist/list.go:87
Function
syscallMmap
256TB
pkg/mmap/mmap_windows.go:11
← previous
next →
101–200 of 201, ranked by callers