public class JanusGraphIndexWrapper extends Object implements JanusGraphIndex
| Constructor and Description |
|---|
JanusGraphIndexWrapper(IndexType index) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBackingIndex()
Returns the name of the backing index.
|
PropertyKey[] |
getFieldKeys()
Returns the indexed keys of this index.
|
Class<? extends org.apache.tinkerpop.gremlin.structure.Element> |
getIndexedElement()
Returns which element type is being indexed by this index (vertex, edge, or property)
|
SchemaStatus |
getIndexStatus(PropertyKey key)
Returns the status of this index with respect to the provided
PropertyKey. |
Parameter[] |
getParametersFor(PropertyKey key)
Returns the parameters associated with an indexed key of this index.
|
JanusGraphSchemaType |
getSchemaTypeConstraint() |
Object |
id()
Returns a unique identifier for this entity.
|
boolean |
isCompositeIndex()
Whether this is a composite index
|
boolean |
isMixedIndex()
Whether this is a mixed index
|
boolean |
isUnique()
Whether this is a unique index, i.e.
|
long |
longId()
Unique identifier for this entity.
|
String |
name()
Returns the name of the index
|
String |
toString() |
public JanusGraphIndexWrapper(IndexType index)
public Object id()
JanusGraphIndexThe unique identifier may only be set when the transaction in which entity is created commits. Some entities are never assigned a unique identifier if they depend on a parent entity.
JanusGraph allocates blocks of identifiers and automatically assigns identifiers to elements
automatically be default. This behavior can be partially overridden by setting
GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID
id in interface JanusGraphIndexpublic long longId()
JanusGraphIndexJanusGraphIndex.id() for the permanent id.longId in interface JanusGraphIndexpublic String name()
JanusGraphIndexname in interface Namifiablename in interface JanusGraphIndexpublic String getBackingIndex()
JanusGraphIndexgetBackingIndex in interface JanusGraphIndexpublic Class<? extends org.apache.tinkerpop.gremlin.structure.Element> getIndexedElement()
JanusGraphIndexgetIndexedElement in interface JanusGraphIndexpublic PropertyKey[] getFieldKeys()
JanusGraphIndexgetFieldKeys in interface JanusGraphIndexpublic Parameter[] getParametersFor(PropertyKey key)
JanusGraphIndexgetParametersFor in interface JanusGraphIndexpublic boolean isUnique()
JanusGraphIndexisUnique in interface JanusGraphIndexpublic SchemaStatus getIndexStatus(PropertyKey key)
JanusGraphIndexPropertyKey.
For composite indexes, the key is ignored and the status of the index as a whole is returned.
For mixed indexes, the status of that particular key within the index is returned.getIndexStatus in interface JanusGraphIndexpublic boolean isCompositeIndex()
JanusGraphIndexisCompositeIndex in interface JanusGraphIndexpublic boolean isMixedIndex()
JanusGraphIndexisMixedIndex in interface JanusGraphIndexpublic JanusGraphSchemaType getSchemaTypeConstraint()
getSchemaTypeConstraint in interface JanusGraphIndexCopyright © 2012–2023. All rights reserved.