graphmock

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntVal

type IntVal int

func (IntVal) Key

func (v IntVal) Key() interface{}

type Oldstore

type Oldstore struct {
	Parse bool
	Data  []string
	Iter  iterator.Shape
}

Oldstore is a mocked version of the QuadStore interface, for use in tests.

func (*Oldstore) ApplyDeltas

func (qs *Oldstore) ApplyDeltas([]graph.Delta, graph.IgnoreOpts) error

func (*Oldstore) Close

func (qs *Oldstore) Close() error

func (*Oldstore) DebugPrint

func (qs *Oldstore) DebugPrint()

func (*Oldstore) NameOf

func (qs *Oldstore) NameOf(v graph.Ref) (quad.Value, error)

func (*Oldstore) NewQuadWriter

func (qs *Oldstore) NewQuadWriter() (quad.WriteCloser, error)

func (*Oldstore) NodesAllIterator

func (qs *Oldstore) NodesAllIterator() iterator.Shape

func (*Oldstore) OptimizeIterator

func (qs *Oldstore) OptimizeIterator(it iterator.Shape) (iterator.Shape, bool)

func (*Oldstore) Quad

func (qs *Oldstore) Quad(graph.Ref) quad.Quad

func (*Oldstore) QuadDirection

func (qs *Oldstore) QuadDirection(graph.Ref, quad.Direction) graph.Ref

func (*Oldstore) QuadIterator

func (qs *Oldstore) QuadIterator(d quad.Direction, i graph.Ref) iterator.Shape

func (*Oldstore) QuadIteratorSize

func (qs *Oldstore) QuadIteratorSize(ctx context.Context, d quad.Direction, val graph.Ref) (refs.Size, error)

func (*Oldstore) QuadsAllIterator

func (qs *Oldstore) QuadsAllIterator() iterator.Shape

func (*Oldstore) RemoveQuad

func (qs *Oldstore) RemoveQuad(t quad.Quad)

func (*Oldstore) Size

func (qs *Oldstore) Size() int64

func (*Oldstore) Type

func (qs *Oldstore) Type() string

func (*Oldstore) ValueOf

func (qs *Oldstore) ValueOf(s quad.Value) (graph.Ref, error)

type Store

type Store struct {
	Data []quad.Quad
}

func (*Store) ApplyDeltas

func (qs *Store) ApplyDeltas([]graph.Delta, graph.IgnoreOpts) error

func (*Store) Close

func (qs *Store) Close() error

func (*Store) DebugPrint

func (qs *Store) DebugPrint()

func (*Store) NameOf

func (qs *Store) NameOf(v graph.Ref) (quad.Value, error)

func (*Store) NewQuadWriter

func (qs *Store) NewQuadWriter() (quad.WriteCloser, error)

func (*Store) NodesAllIterator

func (qs *Store) NodesAllIterator() iterator.Shape

func (*Store) Quad

func (qs *Store) Quad(v graph.Ref) (quad.Quad, error)

func (*Store) QuadDirection

func (qs *Store) QuadDirection(v graph.Ref, d quad.Direction) (graph.Ref, error)

func (*Store) QuadIterator

func (qs *Store) QuadIterator(d quad.Direction, i graph.Ref) iterator.Shape

func (*Store) QuadIteratorSize

func (qs *Store) QuadIteratorSize(ctx context.Context, d quad.Direction, val graph.Ref) (refs.Size, error)

func (*Store) QuadsAllIterator

func (qs *Store) QuadsAllIterator() iterator.Shape

func (*Store) RemoveQuad

func (qs *Store) RemoveQuad(t quad.Quad)

func (*Store) Stats

func (qs *Store) Stats(ctx context.Context, exact bool) (graph.Stats, error)

func (*Store) Type

func (qs *Store) Type() string

func (*Store) ValueOf

func (qs *Store) ValueOf(s quad.Value) (graph.Ref, error)

type StringNode

type StringNode string

func (StringNode) Key

func (s StringNode) Key() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL