public class OIndexManagerDistributed extends OIndexManagerShared
classPropertyIndex, CONFIG_INDEXES, defaultClusterName, DICTIONARY_NAME, indexes, manualClusterName
document
Constructor and Description |
---|
OIndexManagerDistributed(OStorage storage) |
Modifier and Type | Method and Description |
---|---|
OIndex |
createIndex(ODatabaseDocumentInternal database,
String iName,
String iType,
OIndexDefinition indexDefinition,
int[] clusterIdsToIndex,
OProgressListener progressListener,
ODocument metadata)
Create a new index with default algorithm.
|
OIndex |
createIndex(ODatabaseDocumentInternal database,
String iName,
String iType,
OIndexDefinition iIndexDefinition,
int[] iClusterIdsToIndex,
OProgressListener progressListener,
ODocument metadata,
String algorithm)
Create a new index.
|
OIndex |
distributedCreateIndex(ODatabaseDocumentInternal database,
String iName,
String iType,
OIndexDefinition iIndexDefinition,
int[] iClusterIdsToIndex,
OProgressListener progressListener,
ODocument metadata,
String engine) |
void |
distributedDropIndex(ODatabaseDocumentInternal database,
String iName) |
void |
dropIndex(ODatabaseDocumentInternal database,
String iIndexName) |
OIndexManagerAbstract |
load(ODatabaseDocumentInternal database) |
void |
sendCommand(ODatabaseDocumentInternal database,
String query) |
autoRecreateIndexesAfterCrash, fromStream, getStorage, preProcessBeforeReturn, recreateIndexes, removeClassPropertyIndex, toNetworkStream, toStream, waitTillIndexRestore
acquireExclusiveLock, addClusterToIndex, areIndexed, areIndexed, close, create, create, existsIndex, getClassAutoShardingIndex, getClassIndex, getClassIndexes, getClassIndexes, getClassInvolvedIndexes, getClassInvolvedIndexes, getClassRawIndexes, getClassUniqueIndex, getConfiguration, getDatabase, getDefaultClusterName, getDictionary, getIndex, getIndexes, getRawIndex, load, releaseExclusiveLock, reload, removeClusterFromIndex, save, setDefaultClusterName
fromStream, reload, save
equals, getDocument, hashCode, load, reload, toString
public OIndexManagerDistributed(OStorage storage)
public OIndexManagerAbstract load(ODatabaseDocumentInternal database)
load
in class OIndexManagerAbstract
public OIndex createIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition indexDefinition, int[] clusterIdsToIndex, OProgressListener progressListener, ODocument metadata)
OIndexManagerShared
createIndex
in class OIndexManagerShared
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 iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String algorithm)
OIndexManagerShared
May require quite a long time if big amount of data should be indexed.
createIndex
in class OIndexManagerShared
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.algorithm
- tip to an index factory what algorithm to usepublic OIndex distributedCreateIndex(ODatabaseDocumentInternal database, String iName, String iType, OIndexDefinition iIndexDefinition, int[] iClusterIdsToIndex, OProgressListener progressListener, ODocument metadata, String engine)
public void dropIndex(ODatabaseDocumentInternal database, String iIndexName)
dropIndex
in class OIndexManagerShared
public void distributedDropIndex(ODatabaseDocumentInternal database, String iName)
public void sendCommand(ODatabaseDocumentInternal database, String query)
Copyright © 2009–2020 OrientDB. All rights reserved.