public static enum TinkerGraph.DefaultIdManager extends Enum<TinkerGraph.DefaultIdManager> implements TinkerGraph.IdManager
TinkerGraph.IdManager
implementations for common identifier types.Enum Constant and Description |
---|
ANY
Manages identifiers of any type.
|
INTEGER
Manages identifiers of type
Integer . |
LONG
Manages identifiers of type
Long . |
UUID
Manages identifiers of type
UUID . |
Modifier and Type | Method and Description |
---|---|
static TinkerGraph.DefaultIdManager |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TinkerGraph.DefaultIdManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
allow, convert, getNextId
public static final TinkerGraph.DefaultIdManager LONG
public static final TinkerGraph.DefaultIdManager INTEGER
public static final TinkerGraph.DefaultIdManager UUID
public static final TinkerGraph.DefaultIdManager ANY
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.public static TinkerGraph.DefaultIdManager[] values()
for (TinkerGraph.DefaultIdManager c : TinkerGraph.DefaultIdManager.values()) System.out.println(c);
public static TinkerGraph.DefaultIdManager valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013–2016 Apache Software Foundation. All rights reserved.