Documentation ¶
Index ¶
- func NewHashVindex(m map[string]interface{}) (planbuilder.Vindex, error)
- func NewLookupHashUnique(m map[string]interface{}) (planbuilder.Vindex, error)
- type HashVindex
- func (vind *HashVindex) Cost() int
- func (vind *HashVindex) Create(vcursor planbuilder.VCursor, id interface{}) error
- func (vind *HashVindex) Delete(vcursor planbuilder.VCursor, id interface{}, _ key.KeyspaceId) error
- func (vind *HashVindex) Generate(vcursor planbuilder.VCursor) (id interface{}, err error)
- func (vind *HashVindex) Map(_ planbuilder.VCursor, ids []interface{}) ([]key.KeyspaceId, error)
- func (vind *HashVindex) ReverseMap(_ planbuilder.VCursor, k key.KeyspaceId) (interface{}, error)
- func (vind *HashVindex) Verify(_ planbuilder.VCursor, id interface{}, ks key.KeyspaceId) (bool, error)
- type LookupHashUnique
- func (vind *LookupHashUnique) Cost() int
- func (vind *LookupHashUnique) Create(vcursor planbuilder.VCursor, id interface{}, ksid key.KeyspaceId) error
- func (vind *LookupHashUnique) Delete(vcursor planbuilder.VCursor, id interface{}, ksid key.KeyspaceId) error
- func (vind *LookupHashUnique) Generate(vcursor planbuilder.VCursor, ksid key.KeyspaceId) (id interface{}, err error)
- func (vind *LookupHashUnique) Map(vcursor planbuilder.VCursor, ids []interface{}) ([]key.KeyspaceId, error)
- func (vind *LookupHashUnique) Verify(vcursor planbuilder.VCursor, id interface{}, ksid key.KeyspaceId) (bool, error)
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)
Click to show internal directories.
Click to hide internal directories.