Skip to content
Snippets Groups Projects
Commit a24241dc authored by Geurtjens,D. (Douwe Geurtjens)'s avatar Geurtjens,D. (Douwe Geurtjens)
Browse files

Added ML params to querystruct.go for ML rewrite

parent 6d3fa73a
No related branches found
No related tags found
1 merge request!1Big merge
...@@ -2,12 +2,13 @@ package entity ...@@ -2,12 +2,13 @@ package entity
// IncomingQueryJSON describes the query coming into the service in JSON format // IncomingQueryJSON describes the query coming into the service in JSON format
type IncomingQueryJSON struct { type IncomingQueryJSON struct {
DatabaseName string DatabaseName string
Return QueryReturnStruct Return QueryReturnStruct
Entities []QueryEntityStruct Entities []QueryEntityStruct
Relations []QueryRelationStruct Relations []QueryRelationStruct
GroupBys []QueryGroupByStruct GroupBys []QueryGroupByStruct
Filters []QueryFilterStruct Filters []QueryFilterStruct
MachineLearning []QueryMLStruct
// Limit is for limiting the amount of paths AQL will return in a relation let statement // Limit is for limiting the amount of paths AQL will return in a relation let statement
Limit int Limit int
Modifiers []QueryModifierStruct Modifiers []QueryModifierStruct
...@@ -64,6 +65,11 @@ type QueryFilterStruct struct { ...@@ -64,6 +65,11 @@ type QueryFilterStruct struct {
InID int InID int
} }
type QueryMLStruct struct {
Queuename string
Parameters []string
}
// QueryModifierStruct encapsulates a single modifier with its corresponding constraints // QueryModifierStruct encapsulates a single modifier with its corresponding constraints
type QueryModifierStruct struct { type QueryModifierStruct struct {
Type string // SUM COUNT AVG Type string // SUM COUNT AVG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment