Documentation ¶
Index ¶
- Constants
- func NewIndexDriver(root string) sql.IndexDriver
- type Driver
- func (d *Driver) Create(db, table, id string, expr []sql.ExpressionHash, config map[string]string) (sql.Index, error)
- func (d *Driver) Delete(idx sql.Index) error
- func (*Driver) ID() string
- func (d *Driver) LoadAll(db, table string) ([]sql.Index, error)
- func (d *Driver) Save(ctx *sql.Context, i sql.Index, iter sql.IndexKeyValueIter) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.