public abstract class LuceneAutoIndex<T extends com.tinkerpop.blueprints.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(java.lang.String key)
Verifies if the given key is already indexed using this automatic index.
|
java.util.Set<java.lang.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(java.lang.String key, java.lang.Object value, T element)
Indexes an element with respect to the specified key and value.
|
void |
put(java.lang.String key, java.lang.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, removeAll
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
add, buildSearchTerm, buildSearchTerm, clearIndex, commit, count, count, dropIndex, get, get, getDirectoryName, getDocIdentifier, getGraphName, getIndexClass, getOracleIndexParameters, getParameters, getPartitioned, getPartitioned, getPartitioned, getTotalShards, query, remove, removeAll
public void close()
close
in interface OracleIndex<T extends com.tinkerpop.blueprints.Element>
close
in class LuceneIndex<T extends com.tinkerpop.blueprints.Element>
public boolean containsIndexedKey(java.lang.String key)
containsIndexedKey
in interface OracleAutoIndex<T extends com.tinkerpop.blueprints.Element>
key
- the key to validatepublic final java.util.Set<java.lang.String> getIndexedKeys()
getIndexedKeys
in interface OracleAutoIndex<T extends com.tinkerpop.blueprints.Element>
public final void indexElements()
indexElements
in interface OracleAutoIndex<T extends com.tinkerpop.blueprints.Element>
public final void put(java.lang.String key, java.lang.Object value, T element)
put
in interface com.tinkerpop.blueprints.Index<T extends com.tinkerpop.blueprints.Element>
put
in class LuceneIndex<T extends com.tinkerpop.blueprints.Element>
key
- the key to index the element by.value
- the value to index the element by.element
- the element to index.public final void put(java.lang.String key, java.lang.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 com.tinkerpop.blueprints.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 com.tinkerpop.blueprints.Element>
public void reindexElementsPartitioned()
reindexElementsPartitioned
in interface OracleAutoIndex<T extends com.tinkerpop.blueprints.Element>
Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.