Class GafferPopVertex

  • All Implemented Interfaces:
    org.apache.tinkerpop.gremlin.structure.Element, org.apache.tinkerpop.gremlin.structure.util.Host, org.apache.tinkerpop.gremlin.structure.Vertex

    public class GafferPopVertex
    extends GafferPopElement
    implements org.apache.tinkerpop.gremlin.structure.Vertex
    A GafferPopEdge is an GafferPopElement and Vertex.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element

        org.apache.tinkerpop.gremlin.structure.Element.Exceptions
      • Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Vertex

        org.apache.tinkerpop.gremlin.structure.Vertex.Exceptions
    • Field Summary

      • Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Vertex

        DEFAULT_LABEL, EMPTY_ARGS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.tinkerpop.gremlin.structure.Edge addEdge​(String label, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)  
      Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges​(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)  
      Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges​(org.apache.tinkerpop.gremlin.structure.Direction direction, View view)  
      Set<String> keys()  
      <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties​(String... propertyKeys)  
      <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property​(String key)  
      <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property​(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)  
      <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> propertyWithoutUpdate​(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
      Updates the properties attached to this Vertex but without modifying the underlying graph.
      void remove()  
      String toString()  
      Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices​(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)  
      Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices​(org.apache.tinkerpop.gremlin.structure.Direction direction, View view)  
      • Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Element

        graph, id, label, value, values
      • Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Vertex

        property, property
    • Method Detail

      • property

        public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property​(String key)
        Specified by:
        property in interface org.apache.tinkerpop.gremlin.structure.Element
        Specified by:
        property in interface org.apache.tinkerpop.gremlin.structure.Vertex
      • property

        public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property​(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
                                                                                     String key,
                                                                                     V value,
                                                                                     Object... keyValues)
        Specified by:
        property in interface org.apache.tinkerpop.gremlin.structure.Vertex
      • properties

        public <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties​(String... propertyKeys)
        Specified by:
        properties in interface org.apache.tinkerpop.gremlin.structure.Element
        Specified by:
        properties in interface org.apache.tinkerpop.gremlin.structure.Vertex
      • propertyWithoutUpdate

        public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> propertyWithoutUpdate​(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
                                                                                                  String key,
                                                                                                  V value,
                                                                                                  Object... keyValues)
        Updates the properties attached to this Vertex but without modifying the underlying graph. This method is largely a helper for generating GafferPopVertex objects from Gaffer Entities returned from the graph. In this situation we want to be able to create a representative Vertex but without modifying the one stored in the graph.
        Type Parameters:
        V - Value type
        Parameters:
        cardinality - The cardinality
        key - The property key
        value - The property value
        keyValues - Additional key value pairs
        Returns:
        The VertexProperty
      • addEdge

        public org.apache.tinkerpop.gremlin.structure.Edge addEdge​(String label,
                                                                   org.apache.tinkerpop.gremlin.structure.Vertex vertex,
                                                                   Object... keyValues)
        Specified by:
        addEdge in interface org.apache.tinkerpop.gremlin.structure.Vertex
      • edges

        public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges​(org.apache.tinkerpop.gremlin.structure.Direction direction,
                                                                           String... edgeLabels)
        Specified by:
        edges in interface org.apache.tinkerpop.gremlin.structure.Vertex
      • edges

        public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges​(org.apache.tinkerpop.gremlin.structure.Direction direction,
                                                                           View view)
      • vertices

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices​(org.apache.tinkerpop.gremlin.structure.Direction direction,
                                                                                String... edgeLabels)
        Specified by:
        vertices in interface org.apache.tinkerpop.gremlin.structure.Vertex
      • vertices

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices​(org.apache.tinkerpop.gremlin.structure.Direction direction,
                                                                                View view)
      • keys

        public Set<String> keys()
        Specified by:
        keys in interface org.apache.tinkerpop.gremlin.structure.Element
      • remove

        public void remove()
        Specified by:
        remove in interface org.apache.tinkerpop.gremlin.structure.Element
        Overrides:
        remove in class GafferPopElement