Enum Class TinkerGraph.DefaultIdManager

java.lang.Object
java.lang.Enum<TinkerGraph.DefaultIdManager>
org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.DefaultIdManager
All Implemented Interfaces:
Serializable, Comparable<TinkerGraph.DefaultIdManager>, Constable, TinkerGraph.IdManager
Enclosing interface:
TinkerGraph

public static enum TinkerGraph.DefaultIdManager extends Enum<TinkerGraph.DefaultIdManager> implements TinkerGraph.IdManager
A default set of TinkerGraph.IdManager implementations for common identifier types.
  • Enum Constant Details

    • LONG

      public static final TinkerGraph.DefaultIdManager LONG
      Manages identifiers of type Long. Will convert any class that extends from Number to a Long and will also attempt to convert String values
    • INTEGER

      public static final TinkerGraph.DefaultIdManager INTEGER
      Manages identifiers of type Integer. Will convert any class that extends from Number to a Integer and will also attempt to convert String values
    • UUID

      public static final TinkerGraph.DefaultIdManager UUID
      Manages identifiers of type UUID. Will convert String values to UUID.
    • ANY

      public static final TinkerGraph.DefaultIdManager ANY
      Manages identifiers of any type. This represents the default way TinkerGraph has always worked. In other words, there is no identifier conversion so if the identifier of a vertex is a Long, then trying to request it with an Integer will have no effect. Also, like the original TinkerGraph, it will generate Long values for identifiers.
    • STRING

      public static final TinkerGraph.DefaultIdManager STRING
      Manages identifiers of type String.
  • Method Details

    • values

      public static TinkerGraph.DefaultIdManager[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TinkerGraph.DefaultIdManager valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null