
public class OIndexManagerRemote extends OIndexManagerAbstract
indexesdocument| Constructor and Description |
|---|
OIndexManagerRemote(OStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquireExclusiveLock() |
boolean |
autoRecreateIndexesAfterCrash()
Checks if indexes should be automatically recreated.
|
boolean |
autoRecreateIndexesAfterCrash(ODatabaseDocumentInternal database) |
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() |
void |
fromStream(ODocument iDocument) |
protected OIndex<?> |
getRemoteIndexInstance(boolean isMultiValueIndex,
String type,
String name,
String algorithm,
Set<String> clustersToIndex,
OIndexDefinition indexDefinition,
ORID identity,
ODocument configuration) |
protected OStorage |
getStorage() |
OIndex<?> |
preProcessBeforeReturn(ODatabaseDocumentInternal database,
OIndex<?> index) |
void |
recreateIndexes()
Drops all indexes and creates them from scratch.
|
void |
recreateIndexes(ODatabaseDocumentInternal database) |
protected void |
releaseExclusiveLock() |
void |
removeClassPropertyIndex(OIndex<?> idx)
Removes index from class-property map.
|
ODocument |
toStream() |
void |
update(ODocument indexManager) |
void |
waitTillIndexRestore()
Blocks current thread till indexes will be restored.
|
addClusterToIndex, areIndexed, areIndexed, close, create, create, existsIndex, flush, getClassAutoShardingIndex, getClassIndex, getClassIndexes, getClassIndexes, getClassInvolvedIndexes, getClassInvolvedIndexes, getClassRawIndexes, getClassUniqueIndex, getConfiguration, getDatabase, getDefaultClusterName, getDictionary, getIndex, getIndexes, getIndexes, getRawIndex, load, load, reload, removeClusterFromIndex, save, setDefaultClusterNamereload, saveequals, getDocument, hashCode, load, load, reload, toStringpublic OIndexManagerRemote(OStorage storage)
public OIndex<?> createIndex(String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String engine)
OIndexManagerMay require quite a long time if big amount of data should be indexed.
iName - 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 recreateIndexes(ODatabaseDocumentInternal database)
recreateIndexes in class OIndexManagerAbstractpublic void waitTillIndexRestore()
OIndexManagerpublic boolean autoRecreateIndexesAfterCrash(ODatabaseDocumentInternal database)
autoRecreateIndexesAfterCrash in class OIndexManagerAbstractpublic boolean autoRecreateIndexesAfterCrash()
OIndexManagerIMPORTANT! Only for internal usage.
public void removeClassPropertyIndex(OIndex<?> idx)
OIndexManagerIMPORTANT! Only for internal usage.
idx - 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 ODocumentWrapperNoClasspublic OIndex<?> preProcessBeforeReturn(ODatabaseDocumentInternal database, OIndex<?> index)
preProcessBeforeReturn in class OIndexManagerAbstractprotected void acquireExclusiveLock()
acquireExclusiveLock in class OIndexManagerAbstractprotected void releaseExclusiveLock()
releaseExclusiveLock in class OIndexManagerAbstractpublic void fromStream(ODocument iDocument)
fromStream in class ODocumentWrapperNoClasspublic void update(ODocument indexManager)
protected OStorage getStorage()
getStorage in class OIndexManagerAbstractCopyright © 2009–2025 OrientDB. All rights reserved.