Enum IdStrategy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IdStrategy>

    public enum IdStrategy
    extends java.lang.Enum<IdStrategy>
    Indicates if there are graph-wide global IDs for a specific entity type (vertices or edges). The strategy also indicates how those IDs are formed.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      KEYS_AS_IDS
      Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs corresponds to the keys of the entities declared when loading or creating the graph
      NO_IDS
      Indicates that there are no graph-wide global IDs for the entity type (vertices and / or edges)
      PARTITIONED_IDS
      Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are composed of the provider/table name and keys of the entities declared when loading or creating the graph
      UNSTABLE_GENERATED_IDS
      Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are generated by the system, without guarantee of stability: IDs may be different when reloading the graph, or when applying a graph mutation (potentially other cases).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IdStrategy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static IdStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NO_IDS

        public static final IdStrategy NO_IDS
        Indicates that there are no graph-wide global IDs for the entity type (vertices and / or edges)
      • KEYS_AS_IDS

        public static final IdStrategy KEYS_AS_IDS
        Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs corresponds to the keys of the entities declared when loading or creating the graph
      • UNSTABLE_GENERATED_IDS

        public static final IdStrategy UNSTABLE_GENERATED_IDS
        Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are generated by the system, without guarantee of stability: IDs may be different when reloading the graph, or when applying a graph mutation (potentially other cases).
      • PARTITIONED_IDS

        public static final IdStrategy PARTITIONED_IDS
        Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are composed of the provider/table name and keys of the entities declared when loading or creating the graph
    • Method Detail

      • values

        public static IdStrategy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IdStrategy c : IdStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IdStrategy valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null