Documentation ¶
Overview ¶
Package operator contains the object to apply mathematical operations to a graph traversal.
Contains the name for mathematical operators in the Gremlin traversal language.
A note about Operator:
This object implements the Parameter interfaces used by graph traversals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator string
Operator unlike Numberhelper doesn't have functions associated to applying the mathematical operator. Instead this enumeration only uses the keywords and strings.
const ( // AddAll will add all of the number provided in the traversal. AddAll Operator = "addAll" // And will tell the traversal to wait for another parameter. And Operator = "and" // Assign will assign a number to an alias. Assign Operator = "assign" // Div takes the amount of times one number fits into another. Div Operator = "div" // Max finds the largest number found in the traversal. Max Operator = "max" // Min finds the smallest number in the traversal. Min Operator = "min" // Minus subtracts from two or more numbers. Minus Operator = "minus" // Mult will multiply the numbers found in the traversal. Mult Operator = "mult" // Or will make the traversal choose best fit number. Or Operator = "or" // Sum will take the sum of all numbers in the traversal. Sum Operator = "sum" // SumLong will take the sum of all numbers in the traversal as a long. SumLong Operator = "sumLong" )
Click to show internal directories.
Click to hide internal directories.