Documentation
¶
Index ¶
- Constants
- func AllocSlice[T allocItem](data []T, size int) ([]T, []T)
- func Bool2str(b bool) string
- func BooleanSlice2byte(b []bool) []byte
- func Bytes2BooleanSlice(b []byte) []bool
- func Bytes2Float32Slice(b []byte) []float32
- func Bytes2Float64Slice(b []byte) []float64
- func Bytes2Int16Slice(b []byte) []int16
- func Bytes2Int32Slice(b []byte) []int32
- func Bytes2Int64Slice(b []byte) []int64
- func Bytes2Int8Slice(b []byte) []int8
- func Bytes2Uint16Slice(b []byte) []uint16
- func Bytes2Uint32Slice(b []byte) []uint32
- func Bytes2Uint64Slice(b []byte) []uint64
- func Bytes2str(b []byte) string
- func CeilToPower2(num uint64) uint64
- func DivisionCeil(dividend, divisor int) int
- func Float32Slice2byte(b []float32) []byte
- func Float64Slice2byte(b []float64) []byte
- func Float64ToUint64(v float64) uint64
- func Include(slice []uint64, s uint64) bool
- func IndexOf(slice []uint64, s uint64) int
- func Int16Slice2byte(b []int16) []byte
- func Int32Slice2byte(b []int32) []byte
- func Int64Slice2byte(b []int64) []byte
- func IntLimit(min, max int, v int) int
- func IntersectSortedSliceInt(slice1, slice2 []int) []int
- func IsHot(tier uint64) bool
- func IsObjectNil(obj interface{}) bool
- func Max[T NumberInt](x, y T) T
- func MaxUint32(x, y uint32) uint32
- func MemorySet(buf []byte, val byte)
- func Min(x, y int) int
- func MinUint32(x, y uint32) uint32
- func MustClose(obj io.Closer)
- func MustRun(fn func() error)
- func NumberOfTrailingZeros(num uint64) int
- func OpenPprofServer(host, port string)
- func PaddingZeroBuffer(out []byte, size int) []byte
- func Search(begin, n int, f func(int) bool) int
- func SetLogger(lg *zap.Logger)
- func SliceSplitFunc[E any](s []E, filter func(*E) bool) ([]E, []E)
- func Str2bytes(s string) []byte
- func TickerRun(d time.Duration, stopSignal <-chan struct{}, onTick func(), onStop func())
- func TimeCost(option string) func()
- func Uint16Slice2byte(b []uint16) []byte
- func Uint32Slice2byte(b []uint32) []byte
- func Uint64Slice2byte(b []uint64) []byte
- func Uint64ToFloat64(v uint64) float64
- func UnionSortedSliceInt(slice1, slice2 []int) []int
- type BasicType
- type ConcurrentRunner
- type ExceptBool
- type ExceptString
- type NumberInt
- type NumberOnly
- type Processor
- type Queue
- type Reference
- type Signal
- type TimeRange
- type TimerPool
Constants ¶
View Source
const ( DefaultPprofHost = "127.0.0.1" StorePprofPort = "6060" SqlPprofPort = "6061" MetaPprofPort = "6062" )
View Source
const ( TierBegin = 0 Hot = 1 Warm = 2 Cold = 3 Moving = 4 TierEnd = 5 True = "true" False = "false" )
View Source
const ( BooleanSizeBytes = int(unsafe.Sizeof(false)) Uint32SizeBytes = int(unsafe.Sizeof(uint32(0))) Uint16SizeBytes = int(unsafe.Sizeof(uint16(0))) Uint64SizeBytes = int(unsafe.Sizeof(uint64(0))) Int16SizeBytes = int(unsafe.Sizeof(int16(0))) Int32SizeBytes = int(unsafe.Sizeof(int32(0))) Int64SizeBytes = int(unsafe.Sizeof(int64(0))) Float32SizeBytes = int(unsafe.Sizeof(float32(0))) Float64SizeBytes = int(unsafe.Sizeof(float64(0))) Int8SizeBytes = int(unsafe.Sizeof(int8(0))) RowsNumPerFragment int = 8192 DefaultMaxRowsPerSegment4TsStore = 1000 DefaultMaxRowsPerSegment4ColStore = RowsNumPerFragment // should be the same as RowsNumPerFragment@colstore DefaultMaxSegmentLimit4ColStore = 256 * 1024 DefaultMaxChunkMetaItemSize = 256 * 1024 DefaultMaxChunkMetaItemCount = 512 CompressModMaxChunkMetaItemCount = 16 NonStreamingCompact = 2 StreamingCompact = 1 AutoCompact = 0 DefaultExpectedSegmentSize uint32 = 8 * 1024 * 1024 DefaultFileSizeLimit = 8 * 1024 * 1024 * 1024 DefaultEntryLogSizeLimit = 20 * 1024 * 1024 * 1024 )
View Source
const MaxMeasurementLength = MaxMeasurementLengthWithVersion - MeasurementVersionLength
the measurement name length should consider MeasurementVersionLength
View Source
const MaxMeasurementLengthWithVersion = 255
View Source
const MeasurementVersionLength = 5
eg, version is:_0000
Variables ¶
This section is empty.
Functions ¶
func AllocSlice ¶ added in v1.1.0
func AllocSlice[T allocItem](data []T, size int) ([]T, []T)
func BooleanSlice2byte ¶ added in v1.1.0
func Bytes2BooleanSlice ¶ added in v1.1.0
func Bytes2Float32Slice ¶ added in v1.1.0
func Bytes2Float64Slice ¶ added in v1.1.0
func Bytes2Int16Slice ¶ added in v1.1.0
func Bytes2Int32Slice ¶ added in v1.1.0
func Bytes2Int64Slice ¶ added in v1.1.0
func Bytes2Int8Slice ¶ added in v1.1.0
func Bytes2Uint16Slice ¶ added in v1.1.0
func Bytes2Uint32Slice ¶ added in v1.1.0
func Bytes2Uint64Slice ¶ added in v1.1.0
func CeilToPower2 ¶ added in v0.2.0
func DivisionCeil ¶ added in v1.3.0
func Float32Slice2byte ¶ added in v1.1.0
func Float64Slice2byte ¶ added in v1.1.0
func Float64ToUint64 ¶ added in v1.1.0
func IndexOf ¶ added in v1.0.0
IndexOf returns index position in slice from given array If value is -1, the string does not found.
func Int16Slice2byte ¶ added in v1.1.0
func Int32Slice2byte ¶ added in v1.1.0
func Int64Slice2byte ¶ added in v1.1.0
func IntersectSortedSliceInt ¶ added in v1.4.0
func IsObjectNil ¶
func IsObjectNil(obj interface{}) bool
func NumberOfTrailingZeros ¶ added in v1.1.0
func OpenPprofServer ¶ added in v1.3.0
func OpenPprofServer(host, port string)
func PaddingZeroBuffer ¶ added in v1.3.0
func SliceSplitFunc ¶ added in v1.4.0
func Uint16Slice2byte ¶ added in v1.1.0
func Uint32Slice2byte ¶ added in v1.1.0
func Uint64Slice2byte ¶ added in v1.1.0
func Uint64ToFloat64 ¶ added in v1.1.0
func UnionSortedSliceInt ¶ added in v1.4.0
Types ¶
type ConcurrentRunner ¶ added in v1.4.0
type ConcurrentRunner[T any] struct { // contains filtered or unexported fields }
func NewConcurrentRunner ¶ added in v1.4.0
func NewConcurrentRunner[T any](queues []*Queue[T], processors []Processor) *ConcurrentRunner[T]
func (*ConcurrentRunner[T]) Close ¶ added in v1.4.0
func (runner *ConcurrentRunner[T]) Close()
Close called after Stop
func (*ConcurrentRunner[T]) Schedule ¶ added in v1.4.0
func (runner *ConcurrentRunner[T]) Schedule(hash uint64, v *T)
func (*ConcurrentRunner[T]) Size ¶ added in v1.4.0
func (runner *ConcurrentRunner[T]) Size() int
func (*ConcurrentRunner[T]) Stop ¶ added in v1.4.0
func (runner *ConcurrentRunner[T]) Stop()
type ExceptBool ¶ added in v1.3.0
type ExceptString ¶ added in v1.3.0
type NumberOnly ¶ added in v1.3.0
type Processor ¶ added in v1.4.0
type Processor interface {
Run()
// Stop called before Close
Stop()
Close()
}
type Reference ¶ added in v1.4.0
type Reference struct {
// contains filtered or unexported fields
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
lifted
|
|
|
bytebufferpool
Package bytebufferpool implements a pool of byte buffers with anti-fragmentation protection.
|
Package bytebufferpool implements a pool of byte buffers with anti-fragmentation protection. |
|
encoding/simple8b
Package simple8b implements the 64bit integer encoding algoritm as published by Ann and Moffat in "Index compression using 64-bit words", Softw.
|
Package simple8b implements the 64bit integer encoding algoritm as published by Ann and Moffat in "Index compression using 64-bit words", Softw. |
|
go-bitstream
Package bitstream is a simple wrapper around a io.Reader and io.Writer to provide bit-level access to the stream.
|
Package bitstream is a simple wrapper around a io.Reader and io.Writer to provide bit-level access to the stream. |
|
hashicorp/go-msgpack/codec
High Performance, Feature-Rich Idiomatic Go encoding library for msgpack and binc .
|
High Performance, Feature-Rich Idiomatic Go encoding library for msgpack and binc . |
|
hashicorp/serf/cmd/serf
command
|
|
|
hashicorp/serf/testutil/retry
Package retry provides support for repeating operations in tests.
|
Package retry provides support for repeating operations in tests. |
|
protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
|
Package proto converts data structures to and from the wire format of protocol buffers. |
Click to show internal directories.
Click to hide internal directories.