public static interface Graph.Features.VertexFeatures extends Graph.Features.ElementFeatures
Vertex
operations.supportsAddProperty, supportsRemoveProperty
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE_ADD_VERTICES |
static String |
FEATURE_META_PROPERTIES |
static String |
FEATURE_MULTI_PROPERTIES |
static String |
FEATURE_REMOVE_VERTICES |
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
Modifier and Type | Method and Description |
---|---|
default VertexProperty.Cardinality |
getCardinality(String key)
Gets the
VertexProperty.Cardinality for a key. |
default Graph.Features.VertexPropertyFeatures |
properties()
Gets features related to "properties" on a
Vertex . |
default boolean |
supportsAddVertices()
Determines if a
Vertex can be added to the Graph . |
default boolean |
supportsMetaProperties()
Determines if a
Vertex can support properties on vertex properties. |
default boolean |
supportsMultiProperties()
Determines if a
Vertex can support multiple properties with the same key. |
default boolean |
supportsRemoveVertices()
Determines if a
Vertex can be removed from the Graph . |
supportsAddProperty, supportsAnyIds, supportsCustomIds, supportsNumericIds, supportsRemoveProperty, supportsStringIds, supportsUserSuppliedIds, supportsUuidIds, willAllowId
static final String FEATURE_ADD_VERTICES
static final String FEATURE_MULTI_PROPERTIES
static final String FEATURE_META_PROPERTIES
static final String FEATURE_REMOVE_VERTICES
default VertexProperty.Cardinality getCardinality(String key)
VertexProperty.Cardinality
for a key. By default, this method will return
VertexProperty.Cardinality.list
. Implementations that employ a schema can consult it to
determine the VertexProperty.Cardinality
. Those that do no have a schema can return their
default VertexProperty.Cardinality
for every key.default boolean supportsAddVertices()
Vertex
can be added to the Graph
.default boolean supportsRemoveVertices()
Vertex
can be removed from the Graph
.default boolean supportsMultiProperties()
Vertex
can support multiple properties with the same key.default boolean supportsMetaProperties()
Vertex
can support properties on vertex properties. It is assumed that a
graph will support all the same data types for meta-properties that are supported for regular
properties.default Graph.Features.VertexPropertyFeatures properties()
Vertex
.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.