Documentation ¶
Index ¶
- Constants
- func GetPoolBuff(size int32) []byte
- func PutPoolBuff(size int32, buff []byte)
- type Bitmap
- func (b *Bitmap) Clone() *Bitmap
- func (b *Bitmap) Exists(item uint32) bool
- func (b *Bitmap) Grow(item uint32)
- func (b *Bitmap) Init(maxNum uint32)
- func (b *Bitmap) Inverse()
- func (b *Bitmap) MaxU(x, y uint32) uint32
- func (b *Bitmap) Min(x, y int) int
- func (b *Bitmap) Set(item uint32) bool
- func (b *Bitmap) Sets(items []uint32)
- func (b *Bitmap) Union(b2 *Bitmap) *Bitmap
- type CHash
- type CHashNode
- type CHashRing
- type DataRow
- type DataSet
- type DataTable
- func (t *DataTable) Cols() []string
- func (t *DataTable) Indexes() []string
- func (t *DataTable) PkCol() string
- func (t *DataTable) PkInt(row *DataRow) int
- func (t *DataTable) PkString(row *DataRow) string
- func (t *DataTable) Push(row []string)
- func (t *DataTable) PushAll(rows [][]string)
- func (t *DataTable) Row(pk string) *DataRow
- func (t *DataTable) Rows() (rows []*DataRow)
- func (t *DataTable) RowsBy(indexName, indexValue string) []*DataRow
- func (t *DataTable) RowsByIndexPredicate(indexName, indexValue string, predicate func(*DataRow) bool) []*DataRow
- func (t *DataTable) RowsByPredicate(predicate func(*DataRow) bool) []*DataRow
- type PoolBuffer128K
- type PoolBuffer4M
- type Queue
- func (q *Queue[T]) Cap() int
- func (q *Queue[T]) Clear()
- func (q *Queue[T]) DequeueBack() (t T)
- func (q *Queue[T]) DequeueFront() (t T)
- func (q *Queue[T]) EnqueueBack(item T) (t T)
- func (q *Queue[T]) EnqueueFront(item T) (t T)
- func (q *Queue[T]) FindBy(fn func(T) bool) (data []T)
- func (q *Queue[T]) FindOneBy(fn func(T) bool) (t T)
- func (q *Queue[T]) IsEmpty() bool
- func (q *Queue[T]) Len() int
- func (q *Queue[T]) Range(fn func(t T) bool)
- type RBColor
- type RBNode
- type RedBlackTree
Constants ¶
View Source
const ( BUFF_128K = 128 * 1024 BUFF_4M = 4 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func GetPoolBuff ¶ added in v1.3.5
func PutPoolBuff ¶ added in v1.3.5
Types ¶
type CHashRing ¶
type CHashRing struct {
// contains filtered or unexported fields
}
type DataSet ¶
func NewDataSet ¶ added in v1.3.5
func NewDataSet() *DataSet
type DataTable ¶
type DataTable struct {
// contains filtered or unexported fields
}
func NewDataTable ¶
func (*DataTable) RowsByIndexPredicate ¶ added in v1.1.32
type PoolBuffer128K ¶ added in v1.3.5
type PoolBuffer128K []byte
type PoolBuffer4M ¶ added in v1.3.5
type PoolBuffer4M []byte
type Queue ¶ added in v1.3.4
type Queue[T any] struct { // contains filtered or unexported fields }
func (*Queue[T]) DequeueBack ¶ added in v1.3.4
func (q *Queue[T]) DequeueBack() (t T)
func (*Queue[T]) DequeueFront ¶ added in v1.3.4
func (q *Queue[T]) DequeueFront() (t T)
func (*Queue[T]) EnqueueBack ¶ added in v1.3.4
func (q *Queue[T]) EnqueueBack(item T) (t T)
func (*Queue[T]) EnqueueFront ¶ added in v1.3.4
func (q *Queue[T]) EnqueueFront(item T) (t T)
type RedBlackTree ¶ added in v1.3.5
type RedBlackTree struct {
// contains filtered or unexported fields
}
func (*RedBlackTree) Get ¶ added in v1.3.5
func (t *RedBlackTree) Get(key string) interface{}
func (*RedBlackTree) Put ¶ added in v1.3.5
func (t *RedBlackTree) Put(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.