jpgql

package
v0.1.7-cachejson-hotfix-1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Foliage graph store jpgql package. Provides stateful functions of json-path graph query language for the graph store

Index

Constants

View Source
const QueryResultTopic = "functions.graph.query"

Variables

This section is empty.

Functions

func GetLinkNamesFromJPGQLLinkName added in v0.1.6

func GetLinkNamesFromJPGQLLinkName(cacheStore *cache.Store, sourceId string, jpgqlLinkName string) []string

func GetObjectIDsFromJPGQLLinkNameAndLinkFilterQuery added in v0.1.6

func GetObjectIDsFromJPGQLLinkNameAndLinkFilterQuery(cacheStore *cache.Store, sourceId string, jpgqlLinkName string, linkFilterQuery string) map[string]bool

func GetObjectIDsFromLinkNameAndLinkFilterQueryWithAnyDepthStop added in v0.1.6

func GetObjectIDsFromLinkNameAndLinkFilterQueryWithAnyDepthStop(cacheStore *cache.Store, sourceId string, jpgqlLinkName string, linkFilterQuery string, anyDepthStop *AnyDepthStop) map[string]bool

func GetSpecificLinkIndices added in v0.1.3

func GetSpecificLinkIndices(cacheStore *cache.Store, fromObjectID string, linkName string) map[string]struct{}

func GetTargetIdFromSourceIdAndLinkName added in v0.1.6

func GetTargetIdFromSourceIdAndLinkName(cacheStore *cache.Store, sourceId string, linkName string) string

func IsIndexedKeyMeetsRequirements added in v0.1.6

func IsIndexedKeyMeetsRequirements(cacheStore *cache.Store, indexKeys []string, typeStr, operation, targetValue string) bool

func IsLinkBodyHasIndexValue added in v0.1.6

func IsLinkBodyHasIndexValue(cacheStore *cache.Store, fromVertexId, linkName, key, valueType, operation, targetValue string) bool

func IsLinkSatifiesFilterCreteria added in v0.1.6

func IsLinkSatifiesFilterCreteria(cacheStore *cache.Store, fromVertexId string, toVertexId string, linkName string, linkFilterQuery string) bool

func IsVertexBodyHasIndexValue added in v0.1.6

func IsVertexBodyHasIndexValue(cacheStore *cache.Store, vertexId, key, valueType, operation, targetValue string) bool

func JPGQLCallTreeResultAggregation added in v0.1.6

func JPGQLCallTreeResultAggregation(_ sfPlugins.StatefunExecutor, ctx *sfPlugins.StatefunContextProcessor)

func RegisterAllFunctionTypes

func RegisterAllFunctionTypes(runtime *statefun.Runtime)

Types

type AnyDepthStop

type AnyDepthStop struct {
	LinkName    string
	FilterQeury string
	QueryTail   string
}

func GetQueryHeadAndTailsParts

func GetQueryHeadAndTailsParts(query string) (string, string, string, *AnyDepthStop, error)

type FilterData

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

func NewFilterDataWithConjunctionFeatures added in v0.1.3

func NewFilterDataWithConjunctionFeatures(conjunctionFeatures []filterFeature) *FilterData

func NewFilterDataWithOneFeature added in v0.1.3

func NewFilterDataWithOneFeature(feature filterFeature) *FilterData

func ParseFilter

func ParseFilter(filterQuery string) (*FilterData, error)

Jump to

Keyboard shortcuts

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