Class VertexModifierImpl<VID>

java.lang.Object
oracle.pgx.api.internal.ApiObject
oracle.pgx.api.GraphBuilderImpl<VID>
oracle.pgx.api.GraphChangeSetImpl<VID>
oracle.pgx.api.graphbuilder.VertexModifierImpl<VID>
All Implemented Interfaces:
GraphBuilder<VID>, GraphChangeSet<VID>, VertexBuilder<VID>, VertexModifier<VID>

public class VertexModifierImpl<VID> extends GraphChangeSetImpl<VID> implements VertexModifier<VID>
  • Constructor Details

  • Method Details

    • isIgnored

      public boolean isIgnored()
      Description copied from interface: VertexBuilder
      Whether this vertex builder ignores method calls true or if it performs calls as usual false. Some issues, such as incompatible changes in a changeset, can be configured to be ignored. In that case, additional method calls on the returned vertex builder object will be ignored.
      Specified by:
      isIgnored in interface VertexBuilder<VID>
      Returns:
      whether method calls are ignored
    • removeLabel

      public VertexModifier<VID> removeLabel(String label)
      Description copied from interface: VertexModifier
      Removes the given label from the vertex.
      Specified by:
      removeLabel in interface VertexModifier<VID>
      Parameters:
      label - the label value to remove
      Returns:
      this vertex modifier
    • setProperty

      public VertexModifier<VID> setProperty(String key, Object value)
      Sets the property value of this vertex with the given key to the given value. The first time this method is called, the type of value defines the type of the property.
      Specified by:
      setProperty in interface VertexBuilder<VID>
      Specified by:
      setProperty in interface VertexModifier<VID>
      Parameters:
      key - the property key
      value - the value of the vertex property
      Returns:
      this vertex builder
    • addLabel

      public VertexModifier<VID> addLabel(String label)
      Adds the given label to this vertex
      Specified by:
      addLabel in interface VertexBuilder<VID>
      Specified by:
      addLabel in interface VertexModifier<VID>
      Parameters:
      label - the label to be added
      Returns:
      this vertex builder
    • getId

      public VID getId()
      Gets the id of the element (vertex or edge) this builder belongs to
      Specified by:
      getId in interface VertexBuilder<VID>
      Specified by:
      getId in interface VertexModifier<VID>
      Returns:
      the id of the element