FEATURE_ADD_EDGES, FEATURE_REMOVE_EDGES, FEATURE_UPSERT
|Modifier and Type||Method and Description|
Determines if an
Determines if an identifier will be accepted by the
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
properties, supportsAddEdges, supportsRemoveEdges, supportsUpsert
public boolean supportsCustomIds()
Elementhas a specific custom object as their internal representation. In other words, if the value returned from
Element.id()is a type defined by the graph implementations, such as OrientDB's
Rid, then this method should be return
true. Note that this feature is most generally used for determining the appropriate tests to execute in the Gremlin Test Suite.
public boolean willAllowId(Object id)
Graph. This check is different than what identifier internally supports as defined in methods like
Graph.Features.ElementFeatures.supportsNumericIds(). Those refer to internal representation of the identifier. A
Graphmay accept an identifier that is not of those types and internally transform it to a native representation. Note that this method only applies if
true. Those that return
falsefor that method can immediately return false for this one as it allows no ids of any type (it generates them all). The default implementation will immediately return
false. If custom identifiers are supported then it will throw an exception. Those that return
Graph.Features.ElementFeatures.supportsCustomIds()should override this method. If
truethen the identifier will immediately be allowed. Finally, if any of the other types are supported, they will be typed checked against the class of the supplied identifier.
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.