Class ElementIdStrategy.Builder
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.ElementIdStrategy.Builder
-
- Enclosing class:
- ElementIdStrategy
public static final class ElementIdStrategy.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementIdStrategy
create()
ElementIdStrategy.Builder
idMaker(Supplier<Object> idMaker)
Creates a new unique identifier for the next createdElement
.ElementIdStrategy.Builder
idPropertyKey(String idPropertyKey)
This key within which to hold the user-specified identifier.
-
-
-
Method Detail
-
idMaker
public ElementIdStrategy.Builder idMaker(Supplier<Object> idMaker)
Creates a new unique identifier for the next createdElement
.
-
idPropertyKey
public ElementIdStrategy.Builder idPropertyKey(String idPropertyKey)
This key within which to hold the user-specified identifier. This field should be indexed by the underlying graph.
-
create
public ElementIdStrategy create()
-
-