dexter

package module
v0.0.0-...-2a07b73 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

dexter

Documentation

Index

Constants

View Source
const (
	ADD    = 0
	UPDATE = 1
	REMOVE = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DocId

type DocId uint32

type DocNum

type DocNum uint32

type Index

type Index interface {
	Add(id int, doc string, data interface{})
	Remove(id int)
	RemoveMany(id []int)
	Update(id int, data interface{})
	UpdateMany(items map[int]interface{})
	Search(ptrISlice interface{}, query string, n int) []float64
	Print()
	Close()
}

func NewIndex

func NewIndex(name string) (Index, error)

type JournalCommand

type JournalCommand struct {
	Op      byte
	Id      DocId
	FilePos int64
}

type QueryDoc

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

The QueryDoc is used to keep track of results while running a query.

type QueryDocs

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

This struct lets us use golang heap and sort.

func (*QueryDocs) Len

func (self *QueryDocs) Len() int

func (*QueryDocs) Less

func (self *QueryDocs) Less(i, j int) bool

func (*QueryDocs) Pop

func (self *QueryDocs) Pop() interface{}

func (*QueryDocs) Push

func (self *QueryDocs) Push(x interface{})

func (*QueryDocs) Swap

func (self *QueryDocs) Swap(i, j int)

type SearchTerm

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

Jump to

Keyboard shortcuts

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