Class 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
      boolean active()  
      void addEdge​(org.apache.hugegraph.computer.core.graph.edge.Edge edge)  
      org.apache.hugegraph.computer.core.graph.edge.Edges edges()  
      void edges​(org.apache.hugegraph.computer.core.graph.edge.Edges edges)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      org.apache.hugegraph.computer.core.graph.id.Id id()  
      void id​(org.apache.hugegraph.computer.core.graph.id.Id id)  
      void inactivate()  
      java.lang.String label()  
      void label​(java.lang.String label)  
      int numEdges()  
      org.apache.hugegraph.computer.core.graph.properties.Properties properties()  
      void properties​(org.apache.hugegraph.computer.core.graph.properties.Properties properties)  
      <T extends org.apache.hugegraph.computer.core.graph.value.Value>
      T
      property​(java.lang.String key)  
      void reactivate()  
      java.lang.String toString()  
      <V extends org.apache.hugegraph.computer.core.graph.value.Value>
      V
      value()  
      <V extends org.apache.hugegraph.computer.core.graph.value.Value>
      void
      value​(V value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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:
        label in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • label

        public void label​(java.lang.String label)
        Specified by:
        label in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • id

        public org.apache.hugegraph.computer.core.graph.id.Id id()
        Specified by:
        id in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • id

        public void id​(org.apache.hugegraph.computer.core.graph.id.Id id)
        Specified by:
        id in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • value

        public <V extends org.apache.hugegraph.computer.core.graph.value.Value> V value()
        Specified by:
        value in interface org.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:
        value in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • numEdges

        public int numEdges()
        Specified by:
        numEdges in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • edges

        public org.apache.hugegraph.computer.core.graph.edge.Edges edges()
        Specified by:
        edges in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • edges

        public void edges​(org.apache.hugegraph.computer.core.graph.edge.Edges edges)
        Specified by:
        edges in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • addEdge

        public void addEdge​(org.apache.hugegraph.computer.core.graph.edge.Edge edge)
        Specified by:
        addEdge in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • properties

        public org.apache.hugegraph.computer.core.graph.properties.Properties properties()
        Specified by:
        properties in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • properties

        public void properties​(org.apache.hugegraph.computer.core.graph.properties.Properties properties)
        Specified by:
        properties in interface org.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:
        property in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • active

        public boolean active()
        Specified by:
        active in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • inactivate

        public void inactivate()
        Specified by:
        inactivate in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • reactivate

        public void reactivate()
        Specified by:
        reactivate in interface org.apache.hugegraph.computer.core.graph.vertex.Vertex
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object