Documentation ¶
Overview ¶
Foliage graph store jpgql package. Provides stateful functions of json-path graph query language for the graph store
Index ¶
- Constants
- func GetAllLinksFromSpecifiedLinkType(cacheStore *cache.Store, objectID string, linkType string) [][]string
- func GetObjectIDsFromLinkType(cacheStore *cache.Store, objectID string, linkType string) map[string]int
- func GetObjectIDsFromLinkTypeAndFilterData(cacheStore *cache.Store, objectID string, linkType string, ...) map[string]int
- func GetObjectIDsFromLinkTypeAndLinkFilterQuery(cacheStore *cache.Store, objectID string, linkType string, ...) map[string]int
- func GetObjectIDsFromLinkTypeAndLinkFilterQueryWithAnyDepthStop(cacheStore *cache.Store, objectID string, linkType string, ...) map[string]int
- func GetSpecificLinkIndices(cacheStore *cache.Store, fromObjectID string, linkType string, ...) map[string]struct{}
- func LLAPIQueryJPGQLCallTreeResultAggregation(executor sfPlugins.StatefunExecutor, ...)
- func LLAPIQueryJPGQLDirectCacheResultAggregation(executor sfPlugins.StatefunExecutor, ...)
- func RegisterAllFunctionTypes(runtime *statefun.Runtime, jpgqlEvaluationTimeoutSec int)
- type AnyDepthStop
- type FilterData
Constants ¶
View Source
const QueryResultTopic = "functions.graph.query"
Variables ¶
This section is empty.
Functions ¶
func GetAllLinksFromSpecifiedLinkType ¶ added in v0.1.3
func GetSpecificLinkIndices ¶ added in v0.1.3
func LLAPIQueryJPGQLCallTreeResultAggregation ¶
func LLAPIQueryJPGQLCallTreeResultAggregation(executor sfPlugins.StatefunExecutor, contextProcessor *sfPlugins.StatefunContextProcessor)
Uses JPGQL call-tree result aggregation algorithm to find objects
Request:
payload: json - required // Initial request from caller query_id: string - optional // ID for this query. jpgql_query: string - required // Json path query call: json - optional // A call to be done on found targets typename: string - required // Typename to be called payload: json - required // Data for typename to be called with // Self-requests to descendants: (ID is composite: <object_id>===<process_id> - for async execution) query_id: string - required // ID for this query. caller_aggregation_id: string - required // Id which descendants will send to caller when sending its results jpgql_query: string - required // Json path query call: json - optional // A call to be done on found targets typename: string - required // Typename to be called payload: json - required // Data for typename to be called with options: json - optional eval_timeout_sec: int - optional // Execution timeout
Reply:
payload: json query_id: string // ID for this query. aggregation_id: string // Id which to use to aggregate result result: []string // Found objects
func LLAPIQueryJPGQLDirectCacheResultAggregation ¶
func LLAPIQueryJPGQLDirectCacheResultAggregation(executor sfPlugins.StatefunExecutor, contextProcessor *sfPlugins.StatefunContextProcessor)
Uses JPGQL direct cache result aggregation algorithm to find objects
Request:
payload: json - required // Initial request from caller: query_id: string - optional // ID for this query. jpgql_query: string - required // Json path query call: json - optional // A call to be done on found targets typename: string - required // Typename to be called payload: json - required // Data for typename to be called with // Self-requests to descendants: (ID is composite: <object_id>===<process_id> - for async execution) aggregation_id: string - required // Original ID for the search query. jpgql_query: string - required // Json path query call: json - optional // A call to be done on found targets typename: string - required // Typename to be called payload: json - required // Data for typename to be called with options: json - optional eval_timeout_sec: int - optional // Execution timeout
Reply:
payload: json query_id: string // ID for this query. aggregation_id: string // Id which to use to aggregate result result: []string // Found objects
Types ¶
type AnyDepthStop ¶
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)
Click to show internal directories.
Click to hide internal directories.