Package | Description |
---|---|
org.apache.tinkerpop.gremlin.structure |
Modifier and Type | Method and Description |
---|---|
default Vertex |
Graph.addVertex(String label)
Add a
Vertex to the graph with provided vertex label. |
default Map<String,Object> |
Graph.Variables.asMap()
Gets the variables of the
Graph as a Map . |
default Graph |
VertexProperty.graph()
Get the graph that this element is within.
|
default void |
Property.ifPresent(Consumer<? super V> consumer)
If the property is present, the consume the value as specified by the
Consumer . |
default String |
VertexProperty.label()
Gets the label for the graph
Element which helps categorize it. |
default V |
Property.orElse(V otherValue)
If the value is present, return the value, else return the provided value.
|
default V |
Property.orElseGet(Supplier<? extends V> valueSupplier)
If the value is present, return the value, else generate a value given the
Supplier . |
default <E extends Throwable> |
Property.orElseThrow(Supplier<? extends E> exceptionSupplier)
If the value is present, return the value, else throw the exception generated by the
Supplier . |
default <V> V |
Element.value(String key)
Get the value of a
Property given it's key. |
default <V> Iterator<V> |
Element.values(String... propertyKeys)
Get the values of properties as an
Iterator . |
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.