public class HBaseLuceneVertexAutoIndex extends LuceneVertexAutoIndex
EDGE_ID_PROP, EDGE_LABEL_PROP, END_NODE_ID_PROP, START_NODE_ID_PROP, TYPE_DT_BOOL, TYPE_DT_DATE, TYPE_DT_DOUBLE, TYPE_DT_FLOAT, TYPE_DT_INTEGER, TYPE_DT_SERIALIZABLE, TYPE_DT_STRING, VERTEX_ID_PROP
Constructor and Description |
---|
HBaseLuceneVertexAutoIndex(String indexName, OraclePropertyGraph oraclePropertyGraph, Parameter<String,Object>[] indexParameters, boolean erase)
Constructs a new HBaseLuceneVertexAutoIndex object.
|
Modifier and Type | Method and Description |
---|---|
void |
closeConnectionsArray()
Closes the connection array.
|
Object[] |
getConnectionsArray()
Gets the connection array.
|
Iterable<Vertex>[] |
getElementsFromPG(String[] keys, Object[] connArray, int iStartSplitId)
Gets an Iterable<Vertex> of vertices from the associated property graph, matching the specified keys.
|
int |
getPartitionsNumber()
Gets the number of partitions of the vertex table for the associated property graph.
|
get, getDocIdentifier, getElementsFromPG, getElementsFromPG, getElementsFromPG, getPartitioned
close, containsIndexedKey, getIndexedKeys, indexElements, indexElementsPartitioned, loadIndexedKeys, put, put, reindexElements, reindexElements, reindexElements, reindexElementsNoPartitioned, reindexElementsPartitioned, reindexElementsPartitioned, reindexElementsPartitioned
add, addToDeleteCache, buildSearchTerm, buildSearchTerm, clearIndex, commit, count, count, count, deleteExistingDirectories, dropIndex, get, get, getDirectory, getDirectoryName, getGraphName, getIndexClass, getIndexName, getIndexParameters, getOracleDirectory, getOracleIndexParameters, getOracleSearcherManager, getParameters, getPartitioned, getSearcherFactory, getTotalShards, isAutoIndex, isDelBatchEmpty, isDelBatchFull, isUpdatesBatchEmpty, isUpdatesBatchFull, query, query, remove, remove, remove, remove, removeAll, removeAll
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsIndexedKey, get, getIndexedKeys, indexElements, indexElementsPartitioned, loadIndexedKeys, reindexElements, reindexElements, reindexElements, reindexElementsNoPartitioned, reindexElementsPartitioned, reindexElementsPartitioned, reindexElementsPartitioned
add, buildSearchTerm, buildSearchTerm, clearIndex, close, commit, count, count, dropIndex, getDirectoryName, getGraphName, getIndexClass, getOracleIndexParameters, getParameters, getPartitioned, getTotalShards, isDelBatchEmpty, isDelBatchFull, isUpdatesBatchEmpty, isUpdatesBatchFull, query, refreshIndex, remove, removeAll
public HBaseLuceneVertexAutoIndex(String indexName, OraclePropertyGraph oraclePropertyGraph, Parameter<String,Object>[] indexParameters, boolean erase)
indexName
- the name of the indexoraclePropertyGraph
- 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 void closeConnectionsArray()
closeConnectionsArray
in interface OracleAutoIndex<Vertex>
closeConnectionsArray
in class LuceneAutoIndex<Vertex>
public Object[] getConnectionsArray() throws IOException
getConnectionsArray
in interface OracleAutoIndex<Vertex>
getConnectionsArray
in class LuceneAutoIndex<Vertex>
IOException
public Iterable<Vertex>[] getElementsFromPG(String[] keys, Object[] connArray, int iStartSplitId)
getElementsFromPG
in interface OracleAutoIndex<Vertex>
getElementsFromPG
in class LuceneAutoIndex<Vertex>
keys
- a list of the keys to be queried over the property graph.connArray
- a Connection
array used for concurrent querying inside the Oracle property graph. Each element of this array must be an instance of HConnectioniStartSplitId
- the starting split used for querying.public int getPartitionsNumber()
getPartitionsNumber
in interface OracleAutoIndex<Vertex>
getPartitionsNumber
in class LuceneAutoIndex<Vertex>
Copyright © 2015 Oracle and/or its affiliates. All Rights Reserved.