public final class ElementIdStrategy extends AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy> implements TraversalStrategy.DecorationStrategy
UUID
objects.
This behavior can be overridden by setting the ElementIdStrategy.Builder.idMaker(Supplier)
.
Unless otherwise specified the identifier is stored in the __id
property. This can be changed by setting
the ElementIdStrategy.Builder.idPropertyKey(String)
Modifier and Type | Class and Description |
---|---|
static class |
ElementIdStrategy.Builder |
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
Modifier and Type | Field and Description |
---|---|
static String |
ID_MAKER |
static String |
ID_PROPERTY_KEY |
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
static ElementIdStrategy.Builder |
build() |
static ElementIdStrategy |
create(Configuration configuration) |
Configuration |
getConfiguration()
Get the configuration representation of this strategy.
|
Supplier<Object> |
getIdMaker() |
String |
getIdPropertyKey() |
String |
toString() |
equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, applyPrior
public static final String ID_PROPERTY_KEY
public static final String ID_MAKER
public String getIdPropertyKey()
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public static ElementIdStrategy.Builder build()
public String toString()
toString
in class AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy>
public static ElementIdStrategy create(Configuration configuration)
public Configuration getConfiguration()
TraversalStrategy
getConfiguration
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.