public class RDBMSOracleTextEdgeAutoIndex extends OracleTextAutoIndex<Edge>
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| Constructor and Description |
|---|
RDBMSOracleTextEdgeAutoIndex(String indexName,
OraclePropertyGraph opg,
Parameter[] indexParameters,
boolean erase)
Constructs a new RDBMSOracleTextEdgeAutoIndex object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
count(String key,
Object value,
Class dtClass,
boolean acceptWildcard)
Counts all the matching elements that have a particular key/value property within the index
|
void |
dropIndex()
Clears all data stored in the index.
|
CloseableIterable<Edge> |
get(Object query)
Gets an Iterable object with all the matching elements that match the
given query object
|
CloseableIterable<Edge> |
get(String key,
Object value,
Class dtValue,
boolean acceptWildcard)
Gets all edges indexed by the provided key/value.
|
String |
getDirectoryName()
Gets the directory name for this index.
|
String |
getDocIdentifier()
Get index document's identifier.
|
Set<String> |
getIndexedKeys()
Gets a list of all the indexed keys used for this automatic index.
|
CloseableIterable<Edge>[] |
getPartitioned(Object[] connections,
Object query,
int iStartPartitionId)
Gets an array of
CloseableIterable objects that hold all the edges
with an attribute matching the Query object. |
CloseableIterable<Edge>[] |
getPartitioned(Object[] connections,
String key,
Object value,
Class dtValue,
boolean acceptWildcard,
int iStartPartitionId)
Gets an array of
CloseableIterable objects that hold all the edges
with an attribute matching the Query object. |
int |
getPartitionsNumber()
Gets the number of HASH partitions of the edges table for
the associated property graph.
|
int |
getTotalShards()
Gets the number of partitions in this index.
|
void |
reindexElements(String key)
Re-index the elements of the associated property graph based on the
specified keys.
|
buildSearchTerm, buildSearchTerm, clearIndex, close, containsIndexedKey, count, count, get, get, getGraphName, getIndexClass, getIndexName, getIndexParameters, getOracleIndexParameters, getParameters, getPartitioned, query, queryequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitindexElements, reindexElements, reindexElementsPartitionedadd, commit, remove, removeAllpublic RDBMSOracleTextEdgeAutoIndex(String indexName, OraclePropertyGraph opg, Parameter[] indexParameters, boolean erase)
indexName - the name of the indexopg - an OraclePropertyGraph object.indexParameters - a collection of parameters for the underlying index
implementation.erase - a boolean specifying if the index should be cleared at the
beginning.public long count(String key, Object value, Class dtClass, boolean acceptWildcard)
key - the name of the property. It MUST not be NULL. If the key is not found in the
index, the result will be 0.value - the value object of the property. It can be NULL which will cause all edges with the given key to be returned.dtClass - the class representing the datatype of the property value. This can be
used to cast the property value to a different datatype. For example, if the value is "3.01"
and dtValue is Float.Class, then this value will be treated as a 3.01f.acceptWildcard - specifies if wild cards can be used in the value object.
the indexCloseableIterable object.public void dropIndex()
public CloseableIterable<Edge> get(Object query)
query - a OracleTextQueryObject object.CloseableIterable object.public CloseableIterable<Edge> get(String key, Object value, Class dtValue, boolean acceptWildcard)
key - the key of the indexed edges.value - the value of the indexed edges.dtValue - the class representing the datatype of the property value. This can be
used to cast the property value to a different datatype. For example, if the value is "3.01"
and dtClass is Float.Class, then this value will be treated as a 3.01f.acceptWildcard - specifies if wild cards can be used in the value object.public String getDirectoryName()
public String getDocIdentifier()
public final Set<String> getIndexedKeys()
public CloseableIterable<Edge>[] getPartitioned(Object[] connections, Object query, int iStartPartitionId)
CloseableIterable objects that hold all the edges
with an attribute matching the Query object. Each edge in the CloseableIterable array
uses a separate connection provided to fetch a subset of the results from a table partition.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the partitions in a table with N partitions.
The subset of partitions queried will consist of those partitions with ID value in the range of
[iStartPartitionId, iStartPartitionId - 1 + size of connections array].connections - an array of Connection connections to the Oracle Database where the Oracle Text relies.query - a OracleTextQueryObject object.iStartPartitionId - the ID of the starting partition.CloseableIterable object.public CloseableIterable<Edge>[] getPartitioned(Object[] connections, String key, Object value, Class dtValue, boolean acceptWildcard, int iStartPartitionId)
CloseableIterable objects that hold all the edges
with an attribute matching the Query object. Each edge in the CloseableIterable array
uses a separate connection provided to fetch a subset of the results from a table partition.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the partitions in a table with N partitions.
The subset of partitions queried will consist of those partitions with ID value in the range of
[iStartPartitionId, iStartPartitionId - 1 + size of connections array].connections - an array of Connection connections to the Oracle Database where the Oracle Text relies.key - the key of a propertyvalue - the value object of the property.acceptWildcard - specifies if wild cards can be used in the value object.iStartPartitionId - the ID of the starting partition.dtValue - the class representing the datatype of the property value. This can be
used to cast the property value to a different datatype. For example, if the value is "3.01"
and dtClass is Float.Class, then this value will be treated as a 3.01f.CloseableIterable object.public int getPartitionsNumber()
public int getTotalShards()
public final void reindexElements(String key)
key - the key to use for re-indexing.Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.