Class DefaultVertex
- java.lang.Object
-
- org.apache.hugegraph.computer.core.graph.vertex.DefaultVertex
-
- All Implemented Interfaces:
org.apache.hugegraph.computer.core.allocator.Recyclable,org.apache.hugegraph.computer.core.graph.vertex.Vertex
public class DefaultVertex extends java.lang.Object implements org.apache.hugegraph.computer.core.graph.vertex.Vertex
-
-
Constructor Summary
Constructors Constructor Description DefaultVertex(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory)DefaultVertex(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory, java.lang.String label, org.apache.hugegraph.computer.core.graph.id.Id id, org.apache.hugegraph.computer.core.graph.value.Value value)DefaultVertex(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory, org.apache.hugegraph.computer.core.graph.id.Id id, org.apache.hugegraph.computer.core.graph.value.Value value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactive()voidaddEdge(org.apache.hugegraph.computer.core.graph.edge.Edge edge)org.apache.hugegraph.computer.core.graph.edge.Edgesedges()voidedges(org.apache.hugegraph.computer.core.graph.edge.Edges edges)booleanequals(java.lang.Object obj)inthashCode()org.apache.hugegraph.computer.core.graph.id.Idid()voidid(org.apache.hugegraph.computer.core.graph.id.Id id)voidinactivate()java.lang.Stringlabel()voidlabel(java.lang.String label)intnumEdges()org.apache.hugegraph.computer.core.graph.properties.Propertiesproperties()voidproperties(org.apache.hugegraph.computer.core.graph.properties.Properties properties)<T extends org.apache.hugegraph.computer.core.graph.value.Value>
Tproperty(java.lang.String key)voidreactivate()java.lang.StringtoString()<V extends org.apache.hugegraph.computer.core.graph.value.Value>
Vvalue()<V extends org.apache.hugegraph.computer.core.graph.value.Value>
voidvalue(V value)
-
-
-
Constructor Detail
-
DefaultVertex
public DefaultVertex(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory)
-
DefaultVertex
public DefaultVertex(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory, org.apache.hugegraph.computer.core.graph.id.Id id, org.apache.hugegraph.computer.core.graph.value.Value value)
-
DefaultVertex
public DefaultVertex(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory, java.lang.String label, org.apache.hugegraph.computer.core.graph.id.Id id, org.apache.hugegraph.computer.core.graph.value.Value value)
-
-
Method Detail
-
label
public java.lang.String label()
- Specified by:
labelin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
label
public void label(java.lang.String label)
- Specified by:
labelin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
id
public org.apache.hugegraph.computer.core.graph.id.Id id()
- Specified by:
idin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
id
public void id(org.apache.hugegraph.computer.core.graph.id.Id id)
- Specified by:
idin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
value
public <V extends org.apache.hugegraph.computer.core.graph.value.Value> V value()
- Specified by:
valuein interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
value
public <V extends org.apache.hugegraph.computer.core.graph.value.Value> void value(V value)
- Specified by:
valuein interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
numEdges
public int numEdges()
- Specified by:
numEdgesin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
edges
public org.apache.hugegraph.computer.core.graph.edge.Edges edges()
- Specified by:
edgesin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
edges
public void edges(org.apache.hugegraph.computer.core.graph.edge.Edges edges)
- Specified by:
edgesin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
addEdge
public void addEdge(org.apache.hugegraph.computer.core.graph.edge.Edge edge)
- Specified by:
addEdgein interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
properties
public org.apache.hugegraph.computer.core.graph.properties.Properties properties()
- Specified by:
propertiesin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
properties
public void properties(org.apache.hugegraph.computer.core.graph.properties.Properties properties)
- Specified by:
propertiesin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
property
public <T extends org.apache.hugegraph.computer.core.graph.value.Value> T property(java.lang.String key)
- Specified by:
propertyin interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
active
public boolean active()
- Specified by:
activein interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
inactivate
public void inactivate()
- Specified by:
inactivatein interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
reactivate
public void reactivate()
- Specified by:
reactivatein interfaceorg.apache.hugegraph.computer.core.graph.vertex.Vertex
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-