cardinality

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Overview

Package cardinality contains the object that describes number of relationship occurrences for objects.

See:

TinkerPop: http://tinkerpop.apache.org/javadocs/3.3.3/core/org/apache/tinkerpop/gremlin/structure/VertexProperty.Cardinality.html
Wikipedia: https://en.wikipedia.org/wiki/Cardinality

Cardinality describes the maximum number of possible relationships.

A note about Cardinality:

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 Cardinality

type Cardinality string

Cardinality describes maximum number of possible relationship occurrences for an entity participating in a given relationship type.

const (
	// List allows an arbitrary number of
	// values per element for such key.
	List Cardinality = "list"
	// Set allows multiple values but no
	// duplicate values per element for such key.
	Set Cardinality = "set"
	// Single allows at most one
	// value per element for such key
	Single Cardinality = "single"
)

func (Cardinality) String

func (c Cardinality) String() string

String will convert Cardinality to a string

Jump to

Keyboard shortcuts

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