public class TinkerGraph.TinkerGraphVertexPropertyFeatures extends Object implements Graph.Features.VertexPropertyFeatures
supportsAddProperty, supportsRemoveProperty
FEATURE_ADD_PROPERTY, FEATURE_ANY_IDS, FEATURE_CUSTOM_IDS, FEATURE_NUMERIC_IDS, FEATURE_REMOVE_PROPERTY, FEATURE_STRING_IDS, FEATURE_USER_SUPPLIED_IDS, FEATURE_UUID_IDS
FEATURE_PROPERTIES
FEATURE_BOOLEAN_ARRAY_VALUES, FEATURE_BOOLEAN_VALUES, FEATURE_BYTE_ARRAY_VALUES, FEATURE_BYTE_VALUES, FEATURE_DOUBLE_ARRAY_VALUES, FEATURE_DOUBLE_VALUES, FEATURE_FLOAT_ARRAY_VALUES, FEATURE_FLOAT_VALUES, FEATURE_INTEGER_ARRAY_VALUES, FEATURE_INTEGER_VALUES, FEATURE_LONG_ARRAY_VALUES, FEATURE_LONG_VALUES, FEATURE_MAP_VALUES, FEATURE_MIXED_LIST_VALUES, FEATURE_SERIALIZABLE_VALUES, FEATURE_STRING_ARRAY_VALUES, FEATURE_STRING_VALUES, FEATURE_UNIFORM_LIST_VALUES
Modifier and Type | Method and Description |
---|---|
boolean |
supportsCustomIds()
Determines if an
VertexProperty has a specific custom object as their internal representation. |
boolean |
willAllowId(Object id)
Determines if an identifier will be accepted by the
Graph . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsAddProperty, supportsAnyIds, supportsNumericIds, supportsRemoveProperty, supportsStringIds, supportsUserSuppliedIds, supportsUuidIds
supportsProperties
supportsBooleanArrayValues, supportsBooleanValues, supportsByteArrayValues, supportsByteValues, supportsDoubleArrayValues, supportsDoubleValues, supportsFloatArrayValues, supportsFloatValues, supportsIntegerArrayValues, supportsIntegerValues, supportsLongArrayValues, supportsLongValues, supportsMapValues, supportsMixedListValues, supportsSerializableValues, supportsStringArrayValues, supportsStringValues, supportsUniformListValues
public boolean supportsCustomIds()
Graph.Features.VertexPropertyFeatures
VertexProperty
has a specific custom object as their internal representation.supportsCustomIds
in interface Graph.Features.VertexPropertyFeatures
public boolean willAllowId(Object id)
Graph.Features.VertexPropertyFeatures
Graph
. This check is different than
what identifier internally supports as defined in methods like Graph.Features.VertexPropertyFeatures.supportsNumericIds()
. Those
refer to internal representation of the identifier. A Graph
may accept an identifier that
is not of those types and internally transform it to a native representation.
Note that this method only applies if Graph.Features.VertexPropertyFeatures.supportsUserSuppliedIds()
is true
. Those that
return false
for 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 Graph.Features.VertexPropertyFeatures.supportsUserSuppliedIds()
is false
. If custom identifiers are supported then it will throw an exception. Those that
return true
for Graph.Features.VertexPropertyFeatures.supportsCustomIds()
should override this method. If
Graph.Features.VertexPropertyFeatures.supportsAnyIds()
is true
then 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.willAllowId
in interface Graph.Features.VertexPropertyFeatures
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.