public class OLuceneIndexFactory extends Object implements OIndexFactory, ODatabaseLifecycleListener
ODatabaseLifecycleListener.PRIORITY
Modifier and Type | Field and Description |
---|---|
static String |
LUCENE_ALGORITHM |
Constructor and Description |
---|
OLuceneIndexFactory() |
OLuceneIndexFactory(boolean manual) |
Modifier and Type | Method and Description |
---|---|
OIndexInternal |
createIndex(String name,
OStorage storage,
String indexType,
String algorithm,
String valueContainerAlgorithm,
ODocument metadata,
int version)
Creates an index.
|
OBaseIndexEngine |
createIndexEngine(int indexId,
String algorithm,
String indexName,
Boolean durableInNonTxMode,
OStorage storage,
int version,
int apiVersion,
boolean multiValue,
Map<String,String> engineProperties) |
Set<String> |
getAlgorithms() |
int |
getLastVersion(String algorithm) |
ODatabaseLifecycleListener.PRIORITY |
getPriority() |
Set<String> |
getTypes() |
void |
onClose(ODatabaseInternal db) |
void |
onCreate(ODatabaseInternal db) |
void |
onDrop(ODatabaseInternal db) |
void |
onLocalNodeConfigurationRequest(ODocument iConfiguration)
Event called during the retrieving of distributed configuration, usually at startup and when
the cluster shape changes.
|
void |
onOpen(ODatabaseInternal db) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onCreateClass, onCreateView, onDropClass, onDropView
public static final String LUCENE_ALGORITHM
public OLuceneIndexFactory()
public OLuceneIndexFactory(boolean manual)
public int getLastVersion(String algorithm)
getLastVersion
in interface OIndexFactory
public Set<String> getTypes()
getTypes
in interface OIndexFactory
public Set<String> getAlgorithms()
getAlgorithms
in interface OIndexFactory
public OIndexInternal createIndex(String name, OStorage storage, String indexType, String algorithm, String valueContainerAlgorithm, ODocument metadata, int version) throws OConfigurationException
OIndexFactory
createIndex
in interface OIndexFactory
indexType
- index typeOConfigurationException
- if index creation failedpublic OBaseIndexEngine createIndexEngine(int indexId, String algorithm, String indexName, Boolean durableInNonTxMode, OStorage storage, int version, int apiVersion, boolean multiValue, Map<String,String> engineProperties)
createIndexEngine
in interface OIndexFactory
public ODatabaseLifecycleListener.PRIORITY getPriority()
getPriority
in interface ODatabaseLifecycleListener
public void onCreate(ODatabaseInternal db)
onCreate
in interface ODatabaseLifecycleListener
public void onOpen(ODatabaseInternal db)
onOpen
in interface ODatabaseLifecycleListener
public void onClose(ODatabaseInternal db)
onClose
in interface ODatabaseLifecycleListener
public void onDrop(ODatabaseInternal db)
onDrop
in interface ODatabaseLifecycleListener
public void onLocalNodeConfigurationRequest(ODocument iConfiguration)
ODatabaseLifecycleListener
onLocalNodeConfigurationRequest
in interface ODatabaseLifecycleListener
Copyright © 2009–2020 OrientDB. All rights reserved.