Documentation ¶
Index ¶
- Constants
- Variables
- func CompareQuadDirections(a, b []quad.Direction) bool
- func CompareQuadIndexes(a, b []QuadIndex) bool
- func Init(ctx context.Context, kv kv.KV, opt graph.Options) error
- func New(ctx context.Context, kv kv.KV, opt graph.Options) (graph.QuadStore, error)
- func Register(name string, r Registration)
- type IndexScan
- type InitFunc
- type Int64Set
- type Int64Value
- type NewFunc
- type QuadIndex
- type QuadIterator
- func (it *QuadIterator) Iterate(ctx context.Context) iterator.Scanner
- func (it *QuadIterator) Lookup(ctx context.Context) iterator.Index
- func (it *QuadIterator) Optimize(ctx context.Context) (iterator.Shape, bool, error)
- func (it *QuadIterator) Sorted() bool
- func (it *QuadIterator) Stats(ctx context.Context) (iterator.Costs, error)
- func (it *QuadIterator) String() string
- func (it *QuadIterator) SubIterators() []iterator.Shape
- type QuadStore
- func (qs *QuadStore) ApplyDeltas(ctx context.Context, in []graph.Delta, ignoreOpts graph.IgnoreOpts) error
- func (qs *QuadStore) Close() error
- func (qs *QuadStore) NameOf(ctx context.Context, v graph.Ref) (quad.Value, error)
- func (qs *QuadStore) NewQuadWriter(ctx context.Context) (quad.WriteCloser, error)
- func (qs *QuadStore) NodesAllIterator(ctx context.Context) iterator.Shape
- func (qs *QuadStore) OptimizeShape(ctx context.Context, s shape.Shape) (shape.Shape, bool, error)
- func (qs *QuadStore) Quad(ctx context.Context, k graph.Ref) (quad.Quad, error)
- func (qs *QuadStore) QuadDirection(ctx context.Context, val graph.Ref, d quad.Direction) (graph.Ref, error)
- func (qs *QuadStore) QuadIterator(ctx context.Context, dir quad.Direction, v graph.Ref) iterator.Shape
- func (qs *QuadStore) QuadIteratorSize(ctx context.Context, d quad.Direction, v graph.Ref) (refs.Size, error)
- func (qs *QuadStore) QuadsAllIterator(ctx context.Context) iterator.Shape
- func (qs *QuadStore) RefsOf(ctx context.Context, nodes []quad.Value) ([]graph.Ref, error)
- func (qs *QuadStore) Size(ctx context.Context) (int64, error)
- func (qs *QuadStore) Stats(ctx context.Context, exact bool) (graph.Stats, error)
- func (qs *QuadStore) ValueOf(ctx context.Context, s quad.Value) (graph.Ref, error)
- func (qs *QuadStore) ValuesOf(ctx context.Context, vals []graph.Ref) ([]quad.Value, error)
- type Registration
Constants ¶
View Source
const ( OptAssumeDefaultIdx = "assume_default_idx" OptBloom = "bloom" )
Variables ¶
View Source
var ( ErrNoBucket = errors.New("kv: no bucket") ErrEmptyPath = errors.New("kv: path to the database must be specified") )
Functions ¶
func CompareQuadDirections ¶ added in v0.9.0
CompareQuadDirections compares two slices of quad directions for equality.
func CompareQuadIndexes ¶ added in v0.9.0
CompareQuadIndexes compares two slices of quad indexes for equality.
func Register ¶
func Register(name string, r Registration)
Types ¶
type IndexScan ¶ added in v0.9.0
func (IndexScan) BuildIterator ¶ added in v0.9.0
type Int64Value ¶
type Int64Value uint64
func (Int64Value) Key ¶
func (v Int64Value) Key() interface{}
type QuadIndex ¶
type QuadIterator ¶
type QuadIterator struct {
// contains filtered or unexported fields
}
func (*QuadIterator) Iterate ¶ added in v0.9.0
func (it *QuadIterator) Iterate(ctx context.Context) iterator.Scanner
func (*QuadIterator) Lookup ¶ added in v0.9.0
func (it *QuadIterator) Lookup(ctx context.Context) iterator.Index
func (*QuadIterator) Sorted ¶
func (it *QuadIterator) Sorted() bool
func (*QuadIterator) String ¶
func (it *QuadIterator) String() string
func (*QuadIterator) SubIterators ¶
func (it *QuadIterator) SubIterators() []iterator.Shape
type QuadStore ¶
type QuadStore struct {
// contains filtered or unexported fields
}
func (*QuadStore) ApplyDeltas ¶
func (*QuadStore) NewQuadWriter ¶ added in v0.9.0
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeShape ¶ added in v0.9.0
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadIteratorSize ¶ added in v0.9.0
func (*QuadStore) QuadsAllIterator ¶
type Registration ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.