public abstract class LuceneAutoIndex<T extends Element> extends LuceneIndex<T> implements OracleAutoIndex<T>
EDGE_ID_PROP, EDGE_LABEL_PROP, END_NODE_ID_PROP, m_dtValues, START_NODE_ID_PROP, TYPE_DT_BOOL, TYPE_DT_BYTE, TYPE_DT_CHAR, TYPE_DT_DATE, TYPE_DT_DOUBLE, TYPE_DT_FLOAT, TYPE_DT_INTEGER, TYPE_DT_JSON, TYPE_DT_LONG, TYPE_DT_SERIALIZABLE, TYPE_DT_SHORT, TYPE_DT_SPATIAL, TYPE_DT_STRING, TYPE_DT_URI, VERTEX_ID_PROP| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this index object.
|
boolean |
containsIndexedKey(String key)
Verifies if the given key is already indexed using this automatic index.
|
Set<String> |
getIndexedKeys()
Get the keys associated to this auto index.
|
void |
indexElements()
Index elements in a property graph with respect to the current indexed keys.
|
void |
put(String key,
Object value,
T element)
Indexes an element with respect to the specified key and value.
|
void |
put(String key,
Object value,
T element,
OracleIndexWriter[] indexWriters)
Indexes an element with respect to the specified key and value.
|
void |
reindexElements()
Re-index the elements of the associated property graph based on the
current indexed keys.
|
void |
reindexElementsPartitioned()
Re-index the elements of the associated property graph based on the
current indexed keys using getElementsPartitioned APIs.
|
add, appendDatatypesSuffixToKey, appendDatatypesSuffixToValue, buildSearchTerm, buildSearchTerm, buildSearchTermObject, clearIndex, commit, count, count, count, dropIndex, get, get, get, get, getDirectory, getDirectoryName, getDocIdentifier, getGraphName, getIndexClass, getIndexName, getIndexParameters, getOracleDirectory, getOracleIndexParameters, getOracleSearcherManager, getOracleSearcherManager, getParameters, getPartitioned, getPartitioned, getPartitioned, getSearcherFactory, getTotalShards, isAutoIndex, query, query, remove, remove, remove, remove, removeAll, removeAllequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetadd, buildSearchTerm, buildSearchTerm, clearIndex, commit, count, count, dropIndex, get, get, getDirectoryName, getDocIdentifier, getGraphName, getIndexClass, getOracleIndexParameters, getParameters, getPartitioned, getPartitioned, getPartitioned, getTotalShards, query, remove, removeAllpublic void close()
close in interface OracleIndex<T extends Element>close in class LuceneIndex<T extends Element>public boolean containsIndexedKey(String key)
containsIndexedKey in interface OracleAutoIndex<T extends Element>key - the key to validatepublic final Set<String> getIndexedKeys()
getIndexedKeys in interface OracleAutoIndex<T extends Element>public final void indexElements()
indexElements in interface OracleAutoIndex<T extends Element>public final void put(String key, Object value, T element)
public final void put(String key, Object value, T element, OracleIndexWriter[] indexWriters)
OracleIndexWriter for all the sub-directories in the text
index reduce the number of open/commit/close operations to Apache Lucene.
The user is responsible of calling the commit operation on each index
writer so the changes executed by this operation are persisted into the
text index.put in class LuceneIndex<T extends Element>key - the key to index the element by.value - the value to index the element by.element - the element to index.indexWriters - if not null, the cache of indexWriters to use, this
avoids opening/closing index writers at flush time, but
locks writing operations over the index.public void reindexElements()
reindexElements in interface OracleAutoIndex<T extends Element>public void reindexElementsPartitioned()
reindexElementsPartitioned in interface OracleAutoIndex<T extends Element>Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.