Documentation
¶
Index ¶
- type Index
- func NewBoolIndex(getter *record.BoolGetter) *Index
- func NewEnum16Index(getter *record.Enum16Getter) *Index
- func NewEnum8Index(getter *record.Enum8Getter) *Index
- func NewInt32Index(getter *record.Int32Getter) *Index
- func NewInt64Index(getter *record.Int64Getter) *Index
- func NewStringIndex(getter *record.StringGetter) *Index
- type IndexComputer
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct { Field string Compute IndexComputer Storage Storage }
func NewBoolIndex ¶
func NewBoolIndex(getter *record.BoolGetter) *Index
func NewEnum16Index ¶
func NewEnum16Index(getter *record.Enum16Getter) *Index
func NewEnum8Index ¶
func NewEnum8Index(getter *record.Enum8Getter) *Index
func NewInt32Index ¶
func NewInt32Index(getter *record.Int32Getter) *Index
func NewInt64Index ¶
func NewInt64Index(getter *record.Int64Getter) *Index
func NewStringIndex ¶
func NewStringIndex(getter *record.StringGetter) *Index
type IndexComputer ¶
type IndexComputer interface { ForItem(item interface{}) interface{} ForComparatorAllValues(comparator where.FieldComparator, cb func(index interface{})) ForComparatorFirstValue(comparator where.FieldComparator) interface{} Compare(value interface{}, comparator where.FieldComparator) (bool, error) }
Click to show internal directories.
Click to hide internal directories.