Documentation ¶
Index ¶
- Variables
- func GetTag(dest interface{}, offset uintptr, indexType IndexType) (*tag, error)
- type BitMap
- func (b *BitMap) Add(num uint32)
- func (b *BitMap) Clear()
- func (b *BitMap) CloneIterator(f func(uint32))
- func (b *BitMap) IsEmpty() bool
- func (b *BitMap) IsExist(num uint32) bool
- func (b *BitMap) Iterator(f func(uint32))
- func (b *BitMap) Length() int
- func (b *BitMap) Min() uint32
- func (b *BitMap) Remove(num uint32)
- type FieldType
- type IDeepCp
- type IRow
- type IndexType
- type UltraTableV2
- func (u *UltraTableV2[T]) Add(t T) error
- func (u *UltraTableV2[T]) Cap() uint32
- func (u *UltraTableV2[T]) Clear()
- func (u *UltraTableV2[T]) Get(f iterator[T]) []T
- func (u *UltraTableV2[T]) GetAll() []T
- func (u *UltraTableV2[T]) GetWithIdx(idxKey string, vKey interface{}) ([]T, error)
- func (u *UltraTableV2[T]) GetWithIdxAggregate(conditions map[string]interface{}) ([]T, error)
- func (u *UltraTableV2[T]) GetWithIdxAggregateCount(conditions map[string]interface{}) uint32
- func (u *UltraTableV2[T]) GetWithIdxCount(idxKey string, vKey interface{}) uint32
- func (u *UltraTableV2[T]) GetWithIdxIntersection(conditions map[string]interface{}) ([]T, error)
- func (u *UltraTableV2[T]) GetWithIdxIntersectionCount(conditions map[string]interface{}) uint32
- func (u *UltraTableV2[T]) Has(f iterator[T]) bool
- func (u *UltraTableV2[T]) HasWithIdx(idxKey string, vKey interface{}) bool
- func (u *UltraTableV2[T]) Len() uint32
- func (u *UltraTableV2[T]) Remove(f iterator[T]) int
- func (u *UltraTableV2[T]) RemoveWithIdx(idxKey string, vKey interface{}) int
- func (u *UltraTableV2[T]) RemoveWithIdxAggregate(conditions map[string]interface{}) int
- func (u *UltraTableV2[T]) RemoveWithIdxIntersection(conditions map[string]interface{}) int
- func (u *UltraTableV2[T]) SaveWithNormalIdxAggregate(conditions map[string]interface{}, t T) (uint32, error)
- func (u *UltraTableV2[T]) SaveWithNormalIdxIntersection(conditions map[string]interface{}, t T) (uint32, error)
- func (u *UltraTableV2[T]) SaveWithUniqueIdx(idxKey string, vKey interface{}, t T) error
- func (u *UltraTableV2[T]) UpdateWithNormalIdx(idxKey string, vKey interface{}, t T) (uint32, error)
- func (u *UltraTableV2[T]) UpdateWithUniqueIdx(idxKey string, vKey interface{}, t T) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type BitMap ¶ added in v0.0.7
func (*BitMap) CloneIterator ¶ added in v0.0.7
type FieldType ¶ added in v0.0.6
type FieldType string
const ( String FieldType = `string` Int FieldType = `int` Int8 FieldType = `int8` Int16 FieldType = `int16` Int32 FieldType = `int32` Int64 FieldType = `int64` Uint FieldType = `uint` Uint8 FieldType = `uint8` Uint16 FieldType = `uint16` Uint32 FieldType = `uint32` Uint64 FieldType = `uint64` Float32 FieldType = `float32` Float64 FieldType = `float64` Complex64 FieldType = `complex64` Complex128 FieldType = `complex128` Byte FieldType = `byte` Rune FieldType = `rune` )
type UltraTableV2 ¶ added in v1.0.21
func New ¶ added in v1.0.21
func New[T IRow](deepCp IDeepCp[T]) *UltraTableV2[T]
New ultraTable with generics
func NewWithInitializeData ¶ added in v1.0.21
func NewWithInitializeData[T IRow](ts []T, deepCp IDeepCp[T]) (*UltraTableV2[T], error)
func (*UltraTableV2[T]) Add ¶ added in v1.0.21
func (u *UltraTableV2[T]) Add(t T) error
func (*UltraTableV2[T]) Cap ¶ added in v1.0.21
func (u *UltraTableV2[T]) Cap() uint32
func (*UltraTableV2[T]) Clear ¶ added in v1.0.21
func (u *UltraTableV2[T]) Clear()
func (*UltraTableV2[T]) Get ¶ added in v1.0.21
func (u *UltraTableV2[T]) Get(f iterator[T]) []T
func (*UltraTableV2[T]) GetAll ¶ added in v1.0.21
func (u *UltraTableV2[T]) GetAll() []T
func (*UltraTableV2[T]) GetWithIdx ¶ added in v1.0.21
func (u *UltraTableV2[T]) GetWithIdx(idxKey string, vKey interface{}) ([]T, error)
Get benchmark performance near O(1)
func (*UltraTableV2[T]) GetWithIdxAggregate ¶ added in v1.0.21
func (u *UltraTableV2[T]) GetWithIdxAggregate(conditions map[string]interface{}) ([]T, error)
GetWithIdxAggregate like where a=? or b=?
func (*UltraTableV2[T]) GetWithIdxAggregateCount ¶ added in v1.0.21
func (u *UltraTableV2[T]) GetWithIdxAggregateCount(conditions map[string]interface{}) uint32
func (*UltraTableV2[T]) GetWithIdxCount ¶ added in v1.0.21
func (u *UltraTableV2[T]) GetWithIdxCount(idxKey string, vKey interface{}) uint32
func (*UltraTableV2[T]) GetWithIdxIntersection ¶ added in v1.0.21
func (u *UltraTableV2[T]) GetWithIdxIntersection(conditions map[string]interface{}) ([]T, error)
GetWithIdxIntersection like where a=? and b=?
func (*UltraTableV2[T]) GetWithIdxIntersectionCount ¶ added in v1.0.21
func (u *UltraTableV2[T]) GetWithIdxIntersectionCount(conditions map[string]interface{}) uint32
func (*UltraTableV2[T]) Has ¶ added in v1.0.21
func (u *UltraTableV2[T]) Has(f iterator[T]) bool
func (*UltraTableV2[T]) HasWithIdx ¶ added in v1.0.21
func (u *UltraTableV2[T]) HasWithIdx(idxKey string, vKey interface{}) bool
func (*UltraTableV2[T]) Len ¶ added in v1.0.21
func (u *UltraTableV2[T]) Len() uint32
func (*UltraTableV2[T]) Remove ¶ added in v1.0.21
func (u *UltraTableV2[T]) Remove(f iterator[T]) int
Get benchmark performance near O(n), it is recommended to use GetWithIdx
func (*UltraTableV2[T]) RemoveWithIdx ¶ added in v1.0.21
func (u *UltraTableV2[T]) RemoveWithIdx(idxKey string, vKey interface{}) int
RemoveWithIdx benchmark performance near O(1)
func (*UltraTableV2[T]) RemoveWithIdxAggregate ¶ added in v1.0.21
func (u *UltraTableV2[T]) RemoveWithIdxAggregate(conditions map[string]interface{}) int
func (*UltraTableV2[T]) RemoveWithIdxIntersection ¶ added in v1.0.21
func (u *UltraTableV2[T]) RemoveWithIdxIntersection(conditions map[string]interface{}) int
func (*UltraTableV2[T]) SaveWithNormalIdxAggregate ¶ added in v1.0.21
func (u *UltraTableV2[T]) SaveWithNormalIdxAggregate(conditions map[string]interface{}, t T) (uint32, error)
func (*UltraTableV2[T]) SaveWithNormalIdxIntersection ¶ added in v1.0.21
func (u *UltraTableV2[T]) SaveWithNormalIdxIntersection(conditions map[string]interface{}, t T) (uint32, error)
func (*UltraTableV2[T]) SaveWithUniqueIdx ¶ added in v1.0.21
func (u *UltraTableV2[T]) SaveWithUniqueIdx(idxKey string, vKey interface{}, t T) error
SaveWithIdx update or insert
func (*UltraTableV2[T]) UpdateWithNormalIdx ¶ added in v1.0.21
func (u *UltraTableV2[T]) UpdateWithNormalIdx(idxKey string, vKey interface{}, t T) (uint32, error)
UpdateWithNormalIdx update record with normal idx
func (*UltraTableV2[T]) UpdateWithUniqueIdx ¶ added in v1.0.21
func (u *UltraTableV2[T]) UpdateWithUniqueIdx(idxKey string, vKey interface{}, t T) error
UpdateWithIdx update record with unique idx
Source Files ¶
Click to show internal directories.
Click to hide internal directories.