public abstract class SolrEdgeAutoIndex extends SolrAutoIndex<com.tinkerpop.blueprints.Edge>
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_JSON, TYPE_DT_LONG, TYPE_DT_SERIALIZABLE, TYPE_DT_SHORT, TYPE_DT_SPATIAL, TYPE_DT_STRING, TYPE_DT_URI, VERSION_PROP, VERTEX_ID_PROP
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 |
---|---|
com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge> |
get(java.lang.Object solrQuery)
Gets an Iterable object with all the matching elements that match the given query object.
|
com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge> |
get(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard)
Gets all edges indexed by the provided key/value.
|
java.lang.String |
getDocIdentifier()
Gets the document's identifier associated to this index.
|
com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge>[] |
getPartitioned(java.lang.Object[] connections, java.lang.Object solrQuery, int startShardId)
Gets an array of
CloseableIterable objects that hold all the elements with an attribute matching the given K/V pair. |
com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge>[] |
getPartitioned(java.lang.Object[] connections, java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, int startShardId)
Gets an array of
CloseableIterable objects that hold all the elements with an attribute matching the given K/V pair. |
close, containsIndexedKey, getIndexedKeys, indexElements, put, reindexElements, reindexElementsPartitioned
add, add, appendDatatypesSuffixToKey, appendDatatypesSuffixToValue, buildSearchTerm, buildSearchTerm, clearIndex, commit, commit, count, count, count, dropIndex, get, get, getCloudSolrServer, getDirectoryName, getGraphName, getIndexClass, getIndexName, getIndexParameters, getOracleIndexParameters, getParameters, 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, getDirectoryName, getGraphName, getIndexClass, getOracleIndexParameters, getParameters, getPartitioned, getTotalShards, query, remove, removeAll
public com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge> get(java.lang.Object solrQuery)
get
in interface OracleIndex<com.tinkerpop.blueprints.Edge>
get
in class SolrIndex<com.tinkerpop.blueprints.Edge>
solrQuery
- a object representing the text query to execute.CloseableIterable
object.public com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge> get(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard)
get
in interface OracleIndex<com.tinkerpop.blueprints.Edge>
get
in class SolrIndex<com.tinkerpop.blueprints.Edge>
key
- the key of the indexed edges.value
- the value of the indexed edges.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 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 final java.lang.String getDocIdentifier()
getDocIdentifier
in interface OracleIndex<com.tinkerpop.blueprints.Edge>
getDocIdentifier
in class SolrIndex<com.tinkerpop.blueprints.Edge>
public com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge>[] getPartitioned(java.lang.Object[] connections, java.lang.Object solrQuery, int startShardId)
CloseableIterable
objects that hold all the elements with an attribute matching the given K/V pair. Each element in the CloseableIterable
array uses a separate connection provided to fetch a subset of the results from a corresponding SolrCloud shard. Note that we assign an integer ID (in the range of [0, N - 1]) to all the shards in a SolrCloud cluster with N shards. The subset of shards queried will consist of those shards with ID value in the range of [startShardId, startShardId - 1 + size of connections array].getPartitioned
in interface OracleIndex<com.tinkerpop.blueprints.Edge>
getPartitioned
in class SolrIndex<com.tinkerpop.blueprints.Edge>
connections
- an array of connections to the SolrCloud. Each element of this array should be of type CloudSolrServer. See SolrIndex.getCloudSolrServer(long)
.solrQuery
- a SolrQuery
object.startShardId
- the ID of the starting shard.CloseableIterable
object.public com.tinkerpop.blueprints.CloseableIterable<com.tinkerpop.blueprints.Edge>[] getPartitioned(java.lang.Object[] connections, java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, int startShardId)
CloseableIterable
objects that hold all the elements with an attribute matching the given K/V pair. Each element in the CloseableIterable
array uses a separate connection provided to fetch a subset of the results from a corresponding SolrCloud shard. Note that we assign an integer ID (in the range of [0, N - 1]) to all the shards in a SolrCloud cluster with N shards. The subset of shards queried will consist of those shards with ID value in the range of [startShardId, startShardId - 1 + size of connections array].getPartitioned
in interface OracleIndex<com.tinkerpop.blueprints.Edge>
getPartitioned
in class SolrIndex<com.tinkerpop.blueprints.Edge>
connections
- an array of connections to the SolrCloud. Each element of this array should be of type CloudSolrServer. See SolrIndex.getCloudSolrServer(long)
.key
- the key of a propertyvalue
- the value object of the property.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 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.startShardId
- the ID of the starting shard.CloseableIterable
object.Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.