Class DetachedElement<E>
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.detached.DetachedElement<E>
- All Implemented Interfaces:
Serializable,Element,Attachable<E>
- Direct Known Subclasses:
DetachedEdge,DetachedVertex,DetachedVertexProperty
public abstract class DetachedElement<E>
extends Object
implements Element, Serializable, Attachable<E>
- Author:
- Stephen Mallette (http://stephen.genoprime.com), Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.MethodNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions -
Field Summary
FieldsFields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedDetachedElement(Object id, String label) protectedDetachedElement(Element element) -
Method Summary
Modifier and TypeMethodDescriptionbooleanget()Get the raw object trying to be attached.graph()Get the graph that this element is within.inthashCode()id()Gets the unique identifier for the graphElement.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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
attach
-
Field Details
-
id
-
label
-
properties
-
-
Constructor Details
-
DetachedElement
protected DetachedElement() -
DetachedElement
-
DetachedElement
-
-
Method Details
-
graph
Description copied from interface:ElementGet the graph that this element is within. -
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. -
property
Description copied from interface:ElementAdd or set a property value for theElementgiven its key. -
property
Description copied from interface:ElementGet aPropertyfor theElementgiven its key. The default implementation calls the rawElement.properties(java.lang.String...). -
hashCode
public int hashCode() -
equals
-
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
-
get
Description copied from interface:AttachableGet the raw object trying to be attached.- Specified by:
getin interfaceAttachable<E>- Returns:
- the raw object to attach
-