pop

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 pop contains the object that determines the gathered values.

See: http://tinkerpop.apache.org/javadocs/3.3.3/core/org/apache/tinkerpop/gremlin/process/traversal/Pop.html

Pop is for how to return values of a list.

A note about Pop:

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 Pop

type Pop string

Pop is used to determine whether the first value, last value or all values are gathered. Not that mixed will return results as a list if there are multiple or as a singleton if only one object in that path is labeled.

const (
	// First is the first item in an ordered collection
	// Such as collection[0]
	First Pop = "first"
	// Last is the last item in an ordered collection
	// Such as collection[collection.size()-1]
	Last Pop = "last"
	// All gets all the items and returns them as a list.
	All Pop = "all"
	// Mixed gets the items as either a list (for multiple)
	// or an object (for singles).
	Mixed Pop = "mixed"
)

func (Pop) String

func (p Pop) String() string

Turn the Pop into a string.

Jump to

Keyboard shortcuts

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