public abstract class OracleIndexManager
extends java.lang.Object
OraclePropertyGraphBase
object.Modifier and Type | Field and Description |
---|---|
static int |
EDGE_CLASS_ID
An integer constant to denote that the index is associated to edges
|
static int |
VERTEX_CLASS_ID
An integer constant to denote that the index is associated to vertices
|
Constructor and Description |
---|
OracleIndexManager(OraclePropertyGraphBase opg)
Creates a new OracleIndexManager object, handling external indexes associated
to the specified property graph.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAndCloseIndices()
Clear and close all manual and automatic indices defined for the underlying property graph.
|
void |
clearIndices()
Clears all the data of the existing indices (manual and automatic) created on top of the underlying property graph
|
void |
close()
Closes this index manager object.
|
void |
closeIndices()
Closes and commits all opened indices stored in cache.
|
void |
commitIndices()
Commits all open indices.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
containsIndexedKey(java.lang.String key,
java.lang.Class<T> indexClass)
Verifies if the auto index contains the specified index key.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
createIndex(java.lang.String indexName,
java.lang.Class<T> indexClass,
OraclePropertyGraphBase pg,
Parameter... indexParameters)
Generates an index with a particular name, for a particular class, and
of a particular type.
|
void |
disableEdgeAutoIndexer()
Disables the edge auto indexing.
|
void |
disableVertexAutoIndexer()
Disables the vertex auto indexing.
|
void |
dropAllAutoIndices()
Removes all the automatic indices created on top of the underlying property graph
|
void |
dropAllIndices()
Drops all indices handled by this index manager.
|
void |
dropAllManualIndices()
Removes all manual indices created on top of the underlying property graph.
|
void |
dropIndex(java.lang.String indexName)
Drops the specified manual index
|
void |
dropIndex(java.lang.String indexName,
boolean refresh)
Drops the specified manual index
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
dropIndices()
Removes all manual and automatic indexes created on top of the underlying property graph.
|
void |
enableEdgeAutoIndexer()
Enables the edge auto indexing.
|
void |
enableVertexAutoIndexer()
Enables the vertex auto indexing.
|
boolean |
existEdgeIndex(java.lang.String indexName)
Verifies if the index with the specified name already exists for this
property graph as an edge manual index.
|
boolean |
existVertexIndex(java.lang.String indexName)
Verifies if the manual vertex index with the specified name already exists for this
property graph.
|
java.lang.String |
getEdgeAutoIndexName()
Gets the name used for the edge auto index.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
getEdgeIndex(java.lang.String indexName)
Gets the edge manual index associated to the specified index name
|
static <T extends org.apache.tinkerpop.gremlin.structure.Element> |
getEntityTypeAsInt(java.lang.Class<T> indexClass)
Gets the identifier associated to the specified index Class.
|
abstract <T extends org.apache.tinkerpop.gremlin.structure.Element> |
getIndexedKeys(java.lang.String indexName,
java.lang.Class<T> indexClass)
Gets all the property names associated to the specified auto index and stored in the
index meta data table.
|
java.util.Iterator<OracleIndex<? extends org.apache.tinkerpop.gremlin.structure.Element>> |
getIndices()
Gets all the manual indices managed by this index manager
|
java.lang.String |
getVertexAutoIndexName()
Gets the name used for the vertex auto index.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
getVertexIndex(java.lang.String indexName)
Gets the manual vertex index associated to the specified index name
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
indexAlreadyExists(java.lang.String indexName,
java.lang.Class<T> indexClass)
Verifies if the index with the specified name already exists for this
property graph.
|
boolean |
isEdgeAutoIndexerEnabled()
Verifies if the edge auto indexer is enabled.
|
boolean |
isVertexAutoIndexerEnabled()
Verifies if the vertex auto indexer is enabled.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
refreshAllIndicesCache()
Refresh the cache for all auto and manual indices
|
void |
refreshAutoIndices()
Refreshes all automatic indices based to the most up-to-date
state of the graph.
|
void |
refreshEdgeAutoIndexCache()
Refresh the cache for automatic index on edges
|
void |
refreshEdgeIndicesCache()
Refresh the cache for manual indices on edges
|
void |
refreshIndicesCache()
Refresh the index caches associated to this index manager
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
refreshManualIndicesCache()
Refresh the cache for manual indices on vertices
|
void |
refreshVertexAutoIndexCache()
Refresh the cache for automatic index on vertices
|
void |
refreshVertexIndicesCache()
Refresh the cache for manual indices on vertices
|
void |
remove(java.lang.Object element)
Removes the specified element from all the indices handled by this OracleIndex
Manager object.
|
void |
remove(java.lang.Object element,
boolean forceRefresh)
Removes the specified element from all the indices handled by this OracleIndex
Manager object.
|
void |
removePropertyFromIndices(java.lang.String key,
java.lang.Object element)
Removes the property associated to the specified element from all the indices
handled by this OracleIndex Manager.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
startAutoIndexingProperties(java.lang.String[] propertyNames,
java.lang.Class<T> elementClass)
Adds the specified property names to the properties used for auto indexing.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
startAutoIndexingProperty(java.lang.String key,
java.lang.Class<T> elementClass)
Adds the specified key to the properties used for auto indexing.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
stopAutoIndexingProperties(java.lang.String[] propertyNames,
java.lang.Class<T> elementClass)
Removes the specified property names to the properties used for auto indexing.
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
stopAutoIndexingProperty(java.lang.String key,
java.lang.Class<T> elementClass)
Removes the specified key to the properties used for auto indexing.
|
public static final int EDGE_CLASS_ID
public static final int VERTEX_CLASS_ID
public OracleIndexManager(OraclePropertyGraphBase opg)
opg
- a OraclePropertyGraphBase
object.public final void clearAndCloseIndices()
public final void clearIndices()
public void close()
public final void closeIndices()
public void commitIndices()
public final <T extends org.apache.tinkerpop.gremlin.structure.Element> boolean containsIndexedKey(java.lang.String key, java.lang.Class<T> indexClass)
key
- the key to validate.indexClass
- index classpublic final <T extends org.apache.tinkerpop.gremlin.structure.Element> OracleIndex<T> createIndex(java.lang.String indexName, java.lang.Class<T> indexClass, OraclePropertyGraphBase pg, Parameter... indexParameters)
indexName
- the name of the indexindexClass
- the element class that this index is indexing (can be
base class)indexParameters
- a collection of parameters for the underlying index
implementationpublic void disableEdgeAutoIndexer()
public void disableVertexAutoIndexer()
public final void dropAllAutoIndices()
public final void dropAllIndices()
public final void dropAllManualIndices()
public final void dropIndex(java.lang.String indexName)
indexName
- the name of the index to removepublic final void dropIndex(java.lang.String indexName, boolean refresh)
indexName
- the name of the index to removepublic final <T extends org.apache.tinkerpop.gremlin.structure.Element> void dropIndices()
public final void enableEdgeAutoIndexer()
public final void enableVertexAutoIndexer()
public final boolean existEdgeIndex(java.lang.String indexName)
indexName
- the name of the index.public final boolean existVertexIndex(java.lang.String indexName)
indexName
- the name of the index.public final java.lang.String getEdgeAutoIndexName()
public final <T extends org.apache.tinkerpop.gremlin.structure.Element> OracleIndex<T> getEdgeIndex(java.lang.String indexName)
indexName
- the name of the index to obtainOracleIndex
objectpublic static final <T extends org.apache.tinkerpop.gremlin.structure.Element> int getEntityTypeAsInt(java.lang.Class<T> indexClass)
indexClass
- the class associated to this index (Vertex, Edge)public abstract <T extends org.apache.tinkerpop.gremlin.structure.Element> java.util.List<java.lang.String> getIndexedKeys(java.lang.String indexName, java.lang.Class<T> indexClass)
indexName
- the name of the auto index.indexClass
- the class associated to the index (Vertex, Edge)public final java.util.Iterator<OracleIndex<? extends org.apache.tinkerpop.gremlin.structure.Element>> getIndices()
public final java.lang.String getVertexAutoIndexName()
public final <T extends org.apache.tinkerpop.gremlin.structure.Element> OracleIndex<T> getVertexIndex(java.lang.String indexName)
indexName
- the name of the index to obtainOracleIndex
objectpublic final <T extends org.apache.tinkerpop.gremlin.structure.Element> boolean indexAlreadyExists(java.lang.String indexName, java.lang.Class<T> indexClass)
indexName
- the name of the index.public final boolean isEdgeAutoIndexerEnabled()
public final boolean isVertexAutoIndexerEnabled()
public <T extends org.apache.tinkerpop.gremlin.structure.Element> void refreshAllIndicesCache()
public void refreshAutoIndices()
public void refreshEdgeAutoIndexCache()
public void refreshEdgeIndicesCache()
public void refreshIndicesCache()
public <T extends org.apache.tinkerpop.gremlin.structure.Element> void refreshManualIndicesCache()
public void refreshVertexAutoIndexCache()
public void refreshVertexIndicesCache()
public final void remove(java.lang.Object element)
element
- the element to remove.public final void remove(java.lang.Object element, boolean forceRefresh)
element
- the element to remove.public final void removePropertyFromIndices(java.lang.String key, java.lang.Object element)
key
- the key to removeelement
- the element where the K/V pair will be removedpublic final <T extends org.apache.tinkerpop.gremlin.structure.Element> void startAutoIndexingProperties(java.lang.String[] propertyNames, java.lang.Class<T> elementClass)
propertyNames
- the property names which will be used to generate the indexelementClass
- the class of the auto index.public final <T extends org.apache.tinkerpop.gremlin.structure.Element> void startAutoIndexingProperty(java.lang.String key, java.lang.Class<T> elementClass)
key
- the key which will be used to generate the indexelementClass
- the class of the auto index.public final <T extends org.apache.tinkerpop.gremlin.structure.Element> void stopAutoIndexingProperties(java.lang.String[] propertyNames, java.lang.Class<T> elementClass)
propertyNames
- an array of property names to be used to generate the indexelementClass
- the class of the auto index.public <T extends org.apache.tinkerpop.gremlin.structure.Element> void stopAutoIndexingProperty(java.lang.String key, java.lang.Class<T> elementClass)
key
- the key which will be used to generate the indexelementClass
- the class of the auto index.Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.