public class OIndexManagerRemote extends OIndexManagerAbstract
indexes
document
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, setDefaultClusterName
reload, save
equals, getDocument, hashCode, load, load, reload, toString
public OIndexManagerRemote(OStorage storage)
public OIndex<?> createIndex(String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String engine)
OIndexManager
May 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)
OIndexManager
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 OIndexManager dropIndex(String iIndexName)
OIndexManager
iIndexName
- the name of index to droppublic ODocument toStream()
toStream
in class ODocumentWrapper
public void recreateIndexes()
OIndexManager
public void recreateIndexes(ODatabaseDocumentInternal database)
recreateIndexes
in class OIndexManagerAbstract
public void waitTillIndexRestore()
OIndexManager
public boolean autoRecreateIndexesAfterCrash(ODatabaseDocumentInternal database)
autoRecreateIndexesAfterCrash
in class OIndexManagerAbstract
public boolean autoRecreateIndexesAfterCrash()
OIndexManager
IMPORTANT! Only for internal usage.
public void removeClassPropertyIndex(OIndex<?> idx)
OIndexManager
IMPORTANT! 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 ODocumentWrapperNoClass
public OIndex<?> preProcessBeforeReturn(ODatabaseDocumentInternal database, OIndex<?> index)
preProcessBeforeReturn
in class OIndexManagerAbstract
protected void acquireExclusiveLock()
acquireExclusiveLock
in class OIndexManagerAbstract
protected void releaseExclusiveLock()
releaseExclusiveLock
in class OIndexManagerAbstract
public void fromStream(ODocument iDocument)
fromStream
in class ODocumentWrapperNoClass
public void update(ODocument indexManager)
protected OStorage getStorage()
getStorage
in class OIndexManagerAbstract
Copyright © 2009–2020 OrientDB. All rights reserved.