Documentation ¶
Index ¶
- type Container
- func (c *Container) CheckDataBase(key string) bool
- func (c *Container) DropDataBase(name string) error
- func (c *Container) GetDataBase(name string) *Engine
- func (c *Container) GetDataBaseNumber() int
- func (c *Container) GetDataBases() map[string]*Engine
- func (c *Container) GetDocumentCount() int64
- func (c *Container) GetIndexCount() int64
- func (c *Container) Init() error
- func (c *Container) NewEngine(name string) *Engine
- type Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Dir string //文件夹 Neg *negative.Engine //负向索引 Debug bool //调试 AllowDrop bool //允许删除 Tokenizer *words.Tokenizer //分词器 Shard int //分片 Timeout int64 //超时关闭数据库 BufferNum int //分片缓冲数 // contains filtered or unexported fields }
func (*Container) CheckDataBase ¶
func (*Container) DropDataBase ¶
DropDataBase 删除数据库
func (*Container) GetDataBase ¶
GetDataBase 获取或创建引擎
func (*Container) GetDataBaseNumber ¶
func (*Container) GetDataBases ¶
GetDataBases 获取数据库列表
func (*Container) GetDocumentCount ¶
func (*Container) GetIndexCount ¶
Click to show internal directories.
Click to hide internal directories.