pilosa

package
v0.0.0-...-e79d762 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DriverID the unique name of the pilosa driver.
	DriverID = "pilosa"
	// IndexNamePrefix the pilosa's indexes prefix
	IndexNamePrefix = "idx"
	// FrameNamePrefix the pilosa's frames prefix
	FrameNamePrefix = "frm"
)

Variables

This section is empty.

Functions

func NewIndexDriver

func NewIndexDriver(root string) sql.IndexDriver

NewIndexDriver returns a default instance of pilosa.Driver

Types

type Driver

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

Driver implements sql.IndexDriver interface.

func NewDriver

func NewDriver(root string, client *pilosa.Client) *Driver

NewDriver returns a new instance of pilosa.Driver which satisfies sql.IndexDriver interface

func (*Driver) Create

func (d *Driver) Create(db, table, id string, expr []sql.ExpressionHash, config map[string]string) (sql.Index, error)

Create a new index.

func (*Driver) Delete

func (d *Driver) Delete(idx sql.Index) error

Delete the index with the given path.

func (*Driver) ID

func (*Driver) ID() string

ID returns the unique name of the driver.

func (*Driver) LoadAll

func (d *Driver) LoadAll(db, table string) ([]sql.Index, error)

LoadAll loads all indexes for given db and table

func (*Driver) Save

func (d *Driver) Save(
	ctx *sql.Context,
	i sql.Index,
	iter sql.IndexKeyValueIter,
) error

Save the given index (mapping and bitmap)

Jump to

Keyboard shortcuts

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