Class ComputerGraph.ComputerVertex
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerElement
- 
- org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerVertex
 
 
- 
- All Implemented Interfaces:
- Element,- Host,- WrappedElement<Element>,- WrappedVertex<Vertex>,- Vertex
 - Enclosing class:
- ComputerGraph
 
 public class ComputerGraph.ComputerVertex extends ComputerGraph.ComputerElement implements Vertex, WrappedVertex<Vertex> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.ElementElement.Exceptions
 - 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.VertexVertex.Exceptions
 
- 
 - 
Field Summary- 
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.VertexDEFAULT_LABEL, EMPTY_ARGS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ComputerVertex(Vertex vertex)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeaddEdge(String label, Vertex inVertex, Object... keyValues)Add an outgoing edge to the vertex with provided label and edge properties as key/value pairs.Iterator<Edge>edges(Direction direction, String... edgeLabels)Gets anIteratorof incident edges.VertexgetBaseVertex()<V> Iterator<VertexProperty<V>>properties(String... propertyKeys)Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.<V> VertexProperty<V>property(String key)Get aPropertyfor theElementgiven its key.<V> VertexProperty<V>property(String key, V value)Add or set a property value for theElementgiven its key.<V> VertexProperty<V>property(String key, V value, Object... keyValues)Set the provided key to the provided value using defaultVertexProperty.Cardinalityfor that key.<V> VertexProperty<V>property(VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)Create a new vertex property.Iterator<Vertex>vertices(Direction direction, String... edgeLabels)Gets anIteratorof adjacent vertices.- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerElementequals, getBaseElement, graph, hashCode, id, keys, label, remove, toString, value, values
 
- 
 
- 
- 
- 
Constructor Detail- 
ComputerVertexpublic ComputerVertex(Vertex vertex) 
 
- 
 - 
Method Detail- 
propertypublic <V> VertexProperty<V> property(String key) Description copied from interface:ElementGet aPropertyfor theElementgiven its key. The default implementation calls the rawElement.properties(java.lang.String...).- Specified by:
- propertyin interface- Element
- Specified by:
- propertyin interface- Vertex
- Overrides:
- propertyin class- ComputerGraph.ComputerElement
- Type Parameters:
- V- the expected type of the vertex property value
- Parameters:
- key- the key of the vertex property to get
- Returns:
- the retrieved vertex property
 
 - 
propertypublic <V> VertexProperty<V> property(String key, V value) Description copied from interface:ElementAdd or set a property value for theElementgiven its key.- Specified by:
- propertyin interface- Element
- Specified by:
- propertyin interface- Vertex
- Overrides:
- propertyin class- ComputerGraph.ComputerElement
- Type Parameters:
- V- the type of the value of the vertex property
- Parameters:
- key- the key of the vertex property
- value- The value of the vertex property
- Returns:
- the newly created vertex property
 
 - 
propertypublic <V> VertexProperty<V> property(String key, V value, Object... keyValues) Description copied from interface:VertexSet the provided key to the provided value using defaultVertexProperty.Cardinalityfor that key. The default cardinality can be vendor defined and is usually tied to the graph schema. The default implementation of this method determines the cardinalitygraph().features().vertex().getCardinality(key). The provided key/values are the properties of the newly createdVertexProperty. These key/values must be provided in an even number where the odd numbered arguments areString.- Specified by:
- propertyin interface- Vertex
- Type Parameters:
- V- the type of the value of the vertex property
- Parameters:
- key- the key of the vertex property
- value- The value of the vertex property
- keyValues- the key/value pairs to turn into vertex property properties
- Returns:
- the newly created vertex property
 
 - 
propertypublic <V> VertexProperty<V> property(VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues) Description copied from interface:VertexCreate a new vertex property. If the cardinality isVertexProperty.Cardinality.single, then set the key to the value. If the cardinality isVertexProperty.Cardinality.list, then add a new value to the key. If the cardinality isVertexProperty.Cardinality.set, then only add a new value if that value doesn't already exist for the key. If the value already exists for the key, add the provided key value vertex property properties to it.- Specified by:
- propertyin interface- Vertex
- Type Parameters:
- V- the type of the value of the vertex property
- Parameters:
- cardinality- the desired cardinality of the property key
- key- the key of the vertex property
- value- The value of the vertex property
- keyValues- the key/value pairs to turn into vertex property properties
- Returns:
- the newly created vertex property
 
 - 
addEdgepublic Edge addEdge(String label, Vertex inVertex, Object... keyValues) Description copied from interface:VertexAdd an outgoing edge to the vertex with provided label and edge properties as key/value pairs. These key/values must be provided in an even number where the odd numbered arguments areStringproperty keys and the even numbered arguments are the related property values.
 - 
edgespublic Iterator<Edge> edges(Direction direction, String... edgeLabels) Description copied from interface:VertexGets anIteratorof incident edges.
 - 
verticespublic Iterator<Vertex> vertices(Direction direction, String... edgeLabels) Description copied from interface:VertexGets anIteratorof adjacent vertices.- Specified by:
- verticesin interface- Vertex
- Parameters:
- direction- The adjacency direction of the vertices to retrieve off this vertex
- edgeLabels- The labels of the edges associated with the vertices to retrieve. If no labels are provided, then get all edges.
- Returns:
- An iterator of vertices meeting the provided specification
 
 - 
propertiespublic <V> Iterator<VertexProperty<V>> properties(String... propertyKeys) Description copied from interface:ElementGet anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys. If no keys are provide then return all the properties.- Specified by:
- propertiesin interface- Element
- Specified by:
- propertiesin interface- Vertex
- Overrides:
- propertiesin class- ComputerGraph.ComputerElement
 
 - 
getBaseVertexpublic Vertex getBaseVertex() - Specified by:
- getBaseVertexin interface- WrappedVertex<Vertex>
 
 
- 
 
-