
public class OIndexManagerRemote extends OIndexManagerAbstract
classPropertyIndex, CONFIG_INDEXES, defaultClusterName, DICTIONARY_NAME, indexes, lock, manualClusterNamedocument| Constructor and Description |
|---|
OIndexManagerRemote(ODatabaseDocument iDatabase) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
autoRecreateIndexesAfterCrash()
Checks if indexes should be automatically recreated.
|
OIndex<?> |
createIndex(String iName,
String iType,
OIndexDefinition indexDefinition,
int[] clusterIdsToIndex,
OProgressListener progressListener,
ODocument metadata)
Creates a new index with default algorithm.
|
OIndex<?> |
createIndex(String iName,
String iType,
OIndexDefinition iIndexDefinition,
int[] iClusterIdsToIndex,
OProgressListener progressListener,
ODocument metadata,
String engine)
Creates a new index.
|
OIndexManager |
dropIndex(String iIndexName)
Drop index with specified name.
|
protected void |
fromStream() |
protected OIndex<?> |
getRemoteIndexInstance(boolean isMultiValueIndex,
String type,
String name,
String algorithm,
Set<String> clustersToIndex,
OIndexDefinition indexDefinition,
ORID identity,
ODocument configuration) |
protected OIndex<?> |
preProcessBeforeReturn(OIndex<?> index) |
void |
recreateIndexes()
Drops all indexes and creates them from scratch.
|
void |
removeClassPropertyIndex(OIndex<?> idx)
Removes index from class-property map.
|
ODocument |
toStream() |
void |
waitTillIndexRestore()
Blocks current thread till indexes will be restored.
|
acquireExclusiveLock, acquireSharedLock, addClusterToIndex, addIndexInternal, areIndexed, areIndexed, clearMetadata, close, copyPropertyMap, create, existsIndex, flush, getClassAutoShardingIndex, getClassIndex, getClassIndexes, getClassIndexes, getClassInvolvedIndexes, getClassInvolvedIndexes, getClassUniqueIndex, getConfiguration, getDatabase, getDatabaseIfDefined, getDefaultClusterName, getDictionary, getIndex, getIndexes, getServerLocale, load, normalizeFieldNames, releaseExclusiveLock, releaseSharedLock, reload, removeClusterFromIndex, save, setDefaultClusterName, setDirtyfromStream, load, reload, saveequals, getDocument, hashCode, load, load, reload, toStringpublic OIndexManagerRemote(ODatabaseDocument iDatabase)
public OIndex<?> createIndex(String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String engine)
OIndexManageriName - 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.engine - tip to an index factory what algorithm to usepublic OIndex<?> createIndex(String iName, String iType, OIndexDefinition indexDefinition, int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata)
OIndexManageriName - - 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.public OIndexManager dropIndex(String iIndexName)
OIndexManageriIndexName - the name of index to droppublic ODocument toStream()
toStream in class ODocumentWrapperpublic void recreateIndexes()
OIndexManagerpublic void waitTillIndexRestore()
OIndexManagerpublic boolean autoRecreateIndexesAfterCrash()
OIndexManagerpublic void removeClassPropertyIndex(OIndex<?> idx)
OIndexManageridx - index to remove.protected OIndex<?> getRemoteIndexInstance(boolean isMultiValueIndex, String type, String name, String algorithm, Set<String> clustersToIndex, OIndexDefinition indexDefinition, ORID identity, ODocument configuration)
protected void fromStream()
fromStream in class ODocumentWrapperNoClassprotected OIndex<?> preProcessBeforeReturn(OIndex<?> index)
preProcessBeforeReturn in class OIndexManagerAbstractCopyright © 2009–2025 OrientDB. All rights reserved.