context

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextualAttributes

type ContextualAttributes struct {
	Attributes []*base.Attribute
}

ContextualAttributes - A collection of attributes with context.

func NewContextualAttributes

func NewContextualAttributes(attributes ...*base.Attribute) *ContextualAttributes

NewContextualAttributes - Creates a new collection of attributes with context.

func (*ContextualAttributes) QueryAttributes

func (c *ContextualAttributes) QueryAttributes(filter *base.AttributeFilter) (*database.AttributeIterator, error)

QueryAttributes filters the attributes based on the provided filter, and returns an iterator to traverse through the filtered attributes.

func (*ContextualAttributes) QuerySingleAttribute

func (c *ContextualAttributes) QuerySingleAttribute(filter *base.AttributeFilter) (*base.Attribute, error)

QuerySingleAttribute filters the attributes based on the provided filter, and returns the first attribute from the filtered attributes, if any exist. If no attributes match the filter, it returns nil.

type ContextualTuples

type ContextualTuples struct {
	Tuples []*base.Tuple
}

ContextualTuples - A collection of tuples with context.

func NewContextualTuples

func NewContextualTuples(tuples ...*base.Tuple) *ContextualTuples

NewContextualTuples - Creates a new collection of tuples with context.

func (*ContextualTuples) QueryRelationships

func (c *ContextualTuples) QueryRelationships(filter *base.TupleFilter) (*database.TupleIterator, error)

QueryRelationships filters the ContextualTuples based on the provided TupleFilter and returns a TupleIterator for the filtered tuples.

Jump to

Keyboard shortcuts

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