public abstract class SolrAutoIndex<T extends Element> extends SolrIndex<T> implements OracleAutoIndex<T>
EDGE_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_LONG, TYPE_DT_SERIALIZABLE, TYPE_DT_SHORT, TYPE_DT_STRING, VERSION_PROP, VERTEX_ID_PROP
EDGE_ID_PROP, EDGE_LABEL_PROP, END_NODE_ID_PROP, 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_LONG, TYPE_DT_SERIALIZABLE, TYPE_DT_SHORT, TYPE_DT_STRING, VERTEX_ID_PROP
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this index object.
|
boolean |
containsIndexedKey(String key)
Verifies if the specified key is used in the 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 |
indexElementsPartitioned()
Index elements in a property graph with respect to the current indexed keys
using getPartitioned APIs.
|
void |
put(String key,
Object value,
T element,
org.apache.solr.client.solrj.impl.CloudSolrServer cloudSolrServer)
Indexes an element with respect to the specified key and value using
the given cloudSolrServer object.
|
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, add, appendDatatypesSuffixToKey, appendDatatypesSuffixToValue, buildSearchTerm, buildSearchTerm, clearIndex, commit, commit, count, count, count, dropIndex, get, get, get, get, getCloudSolrServer, getDirectoryName, getDocIdentifier, getGraphName, getIndexClass, getIndexName, getIndexParameters, getOracleIndexParameters, getParameters, getPartitioned, getPartitioned, getPartitioned, getShardsNames, getTotalShards, getTotalShards, put, query, query, remove, remove, remove, remove, 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()
public boolean containsIndexedKey(String key)
containsIndexedKey
in interface OracleAutoIndex<T extends Element>
key
- the key to validate if exists within the automatic index.public 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 indexElementsPartitioned()
indexElementsPartitioned
in interface OracleAutoIndex<T extends Element>
public final void put(String key, Object value, T element, org.apache.solr.client.solrj.impl.CloudSolrServer cloudSolrServer)
put
in class SolrIndex<T extends Element>
key
- the key to index the element by.value
- the value to index the element by.element
- the element to index.cloudSolrServer
- if not null, use the opened CloudSolrServer connection,
this avoids opening/closing a CloudSolrServer connection
at flush time.public void reindexElements()
reindexElements
in interface OracleAutoIndex<T extends Element>
public void reindexElementsPartitioned()
reindexElementsPartitioned
in interface OracleAutoIndex<T extends Element>
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.