public final class HadoopVertexProperty<V> extends Object implements VertexProperty<V>, WrappedVertexProperty<VertexProperty<V>>
VertexProperty.Cardinality, VertexProperty.Exceptions
DEFAULT_LABEL
Constructor and Description |
---|
HadoopVertexProperty(VertexProperty<V> baseVertexProperty,
HadoopVertex hadoopVertex) |
Modifier and Type | Method and Description |
---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty . |
boolean |
equals(Object object) |
VertexProperty<V> |
getBaseVertexProperty() |
int |
hashCode() |
Object |
id()
Gets the unique identifier for the graph
Element . |
boolean |
isPresent()
Whether the property is empty or not.
|
String |
key()
The key of the property.
|
<U> Iterator<Property<U>> |
properties(String... propertyKeys)
Get an
Iterator of properties. |
<U> Property<U> |
property(String key)
Get a
Property for the Element given its key. |
<U> Property<U> |
property(String key,
U value)
Add or set a property value for the
Element given its key. |
void |
remove()
Remove the property from the associated element.
|
String |
toString() |
V |
value()
The value of the property.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
empty, graph, label
ifPresent, orElse, orElseGet, orElseThrow
public HadoopVertexProperty(VertexProperty<V> baseVertexProperty, HadoopVertex hadoopVertex)
public Object id()
Element
Element
.public void remove()
Property
public boolean isPresent()
Property
public <U> Property<U> property(String key)
Element
Property
for the Element
given its key.
The default implementation calls the raw Element.properties(java.lang.String...)
.public <U> Property<U> property(String key, U value)
Element
Element
given its key.public Vertex element()
VertexProperty
Vertex
that owns this VertexProperty
.element
in interface Property<V>
element
in interface VertexProperty<V>
Vertex
, Edge
, or VertexProperty
).public VertexProperty<V> getBaseVertexProperty()
getBaseVertexProperty
in interface WrappedVertexProperty<VertexProperty<V>>
public <U> Iterator<Property<U>> properties(String... propertyKeys)
VertexProperty
Iterator
of properties.properties
in interface Element
properties
in interface VertexProperty<V>
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.