operator

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

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"
)

func (Operator) String

func (o Operator) String() string

Jump to

Keyboard shortcuts

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