Class OIndexManagerDistributed
java.lang.Object
com.orientechnologies.orient.core.index.OIndexManagerShared
com.orientechnologies.orient.server.distributed.impl.metadata.OIndexManagerDistributed
- All Implemented Interfaces:
OCloseable,OIndexManagerAbstract
Created by tglman on 23/06/17.
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.index.OIndexManagerShared
classPropertyIndex, defaultClusterName, identity, indexes, lock, manualClusterName, writeLockNestingFields inherited from interface com.orientechnologies.orient.core.index.OIndexManagerAbstract
CONFIG_INDEXES, DICTIONARY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition indexDefinition, int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata) Create a new index with default algorithm.createIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String algorithm) Create a new index.distributedCreateIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String engine) voiddistributedDropIndex(ODatabaseDocumentInternal database, String iName) voiddropIndex(ODatabaseDocumentInternal database, String iIndexName) voidload(ODatabaseDocumentInternal database) voidsendCommand(ODatabaseDocumentInternal database, String query) Methods inherited from class com.orientechnologies.orient.core.index.OIndexManagerShared
acquireExclusiveLock, addClusterToIndex, areIndexed, areIndexed, autoRecreateIndexesAfterCrash, close, create, existsIndex, fromStream, getClassAutoShardingIndex, getClassIndex, getClassIndexes, getClassIndexes, getClassInvolvedIndexes, getClassInvolvedIndexes, getClassRawIndexes, getClassUniqueIndex, getConfiguration, getDefaultClusterName, getDictionary, getDocument, getIndex, getIndexes, getRawIndex, getStorage, preProcessBeforeReturn, recreateIndexes, releaseExclusiveLock, releaseExclusiveLock, reload, removeClassPropertyIndex, removeClusterFromIndex, save, setDefaultClusterName, toNetworkStream, toStream, waitTillIndexRestoreMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.index.OIndexManagerAbstract
create
-
Constructor Details
-
OIndexManagerDistributed
-
-
Method Details
-
load
- Specified by:
loadin interfaceOIndexManagerAbstract- Overrides:
loadin classOIndexManagerShared
-
createIndex
public OIndex createIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition indexDefinition, int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata) Description copied from class:OIndexManagerSharedCreate a new index with default algorithm.- Specified by:
createIndexin interfaceOIndexManagerAbstract- Overrides:
createIndexin classOIndexManagerSharediName- - name of indexiType- - index type. Specified by plugged index factories.indexDefinition- metadata that describes index structureclusterIdsToIndex- ids of clusters that index should track for changes.progressListener- listener to track task progress.metadata- document with additional properties that can be used by index engine.- Returns:
- a newly created index instance
-
createIndex
public OIndex createIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String algorithm) Description copied from class:OIndexManagerSharedCreate a new index.May require quite a long time if big amount of data should be indexed.
- Specified by:
createIndexin interfaceOIndexManagerAbstract- Overrides:
createIndexin classOIndexManagerSharediName- name of indexiType- index type. Specified by plugged index factories.iIndexDefinition- metadata that describes index structureiClusterIdsToIndex- ids of clusters that index should track for changes.progressListener- listener to track task progress.metadata- document with additional properties that can be used by index engine.algorithm- tip to an index factory what algorithm to use- Returns:
- a newly created index instance
-
distributedCreateIndex
public OIndex distributedCreateIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String engine) -
dropIndex
- Specified by:
dropIndexin interfaceOIndexManagerAbstract- Overrides:
dropIndexin classOIndexManagerShared
-
distributedDropIndex
-
sendCommand
-