public class OIndexManagerShared extends OIndexManagerAbstract
classPropertyIndex, CONFIG_INDEXES, defaultClusterName, DICTIONARY_NAME, indexes, manualClusterName
document
Constructor and Description |
---|
OIndexManagerShared(OStorage storage) |
acquireExclusiveLock, addClusterToIndex, areIndexed, areIndexed, close, create, create, existsIndex, getClassAutoShardingIndex, getClassIndex, getClassIndexes, getClassIndexes, getClassInvolvedIndexes, getClassInvolvedIndexes, getClassRawIndexes, getClassUniqueIndex, getConfiguration, getDatabase, getDefaultClusterName, getDictionary, getIndex, getIndexes, getRawIndex, load, load, releaseExclusiveLock, reload, removeClusterFromIndex, save, setDefaultClusterName
fromStream, reload, save
equals, getDocument, hashCode, load, reload, toString
public OIndexManagerShared(OStorage storage)
public OIndex createIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition indexDefinition, int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata)
createIndex
in class OIndexManagerAbstract
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(ODatabaseDocumentInternal database, 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.
createIndex
in class OIndexManagerAbstract
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 void dropIndex(ODatabaseDocumentInternal database, String iIndexName)
dropIndex
in class OIndexManagerAbstract
public ODocument toStream()
toStream
in class ODocumentWrapper
public void recreateIndexes(ODatabaseDocumentInternal database)
recreateIndexes
in class OIndexManagerAbstract
public void waitTillIndexRestore()
waitTillIndexRestore
in class OIndexManagerAbstract
public boolean autoRecreateIndexesAfterCrash(ODatabaseDocumentInternal database)
autoRecreateIndexesAfterCrash
in class OIndexManagerAbstract
protected void fromStream()
fromStream
in class ODocumentWrapperNoClass
public void removeClassPropertyIndex(OIndex idx)
removeClassPropertyIndex
in class OIndexManagerAbstract
public ODocument toNetworkStream()
public OIndex preProcessBeforeReturn(ODatabaseDocumentInternal database, OIndex index)
preProcessBeforeReturn
in class OIndexManagerAbstract
protected OStorage getStorage()
getStorage
in class OIndexManagerAbstract
Copyright © 2009–2020 OrientDB. All rights reserved.