Class ComputerGraph.ComputerElement
java.lang.Object
org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerElement
- All Implemented Interfaces:
Element,WrappedElement<Element>
- Direct Known Subclasses:
ComputerGraph.ComputerEdge,ComputerGraph.ComputerVertex,ComputerGraph.ComputerVertexProperty
- Enclosing class:
- ComputerGraph
public class ComputerGraph.ComputerElement
extends Object
implements Element, WrappedElement<Element>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangraph()Get the graph that this element is within.inthashCode()id()Gets the unique identifier for the graphElement.keys()Get the keys of the properties associated with this element.label()Gets the label for the graphElementwhich helps categorize it.labels()Gets all labels for this element.properties(String... propertyKeys) Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.<V> Property<V>Get aPropertyfor theElementgiven its key.<V> Property<V>Add or set a property value for theElementgiven its key.voidremove()Removes theElementfrom the graph.toString()<V> VGet the value of aPropertygiven it's key.<V> Iterator<V>Get the values of properties as anIterator.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
addLabel, dropLabel, dropLabels
-
Constructor Details
-
ComputerElement
-
-
Method Details
-
id
Description copied from interface:ElementGets the unique identifier for the graphElement. -
label
Description copied from interface:ElementGets the label for the graphElementwhich helps categorize it. -
labels
Description copied from interface:ElementGets all labels for this element.For
Vertex: may return zero or more labels (multi-label support). ForEdge: returns a singleton set (single label only in TinkerGraph). ForVertexProperty: returns a singleton set containing the property key. -
graph
Description copied from interface:ElementGet the graph that this element is within. -
keys
Description copied from interface:ElementGet the keys of the properties associated with this element. The default implementation iterators the properties and stores the keys into aHashSet. -
property
Description copied from interface:ElementGet aPropertyfor theElementgiven its key. The default implementation calls the rawElement.properties(java.lang.String...). -
property
Description copied from interface:ElementAdd or set a property value for theElementgiven its key. -
value
Description copied from interface:ElementGet the value of aPropertygiven it's key. The default implementation callsElement.property(java.lang.String)and then returns the associated value.- Specified by:
valuein interfaceElement- Throws:
NoSuchElementException- if the property does not exist on theElement.
-
remove
public void remove()Description copied from interface:ElementRemoves theElementfrom the graph. -
properties
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 interfaceElement
-
values
Description copied from interface:ElementGet the values of properties as anIterator. -
hashCode
public int hashCode() -
toString
-
equals
-
getBaseElement
- Specified by:
getBaseElementin interfaceWrappedElement<Element>
-