
public class OIndexManagerShared extends OIndexManagerAbstract
indexesdocument| Constructor and Description |
|---|
OIndexManagerShared(OStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
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)
Create a new index with default algorithm.
|
OIndex<?> |
createIndex(String iName,
String type,
OIndexDefinition indexDefinition,
int[] clusterIdsToIndex,
OProgressListener progressListener,
ODocument metadata,
String algorithm)
Create a new index.
|
OIndexManager |
dropIndex(String iIndexName)
Drop index with specified name.
|
protected void |
fromStream() |
protected OStorage |
getStorage() |
OIndex<?> |
preProcessBeforeReturn(ODatabaseDocumentInternal database,
OIndex<?> index) |
void |
recreateIndexes()
Drops all indexes and creates them from scratch.
|
void |
recreateIndexes(ODatabaseDocumentInternal database) |
void |
removeClassPropertyIndex(OIndex<?> idx)
Removes index from class-property map.
|
ODocument |
toNetworkStream() |
ODocument |
toStream()
Binds POJO to ODocument.
|
void |
waitTillIndexRestore()
Blocks current thread till indexes will be restored.
|
acquireExclusiveLock, 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, releaseExclusiveLock, reload, removeClusterFromIndex, save, setDefaultClusterNamefromStream, reload, saveequals, getDocument, hashCode, load, load, reload, toStringpublic OIndexManagerShared(OStorage storage)
public OIndex<?> createIndex(String iName, String iType, OIndexDefinition indexDefinition, int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata)
iName - - 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 OIndex<?> createIndex(String iName, String type, OIndexDefinition indexDefinition, int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String algorithm)
May require quite a long time if big amount of data should be indexed.
iName - name of indextype - 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.algorithm - tip to an index factory what algorithm to usepublic OIndexManager dropIndex(String iIndexName)
OIndexManageriIndexName - the name of index to droppublic ODocument toStream()
toStream in class ODocumentWrapperpublic void recreateIndexes(ODatabaseDocumentInternal database)
recreateIndexes in class OIndexManagerAbstractpublic void recreateIndexes()
OIndexManagerpublic void waitTillIndexRestore()
OIndexManagerpublic boolean autoRecreateIndexesAfterCrash(ODatabaseDocumentInternal database)
autoRecreateIndexesAfterCrash in class OIndexManagerAbstractpublic boolean autoRecreateIndexesAfterCrash()
OIndexManagerIMPORTANT! Only for internal usage.
protected void fromStream()
fromStream in class ODocumentWrapperNoClasspublic void removeClassPropertyIndex(OIndex<?> idx)
OIndexManagerIMPORTANT! Only for internal usage.
idx - index to remove.public ODocument toNetworkStream()
public OIndex<?> preProcessBeforeReturn(ODatabaseDocumentInternal database, OIndex<?> index)
preProcessBeforeReturn in class OIndexManagerAbstractprotected OStorage getStorage()
getStorage in class OIndexManagerAbstractCopyright © 2009–2025 OrientDB. All rights reserved.