Documentation ¶
Index ¶
- Constants
- Variables
- func Init(kv kv.KV, opt graph.Options) error
- func New(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() iterator.Scanner
- func (it *QuadIterator) Lookup() iterator.Index
- func (it *QuadIterator) Optimize(ctx context.Context) (iterator.Shape, bool)
- 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(in []graph.Delta, ignoreOpts graph.IgnoreOpts) error
- func (qs *QuadStore) Close() error
- func (qs *QuadStore) NameOf(v graph.Ref) (quad.Value, error)
- func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
- func (qs *QuadStore) NodesAllIterator() iterator.Shape
- func (qs *QuadStore) OptimizeShape(ctx context.Context, s shape.Shape) (shape.Shape, bool)
- func (qs *QuadStore) Quad(k graph.Ref) (quad.Quad, error)
- func (qs *QuadStore) QuadDirection(val graph.Ref, d quad.Direction) (graph.Ref, error)
- func (qs *QuadStore) QuadIterator(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() iterator.Shape
- func (qs *QuadStore) RefsOf(ctx context.Context, nodes []quad.Value) ([]graph.Ref, error)
- func (qs *QuadStore) Size() int64
- func (qs *QuadStore) Stats(ctx context.Context, exact bool) (graph.Stats, error)
- func (qs *QuadStore) ValueOf(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 (
OptNoBloom = "no_bloom"
)
Variables ¶
View Source
var ( ErrNoBucket = errors.New("kv: no bucket") ErrEmptyPath = errors.New("kv: path to the database must be specified") )
Functions ¶
func Register ¶
func Register(name string, r Registration)
Types ¶
type IndexScan ¶
func (IndexScan) BuildIterator ¶
type Int64Value ¶
type Int64Value uint64
func (Int64Value) Key ¶
func (v Int64Value) Key() interface{}
type QuadIterator ¶
type QuadIterator struct {
// contains filtered or unexported fields
}
func (*QuadIterator) Iterate ¶
func (it *QuadIterator) Iterate() iterator.Scanner
func (*QuadIterator) Lookup ¶
func (it *QuadIterator) Lookup() 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 ¶
func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeShape ¶
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadIteratorSize ¶
func (*QuadStore) QuadsAllIterator ¶
type Registration ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.