gomemql_btree

package
v0.0.0-...-e64afc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	// contains filtered or unexported fields
}

数据源的一个字段, 对应实际的一个结构体

func NewField

func NewField() *Field

func (*Field) AddRecord

func (self *Field) AddRecord(data btree.Item, record interface{})

添加一条记录

type Query

type Query struct {
	// contains filtered or unexported fields
}

查询对象

func NewQuery

func NewQuery(callback func(interface{})) *Query

创建一个查询, 给定一个结果返回回调

func (*Query) Equal

func (self *Query) Equal(f *Field, value btree.Item) *Query

记录集合中等于value的所有值

func (*Query) Great

func (self *Query) Great(f *Field, value btree.Item) *Query

记录集合中大于value的所有值

func (*Query) GreatEqual

func (self *Query) GreatEqual(f *Field, value btree.Item) *Query

记录集合中大于等于value的所有值

func (*Query) Less

func (self *Query) Less(f *Field, value btree.Item) *Query

记录集合中小于value的所有值

func (*Query) LessEqual

func (self *Query) LessEqual(f *Field, value btree.Item) *Query

记录集合中小于等于value的所有值

func (*Query) Start

func (self *Query) Start()

开始匹配

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址