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 AllIterator
- type IndexScan
- type InitFunc
- type Int64Set
- type Int64Value
- type NewFunc
- type QuadIndex
- type QuadIterator
- 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
- func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
- func (qs *QuadStore) NodesAllIterator() graph.Iterator
- func (qs *QuadStore) OptimizeShape(s shape.Shape) (shape.Shape, bool)
- func (qs *QuadStore) Quad(k graph.Ref) quad.Quad
- func (qs *QuadStore) QuadDirection(val graph.Ref, d quad.Direction) graph.Ref
- func (qs *QuadStore) QuadIterator(dir quad.Direction, v graph.Ref) graph.Iterator
- func (qs *QuadStore) QuadIteratorSize(ctx context.Context, d quad.Direction, v graph.Ref) (graph.Size, error)
- func (qs *QuadStore) QuadsAllIterator() graph.Iterator
- 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
- 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 ( DefaultQuadIndexes = []QuadIndex{ {Dirs: []quad.Direction{quad.Subject, quad.Predicate}}, {Dirs: []quad.Direction{quad.Object, quad.Predicate, quad.Subject}}, } )
View Source
var ErrNoBucket = errors.New("kv: no bucket")
Functions ¶
func Register ¶
func Register(name string, r Registration)
Types ¶
type AllIterator ¶
func NewAllIterator ¶
func NewAllIterator(nodes bool, qs *QuadStore, cons *constraint) *AllIterator
func (*AllIterator) AsShape ¶ added in v0.7.6
func (it *AllIterator) AsShape() graph.IteratorShape
func (*AllIterator) Sorted ¶
func (it *AllIterator) Sorted() bool
type IndexScan ¶ added in v0.7.6
func (IndexScan) BuildIterator ¶ added in v0.7.6
type Int64Value ¶
type Int64Value uint64
func (Int64Value) Key ¶
func (v Int64Value) Key() interface{}
type QuadIterator ¶
func NewQuadIterator ¶
func NewQuadIterator(qs *QuadStore, ind QuadIndex, vals []uint64) *QuadIterator
func (*QuadIterator) AsShape ¶ added in v0.7.6
func (it *QuadIterator) AsShape() graph.IteratorShape
func (*QuadIterator) Sorted ¶
func (it *QuadIterator) Sorted() bool
type QuadStore ¶
type QuadStore struct {
// contains filtered or unexported fields
}
func (*QuadStore) ApplyDeltas ¶
func (*QuadStore) NewQuadWriter ¶ added in v0.7.6
func (qs *QuadStore) NewQuadWriter() (quad.WriteCloser, error)
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeShape ¶ added in v0.7.6
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadIteratorSize ¶ added in v0.7.6
func (*QuadStore) QuadsAllIterator ¶
type Registration ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.