Documentation ¶
Index ¶
- Variables
- func Init(kv KV, _ graph.Options) error
- func New(kv KV, _ graph.Options) (graph.QuadStore, error)
- func Type() graph.Type
- func Update(kv KV, update func(tx Tx) error) error
- func View(kv KV, view func(tx Tx) error) error
- type AllIterator
- func (it *AllIterator) Clone() graph.Iterator
- func (it *AllIterator) Close() error
- func (it *AllIterator) Contains(v graph.Value) bool
- func (it *AllIterator) Describe() graph.Description
- func (it *AllIterator) Err() error
- func (it *AllIterator) Next() bool
- func (it *AllIterator) NextPath() bool
- func (it *AllIterator) Optimize() (graph.Iterator, bool)
- func (it *AllIterator) Reset()
- func (it *AllIterator) Result() graph.Value
- func (it *AllIterator) Size() (int64, bool)
- func (it *AllIterator) Sorted() bool
- func (it *AllIterator) Stats() graph.IteratorStats
- func (it *AllIterator) SubIterators() []graph.Iterator
- func (it *AllIterator) TagResults(dst map[string]graph.Value)
- func (it *AllIterator) Tagger() *graph.Tagger
- func (it *AllIterator) Type() graph.Type
- func (it *AllIterator) UID() uint64
- type Bucket
- type FillBucket
- type Int64Set
- type Int64Value
- type KV
- type QuadIterator
- func (it *QuadIterator) Clone() graph.Iterator
- func (it *QuadIterator) Close() error
- func (it *QuadIterator) Contains(v graph.Value) bool
- func (it *QuadIterator) Describe() graph.Description
- func (it *QuadIterator) Err() error
- func (it *QuadIterator) Next() bool
- func (it *QuadIterator) NextPath() bool
- func (it *QuadIterator) Optimize() (graph.Iterator, bool)
- func (it *QuadIterator) Reset()
- func (it *QuadIterator) Result() graph.Value
- func (it *QuadIterator) Size() (int64, bool)
- func (it *QuadIterator) Sorted() bool
- func (it *QuadIterator) Stats() graph.IteratorStats
- func (it *QuadIterator) SubIterators() []graph.Iterator
- func (it *QuadIterator) TagResults(dst map[string]graph.Value)
- func (it *QuadIterator) Tagger() *graph.Tagger
- func (it *QuadIterator) Type() graph.Type
- func (it *QuadIterator) UID() uint64
- type QuadStore
- func (qs *QuadStore) ApplyDeltas(deltas []graph.Delta, ignoreOpts graph.IgnoreOpts) error
- func (qs *QuadStore) Close() error
- func (qs *QuadStore) FixedIterator() graph.FixedIterator
- func (qs *QuadStore) Horizon() graph.PrimaryKey
- func (qs *QuadStore) NameOf(k graph.Value) quad.Value
- func (qs *QuadStore) NodesAllIterator() graph.Iterator
- func (qs *QuadStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)
- func (qs *QuadStore) Quad(k graph.Value) quad.Quad
- func (qs *QuadStore) QuadDirection(val graph.Value, d quad.Direction) graph.Value
- func (qs *QuadStore) QuadIterator(dir quad.Direction, v graph.Value) graph.Iterator
- func (qs *QuadStore) QuadsAllIterator() graph.Iterator
- func (qs *QuadStore) Size() int64
- func (qs *QuadStore) Type() string
- func (qs *QuadStore) ValueOf(s quad.Value) graph.Value
- type Tx
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoBucket = errors.New("kv: bucket is missing")
)
Functions ¶
Types ¶
type AllIterator ¶
type AllIterator struct {
// contains filtered or unexported fields
}
func NewAllIterator ¶
func NewAllIterator(nodes bool, qs *QuadStore, cons *constraint) *AllIterator
func (*AllIterator) Clone ¶
func (it *AllIterator) Clone() graph.Iterator
func (*AllIterator) Close ¶
func (it *AllIterator) Close() error
func (*AllIterator) Describe ¶
func (it *AllIterator) Describe() graph.Description
func (*AllIterator) Err ¶
func (it *AllIterator) Err() error
func (*AllIterator) Next ¶
func (it *AllIterator) Next() bool
func (*AllIterator) NextPath ¶
func (it *AllIterator) NextPath() bool
func (*AllIterator) Reset ¶
func (it *AllIterator) Reset()
func (*AllIterator) Result ¶
func (it *AllIterator) Result() graph.Value
func (*AllIterator) Size ¶
func (it *AllIterator) Size() (int64, bool)
func (*AllIterator) Sorted ¶
func (it *AllIterator) Sorted() bool
func (*AllIterator) Stats ¶
func (it *AllIterator) Stats() graph.IteratorStats
func (*AllIterator) SubIterators ¶
func (it *AllIterator) SubIterators() []graph.Iterator
No subiterators.
func (*AllIterator) TagResults ¶
func (it *AllIterator) TagResults(dst map[string]graph.Value)
func (*AllIterator) Tagger ¶
func (it *AllIterator) Tagger() *graph.Tagger
func (*AllIterator) Type ¶
func (it *AllIterator) Type() graph.Type
func (*AllIterator) UID ¶
func (it *AllIterator) UID() uint64
type FillBucket ¶
type FillBucket interface {
SetFillPercent(v float64)
}
type Int64Value ¶
type Int64Value uint64
func (Int64Value) Key ¶
func (v Int64Value) Key() interface{}
type QuadIterator ¶
type QuadIterator struct {
// contains filtered or unexported fields
}
func NewQuadIterator ¶
func NewQuadIterator(dir quad.Direction, v Int64Value, qs *QuadStore) *QuadIterator
func (*QuadIterator) Clone ¶
func (it *QuadIterator) Clone() graph.Iterator
func (*QuadIterator) Close ¶
func (it *QuadIterator) Close() error
func (*QuadIterator) Describe ¶
func (it *QuadIterator) Describe() graph.Description
func (*QuadIterator) Err ¶
func (it *QuadIterator) Err() error
func (*QuadIterator) Next ¶
func (it *QuadIterator) Next() bool
func (*QuadIterator) NextPath ¶
func (it *QuadIterator) NextPath() bool
func (*QuadIterator) Reset ¶
func (it *QuadIterator) Reset()
func (*QuadIterator) Result ¶
func (it *QuadIterator) Result() graph.Value
func (*QuadIterator) Size ¶
func (it *QuadIterator) Size() (int64, bool)
func (*QuadIterator) Sorted ¶
func (it *QuadIterator) Sorted() bool
func (*QuadIterator) Stats ¶
func (it *QuadIterator) Stats() graph.IteratorStats
func (*QuadIterator) SubIterators ¶
func (it *QuadIterator) SubIterators() []graph.Iterator
func (*QuadIterator) TagResults ¶
func (it *QuadIterator) TagResults(dst map[string]graph.Value)
func (*QuadIterator) Tagger ¶
func (it *QuadIterator) Tagger() *graph.Tagger
func (*QuadIterator) Type ¶
func (it *QuadIterator) Type() graph.Type
func (*QuadIterator) UID ¶
func (it *QuadIterator) UID() uint64
type QuadStore ¶
type QuadStore struct {
// contains filtered or unexported fields
}
func (*QuadStore) ApplyDeltas ¶
func (*QuadStore) FixedIterator ¶
func (qs *QuadStore) FixedIterator() graph.FixedIterator
func (*QuadStore) Horizon ¶
func (qs *QuadStore) Horizon() graph.PrimaryKey
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeIterator ¶
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadsAllIterator ¶
Click to show internal directories.
Click to hide internal directories.