vindexes

package
v0.0.0-...-2166858 Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHashVindex

func NewHashVindex(m map[string]interface{}) (planbuilder.Vindex, error)

func NewLookupHashUnique

func NewLookupHashUnique(m map[string]interface{}) (planbuilder.Vindex, error)

Types

type HashVindex

type HashVindex struct {
	Table, Column string
	// contains filtered or unexported fields
}

func (*HashVindex) Cost

func (vind *HashVindex) Cost() int

func (*HashVindex) Create

func (vind *HashVindex) Create(vcursor planbuilder.VCursor, id interface{}) error

func (*HashVindex) Delete

func (vind *HashVindex) Delete(vcursor planbuilder.VCursor, id interface{}, _ key.KeyspaceId) error

func (*HashVindex) Generate

func (vind *HashVindex) Generate(vcursor planbuilder.VCursor) (id interface{}, err error)

func (*HashVindex) Map

func (vind *HashVindex) Map(_ planbuilder.VCursor, ids []interface{}) ([]key.KeyspaceId, error)

func (*HashVindex) ReverseMap

func (vind *HashVindex) ReverseMap(_ planbuilder.VCursor, k key.KeyspaceId) (interface{}, error)

func (*HashVindex) Verify

func (vind *HashVindex) Verify(_ planbuilder.VCursor, id interface{}, ks key.KeyspaceId) (bool, error)

type LookupHashUnique

type LookupHashUnique struct {
	Table, From, To string
	// contains filtered or unexported fields
}

func (*LookupHashUnique) Cost

func (vind *LookupHashUnique) Cost() int

func (*LookupHashUnique) Create

func (vind *LookupHashUnique) Create(vcursor planbuilder.VCursor, id interface{}, ksid key.KeyspaceId) error

func (*LookupHashUnique) Delete

func (vind *LookupHashUnique) Delete(vcursor planbuilder.VCursor, id interface{}, ksid key.KeyspaceId) error

func (*LookupHashUnique) Generate

func (vind *LookupHashUnique) Generate(vcursor planbuilder.VCursor, ksid key.KeyspaceId) (id interface{}, err error)

func (*LookupHashUnique) Map

func (vind *LookupHashUnique) Map(vcursor planbuilder.VCursor, ids []interface{}) ([]key.KeyspaceId, error)

func (*LookupHashUnique) Verify

func (vind *LookupHashUnique) Verify(vcursor planbuilder.VCursor, id interface{}, ksid key.KeyspaceId) (bool, error)

Jump to

Keyboard shortcuts

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