mongo

package
Version: v0.3.1 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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDBName = "cayley"

Variables

This section is empty.

Functions

func Type added in v0.3.1

func Type() graph.Type

Types

type IDLru

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

func NewIDLru

func NewIDLru(size int) *IDLru

func (*IDLru) Get

func (lru *IDLru) Get(key string) (string, bool)

func (*IDLru) Put

func (lru *IDLru) Put(key string, value string)

type Iterator added in v0.3.1

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

func NewAllIterator added in v0.3.1

func NewAllIterator(qs *TripleStore, collection string) *Iterator

func NewIterator added in v0.3.1

func NewIterator(qs *TripleStore, collection string, d quad.Direction, val graph.Value) *Iterator

func (*Iterator) Clone added in v0.3.1

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

func (*Iterator) Close added in v0.3.1

func (it *Iterator) Close()

func (*Iterator) Contains added in v0.3.1

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

func (*Iterator) DebugString added in v0.3.1

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

func (*Iterator) Next added in v0.3.1

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

func (*Iterator) NextResult added in v0.3.1

func (it *Iterator) NextResult() bool

func (*Iterator) Optimize added in v0.3.1

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

func (*Iterator) Reset added in v0.3.1

func (it *Iterator) Reset()

func (*Iterator) Result added in v0.3.1

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

func (*Iterator) ResultTree added in v0.3.1

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

func (*Iterator) Size added in v0.3.1

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

func (*Iterator) Sorted added in v0.3.1

func (it *Iterator) Sorted() bool

func (*Iterator) Stats added in v0.3.1

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

func (*Iterator) SubIterators added in v0.3.1

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

No subiterators.

func (*Iterator) TagResults added in v0.3.1

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

func (*Iterator) Tagger added in v0.3.1

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

func (*Iterator) Type added in v0.3.1

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

func (*Iterator) UID added in v0.3.1

func (it *Iterator) UID() uint64

type KV

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

type MongoNode

type MongoNode struct {
	Id   string "_id"
	Name string "Name"
	Size int    "Size"
}

type TripleStore added in v0.3.1

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

func (*TripleStore) AddTriple added in v0.3.1

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

func (*TripleStore) AddTripleSet added in v0.3.1

func (qs *TripleStore) AddTripleSet(in []*quad.Quad)

func (*TripleStore) BulkLoad added in v0.3.1

func (qs *TripleStore) BulkLoad(dec quad.Unmarshaler) error

func (*TripleStore) Close added in v0.3.1

func (qs *TripleStore) Close()

func (*TripleStore) ConvertStringToByteHash added in v0.3.1

func (qs *TripleStore) ConvertStringToByteHash(s string) string

func (*TripleStore) FixedIterator added in v0.3.1

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

func (*TripleStore) NameOf added in v0.3.1

func (qs *TripleStore) NameOf(v graph.Value) string

func (*TripleStore) NodesAllIterator added in v0.3.1

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

func (*TripleStore) OptimizeIterator added in v0.3.1

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

func (*TripleStore) Quad added in v0.3.1

func (qs *TripleStore) Quad(val graph.Value) *quad.Quad

func (*TripleStore) RemoveTriple added in v0.3.1

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

func (*TripleStore) Size added in v0.3.1

func (qs *TripleStore) Size() int64

func (*TripleStore) TripleDirection added in v0.3.1

func (qs *TripleStore) TripleDirection(in graph.Value, d quad.Direction) graph.Value

func (*TripleStore) TripleIterator added in v0.3.1

func (qs *TripleStore) TripleIterator(d quad.Direction, val graph.Value) graph.Iterator

func (*TripleStore) TriplesAllIterator added in v0.3.1

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

func (*TripleStore) ValueOf added in v0.3.1

func (qs *TripleStore) ValueOf(s string) graph.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL