memstore

package
v0.0.0-...-cb177aa Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Type

func Type() graph.Type

Types

type AllIterator

type AllIterator struct {
	iterator.Int64
	// contains filtered or unexported fields
}

func NewMemstoreAllIterator

func NewMemstoreAllIterator(ts *TripleStore) *AllIterator

func (*AllIterator) Next

func (it *AllIterator) Next() (graph.Value, bool)

func (*AllIterator) SubIterators

func (it *AllIterator) SubIterators() []graph.Iterator

No subiterators.

type Int64

type Int64 int64

func IterateOne

func IterateOne(tree *llrb.LLRB, last Int64) Int64

func (Int64) Less

func (i Int64) Less(than llrb.Item) bool

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func NewLlrbIterator

func NewLlrbIterator(tree *llrb.LLRB, data string) *Iterator

func (*Iterator) Clone

func (it *Iterator) Clone() graph.Iterator

func (*Iterator) Close

func (it *Iterator) Close()

func (*Iterator) Contains

func (it *Iterator) Contains(v graph.Value) bool

func (*Iterator) DebugString

func (it *Iterator) DebugString(indent int) string

func (*Iterator) Next

func (it *Iterator) Next() (graph.Value, bool)

func (*Iterator) NextResult

func (it *Iterator) NextResult() bool

func (*Iterator) Optimize

func (it *Iterator) Optimize() (graph.Iterator, bool)

func (*Iterator) Reset

func (it *Iterator) Reset()

func (*Iterator) Result

func (it *Iterator) Result() graph.Value

func (*Iterator) ResultTree

func (it *Iterator) ResultTree() *graph.ResultTree

func (*Iterator) Size

func (it *Iterator) Size() (int64, bool)

func (*Iterator) Sorted

func (it *Iterator) Sorted() bool

func (*Iterator) Stats

func (it *Iterator) Stats() graph.IteratorStats

func (*Iterator) SubIterators

func (it *Iterator) SubIterators() []graph.Iterator

No subiterators.

func (*Iterator) TagResults

func (it *Iterator) TagResults(dst map[string]graph.Value)

func (*Iterator) Tagger

func (it *Iterator) Tagger() *graph.Tagger

func (*Iterator) Type

func (it *Iterator) Type() graph.Type

func (*Iterator) UID

func (it *Iterator) UID() uint64

type TripleDirectionIndex

type TripleDirectionIndex struct {
	// contains filtered or unexported fields
}

func NewTripleDirectionIndex

func NewTripleDirectionIndex() *TripleDirectionIndex

func (*TripleDirectionIndex) Get

func (tdi *TripleDirectionIndex) Get(d quad.Direction, id int64) (*llrb.LLRB, bool)

func (*TripleDirectionIndex) GetForDir

func (tdi *TripleDirectionIndex) GetForDir(d quad.Direction) map[int64]*llrb.LLRB

func (*TripleDirectionIndex) GetOrCreate

func (tdi *TripleDirectionIndex) GetOrCreate(d quad.Direction, id int64) *llrb.LLRB

type TripleStore

type TripleStore struct {
	// contains filtered or unexported fields
}

func (*TripleStore) AddTriple

func (ts *TripleStore) AddTriple(t *quad.Quad)

func (*TripleStore) AddTripleSet

func (ts *TripleStore) AddTripleSet(triples []*quad.Quad)

func (*TripleStore) Close

func (ts *TripleStore) Close()

func (*TripleStore) DebugPrint

func (ts *TripleStore) DebugPrint()

func (*TripleStore) FixedIterator

func (ts *TripleStore) FixedIterator() graph.FixedIterator

func (*TripleStore) NameOf

func (ts *TripleStore) NameOf(id graph.Value) string

func (*TripleStore) NodesAllIterator

func (ts *TripleStore) NodesAllIterator() graph.Iterator

func (*TripleStore) OptimizeIterator

func (ts *TripleStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)

func (*TripleStore) Quad

func (ts *TripleStore) Quad(index graph.Value) *quad.Quad

func (*TripleStore) RemoveTriple

func (ts *TripleStore) RemoveTriple(t *quad.Quad)

func (*TripleStore) Size

func (ts *TripleStore) Size() int64

func (*TripleStore) TripleDirection

func (ts *TripleStore) TripleDirection(val graph.Value, d quad.Direction) graph.Value

func (*TripleStore) TripleIterator

func (ts *TripleStore) TripleIterator(d quad.Direction, value graph.Value) graph.Iterator

func (*TripleStore) TriplesAllIterator

func (ts *TripleStore) TriplesAllIterator() graph.Iterator

func (*TripleStore) ValueOf

func (ts *TripleStore) ValueOf(name string) graph.Value

Jump to

Keyboard shortcuts

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