public class OraclePropertyGraph extends OraclePropertyGraphBase
OraclePropertyGraphBase.CacheStatus, OraclePropertyGraphBase.OptimizationFlagGraph.Exceptions, Graph.Features, Graph.Hidden, Graph.OptIn, Graph.OptIns, Graph.OptOut, Graph.OptOuts, Graph.VariablesOraclePropertyGraphConstants.QueueActionCSV_DATE_TIME_FORMATS, CSV_DT_KEYWORD_BOOLEAN, CSV_DT_KEYWORD_BYTE, CSV_DT_KEYWORD_CHAR, CSV_DT_KEYWORD_DATE, CSV_DT_KEYWORD_DOUBLE, CSV_DT_KEYWORD_FLOAT, CSV_DT_KEYWORD_INTEGER, CSV_DT_KEYWORD_JSON, CSV_DT_KEYWORD_LONG, CSV_DT_KEYWORD_RDF, CSV_DT_KEYWORD_SHORT, CSV_DT_KEYWORD_SPATIAL, CSV_DT_KEYWORD_STRING, OPG_DATETIME_FORMATTYPE_DT_BOOL, TYPE_DT_BYTE, TYPE_DT_CHAR, TYPE_DT_DATE, TYPE_DT_DOUBLE, TYPE_DT_EMPTY, TYPE_DT_FLOAT, TYPE_DT_INTEGER, TYPE_DT_JSON, TYPE_DT_LONG, TYPE_DT_SERI, TYPE_DT_SHORT, TYPE_DT_SPATIAL, TYPE_DT_STRING, TYPE_DT_URIMG_ERR_USER_REQ_OP_CANCEL, MSG_E_AUTO_IDX_MUST_SOLR_OR_LUCENE, MSG_E_AUTO_IDX_NOT_EXIST, MSG_ERR_ARG_CANNOT_BE_NULL, MSG_ERR_ID_CANNOT_BE_NULL, MSG_ERR_NO_ELEM_TO_BE_CONSUMED, MSG_ERR_NO_OP_SUPPORTED, MSG_IDX_KEY_NOT_NULL, MSG_IDX_KEYS_NOT_NULL, MSG_TXT_IDX_NOT_FOUND, MSG_V_AUTO_IDX_MUST_SOLR_OR_LUCENE, MSG_V_AUTO_IDX_NOT_EXISTERR_ARG_CANNOT_BE_NULL, ERR_CODE_NOT_IN_LIST, ERR_DOP_CONSTRAINT, ERR_E_AUTO_IDX_MUST_SOLR_OR_LUCENE, ERR_E_AUTO_IDX_NOT_EXIST, ERR_E_DS_MUSTBE_FILE_OR_IS, ERR_E_MAX_LINE_CONSTRAINT, ERR_EDGE_DIR_NOT_BOTH, ERR_EDGE_WORK_TBL_NOT_CLEAN, ERR_GRAPH_NAME_CANT_BENULL, ERR_HIT_EXCEPTION, ERR_HIT_INTERRUPT, ERR_HIT_IO, ERR_HIT_OPGE, ERR_HIT_PARSEE, ERR_ID_CANNOT_BE_NULL, ERR_IDX_KEY_CANNOT_BE_NULL, ERR_IDX_KEY_NOT_NULL, ERR_IDX_KEYS_NOT_NULL, ERR_IN_DS_EDGE_CANTBE_NULL, ERR_IN_DS_VERT_CANTBE_NULL, ERR_IN_E_FLAT_DOESNT_EXIST, ERR_IN_V_FLAT_DOESNT_EXIST, ERR_INPUT_LIST_NOT_NULL, ERR_INPUT_NOT_NULL, ERR_INVALID_CHANGE_ACTION, ERR_INVALID_NUM_FIELDS, ERR_INVALID_NUM_NOARG, ERR_INVALID_NUMBER, ERR_INVALID_VAL, ERR_KEY_CANNOT_BE_ID, ERR_KEY_CANNOT_BE_NULL, ERR_KEY_CANNOT_BE_NULL_EMPTY, ERR_KEY_NOT_SET_TO, ERR_NO_ELEM_TO_BE_CONSUMED, ERR_NO_OP_SUPPORTED, ERR_NOT_IMPLEMENTED_YET, ERR_NOT_ORACLE_V_E, ERR_NUM_PART_CONSTRAINT, ERR_OFFSET_CONSTRAINT, ERR_OFFSET_E_MUST_BE_POS, ERR_OFFSET_V_MUST_BE_POS, ERR_OPT_FLAG_EDGE_INVALID, ERR_OPT_FLAG_VERT_INVALID, ERR_ORA_TEXT_INVALID_KEY, ERR_ORA_TEXT_ONLY_AUTO, ERR_OUTPUT_LIST_NOT_NULL, ERR_PG_ALREADY_EXISTS, ERR_PG_NOT_EMPTY, ERR_PG_NOT_NULL, ERR_SIZE_MUST_BE_POS, ERR_TIMEOUT_TAB_CREATION, ERR_TXT_IDX_NOT_FOUND, ERR_TYPE_ID_NOT_RECO, ERR_UNSUPPORTED_VAL_TYP, ERR_USER_REQ_OP_CANCEL, ERR_V_AUTO_IDX_MUST_SOLR_OR_LUCENE, ERR_V_AUTO_IDX_NOT_EXIST, ERR_V_DS_MUSTBE_FILE_OR_IS, ERR_V_MAX_LINE_CONSTRAINT, ERR_VALUE_CANNOT_BE_NULL, INFO_EMP_K_NO_P_VAL, INFO_NUL_K_NO_P_VAL| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeToAllEdges(EdgeOpCallback eoc,
boolean skipStoreToCache,
int dop,
ProgressListener pl)
Adds an attribute to all edges based on the specified
EdgeOpCallback. |
void |
addAttributeToAllVertices(VertexOpCallback voc,
boolean skipStoreToCache,
int dop,
ProgressListener pl)
Adds an attribute to all vertices based on the specified
VertexOpCallback. |
com.tinkerpop.blueprints.Edge |
addEdge(java.lang.Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
java.lang.String label)
This method adds an edge to the graph instance.
|
com.tinkerpop.blueprints.Vertex |
addVertex(java.lang.Object id)
This method adds an vertex to the graph instance.
|
void |
clearCache()
This method clear the Vertex and Edge caches associated to this
property graph instance.
|
void |
clearRepository()
This method removes all vertices and edges from this property graph instance.
|
void |
clearRepository(boolean removeUsingIterators)
This method removes all vertices and edges from this property graph instance.
|
void |
commit()
Commit changes done to this property graph instace.
|
static byte[] |
concatenate(byte[] ba1,
byte[] ba2)
This method returns a byte array that concatenates the two given byte array
If one of the argument is null, the return value will be the other argument.
|
static byte[] |
concatenate(byte[] ba1,
byte[] ba2,
byte[] ba3)
This method returns a byte array that concatenates the two given byte array
If one of the argument is null, the return value will be the other argument.
|
long |
countEdges(int dop,
ProgressListener pl)
Counts all Edges using parallel scan and the specified DOP.
|
long |
countVertices(int dop,
ProgressListener pl)
Counts all vertices using parallel scans and the specified DOP.
|
void |
dispose()
Closes the graph without commiting any changes
|
void |
dropIndexTable()
This method removes all indices meta data from this property graph instance.
|
void |
flushHbaseCommits()
Flush HBase tables so property graph changes are commited into Apache HBase.
|
java.lang.String |
getCompression()
Get the type of compression used in the property graph tables
|
org.apache.hadoop.hbase.io.compress.Compression.Algorithm |
getCompressionAlgorithm(java.lang.String compress)
An utility to get a Compression Algorithm based on the specified string
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
This method returns the underlying Configuration instance used for HBase
|
org.apache.hadoop.hbase.client.Connection |
getConnection()
Gets the underlying connection for this property graph
|
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding |
getDataBlockEncoding()
Gets the data block encoding algorithm used in block cache and optionally
on disk for all property graph tables
|
OracleEdge |
getEdge(java.lang.Object id)
Return the edge referenced by the object identifier.
|
int |
getEdgeBlockCacheSize()
Gets the size of the block cache (in bytes) associated to the
edge table
|
int |
getEdgeInitialNumRegions()
Get the initial number of regions defined for the Apache HBase Edge tables associated
to this property graph.
|
OracleEdgeBase |
getEdgeInstance(java.lang.Long eid,
boolean bCreateIfAbsentFromCache,
boolean bSkipStoreToCache)
Returns an instance of OracleEdgeBase.
|
OracleEdgeBase |
getEdgeInstance(OracleVertexBase outVertex,
OracleVertexBase inVertex,
java.lang.String edgeLabel,
java.lang.Long eid,
boolean bCreateIfAbsentFromCache,
boolean bSkipStoreToCache)
Returns an instance of OracleEdgeBase.
|
int |
getEdgePropertyNames(int dop,
int timeout,
java.util.Map<java.lang.String,java.lang.Class> propertyNames,
ProgressListener pl)
Gets the property names of all edges using parallel scans and the specified DOP.
|
int |
getEdgePropertyNames(int dop,
int timeout,
java.util.Set<java.lang.String> propertyNames,
ProgressListener pl)
Gets the property names of all edges using parallel scans and the specified DOP.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag)
Return an
Iterable to all the edges in the graph that have any of the specified keys and
satisfy the specified edge filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag,
int dop)
Return an
Iterable to all the edges in the graph that have any of the specified keys and
satisfy the specified edge filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String key,
java.lang.Object value,
java.lang.Class dtClass,
boolean acceptWildcard,
boolean preferredLuceneQuery)
Return an iterable to all matching edges that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesFromKey(org.apache.hadoop.hbase.client.Connection[] conns,
boolean skipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Gets an array of
Iterable objects that hold all the edges in the graph
that have any of the specified keys and satisfy the specified edge filter callback
by executing a lookup over the secondary index table. |
int |
getEdgeSndIndexBlockCacheSize()
Gets the size of the block cache (in bytes) associated to the secondary index
edge table
|
org.apache.hadoop.hbase.TableName |
getEdgeSndIndexTabName()
Get the name of the Apache HBase table used to store secondary indexes on edges in this property
graph.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID)
Gets an array of
Iterable objects that hold all the edges in the graph. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
boolean bClonedGraph)
Gets an array of
Iterable objects that hold all the edges in the graph. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
EdgeFilterCallback efc)
Gets an array of
Iterable objects that hold all the edges in the graph that
satisfy the specified edge filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag)
Gets an array of
Iterable objects that hold all the edges in the graph that
satisfy the specified edge filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
OraclePropertyGraphBase.OptimizationFlag flag)
Gets an array of
Iterable objects that hold all the edges in the graph. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key)
Gets an array of
Iterable objects that hold all the edges in the
graph that have a particular key. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Gets an array of
Iterable objects that hold all the edges in the graph
that have any of the specified keys. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bClonedGraph,
EdgeFilterCallback efc)
Gets an array of
Iterable objects that hold all the edges in the graph
that have any of the specified keys and satisfy the specified edge filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bClonedGraph,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag)
Gets an array of
Iterable objects that hold all the edges in the graph
that have any of the specified keys and satisfy the specified edge filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] |
getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key,
boolean bClonedGraph)
Gets an array of
Iterable objects that hold all the edges in the
graph that have a particular key. |
java.util.Set<org.apache.hadoop.hbase.client.RegionInfo> |
getEdgeTableRegionsInfo()
Gets the information of all HBase regions of the edge table
|
int |
getEdgeTableSplits()
Get the number of Edge table splits based on the current number of splits
per region associated to this graph and the number of regions in the edge
table.
|
org.apache.hadoop.hbase.TableName |
getEdgeTabName()
Get the name of the Apache HBase table used to store edges in this property
graph.
|
java.lang.Iterable<java.util.Map.Entry<java.lang.Object,java.lang.Object>> |
getElementsProperties(java.lang.Object[] ids,
java.lang.String propertyName,
int dop,
java.lang.Class<? extends com.tinkerpop.blueprints.Element> elementClass) |
com.tinkerpop.blueprints.Features |
getFeatures()
Gets the particular features of the graph implementation for Tinkerpop 2.3
|
java.lang.String |
getGraphName()
This method returns the name of this property graph instance
|
static org.apache.hadoop.conf.Configuration |
getHbaseConfiguration(oracle.pgx.config.PgHbaseGraphConfig config)
Gets a HBase configuration from a PgHbaseGraphConfig object
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
int initialNumRegions)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
int initialNumRegions,
int splitsPerRegion)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
int initialNumRegions,
int splitsPerRegion,
int blockCacheSize)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
java.lang.String compress,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dbe,
int splitsPerRegion,
int blockCacheSize,
int initialVertexNumRegions,
int initialEdgeNumRegions)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
java.lang.String compress,
int initialNumRegions)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
java.lang.String compress,
int initialNumRegions,
int splitsPerRegion)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
java.lang.String compress,
int initialNumRegions,
int splitsPerRegion,
int blockCacheSize)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
java.lang.String compress,
int splitsPerRegion,
int blockCacheSize,
int initialVertexNumRegions,
int initialEdgeNumRegions)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(oracle.pgx.config.PgHbaseGraphConfig config)
Returns an instance of OraclePropertyGraph using a PGX PgHbaseGraphConfig
object.
|
static OraclePropertyGraph |
getInstance(oracle.pgx.config.PgHbaseGraphConfig config,
long maxRowSize)
Returns an instance of OraclePropertyGraph using a PGX PgHbaseGraphConfig
object.
|
static OraclePropertyGraph |
getInstanceWithSplits(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Connection hconn,
java.lang.String szGraphName,
int splitsPerRegion)
Returns an instance of OraclePropertyGraph using the Apache HBase connection
and graph name provided and the specified number of splits per region.
|
java.util.Set<java.lang.Long> |
getInvalidEdgeIDSet(int dop,
ProgressListener pl)
Gets a set of invalid edges that are stored in the property graph.
|
long |
getMaxEdgeID(int dop,
ProgressListener pl)
Get the maximum edge ID using parallel scan and the specified DOP.
|
long |
getMaxVertexID(int dop,
ProgressListener pl)
Get maximum vertex ID using parallel scans and the specified DOP.
|
long |
getMinEdgeID(int dop,
ProgressListener pl)
Get the minimum edge ID using parallel scan with dop threads
|
long |
getMinVertexID(int dop,
ProgressListener pl)
Get minimum vertex ID using parallel scans and the specified DOP.
|
int |
getNumSplitsPerRegion()
Get the number of splits per region to use when scanning vertices/edges
|
long |
getOperationQueueSize()
Get the size of the operation queue
|
HBaseIndexManager |
getOracleIndexManager()
Gets the OracleIndexManager object associated to this property graph instance.
|
static int |
getSaltSize()
Gets the salt size
|
int |
getScanCachingSize()
Get the caching size used in Scan operations
|
int |
getSecondaryIndexNumBuckets()
Return the number of buckets used to store secondary index data into the
vertex/edge secondary index tables
|
int |
getTextIdxMetadataBlockCacheSize()
Gets the size of the block cache (in bytes) associated to the Lucene index table
|
org.apache.hadoop.hbase.TableName |
getTextIdxMetadataTabName()
Get the name of the Apache HBase table used to store index metadata in this property
graph.
|
OracleVertex |
getVertex(java.lang.Object id)
Return the vertex referenced by the object identifier.
|
int |
getVertexBlockCacheSize()
Gets the size of the block cache (in bytes) associated to the
vertex table
|
java.util.Set<java.lang.Long> |
getVertexIDSet(int dop,
ProgressListener pl)
Gets a set of Vertex IDs that are stored in the property graph
|
int |
getVertexInitialNumRegions()
Get the initial number of regions defined for the Apache HBase Vertex tables associated
to this property graph.
|
OracleVertexBase |
getVertexInstance(java.lang.Long vid,
boolean bCreateIfAbsentFromCache,
boolean bSkipStoreToCache)
Returns an instance of OracleVertexBase.
|
int |
getVertexPropertyNames(int dop,
int timeout,
java.util.Map<java.lang.String,java.lang.Class> propertyNames,
ProgressListener pl)
Gets the property names of all vertices using parallel scans and the specified DOP.
|
int |
getVertexPropertyNames(int dop,
int timeout,
java.util.Set<java.lang.String> propertyNames,
ProgressListener pl)
Gets the property names of all vertices using parallel scans and the specified DOP.
|
int |
getVertexSndIndexBlockCacheSize()
Gets the size of the block cache (in bytes) associated to the secondary index
vertex table
|
org.apache.hadoop.hbase.TableName |
getVertexSndIndexTabName()
Get the name of the Apache HBase table used to store secondary indexes on vertices in this property
graph.
|
java.util.Set<org.apache.hadoop.hbase.client.RegionInfo> |
getVertexTableRegionsInfo()
Gets the information of all HBase regions of the vertex table
|
int |
getVertexTableSplits()
Get the number of Vertex table splits based on the current number of splits
per region associated to this graph and the number of regions in the vertex
table.
|
org.apache.hadoop.hbase.TableName |
getVertexTabName()
Get the name of the Apache HBase table used to store vertices in this property
graph.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices()
Return an iterable to all the vertices in the graph.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag)
Return an
Iterable to all the vertices in the graph that have any of the specified keys and
satisfy the specified vertex filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag,
int dop)
Return an
Iterable to all the vertices in the graph that have any of the specified keys and
satisfy the specified vertex filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String key,
java.lang.Object value,
java.lang.Class dtClass,
boolean acceptWildcard,
boolean preferredLuceneQuery)
Return an iterable to all matching vertices that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesFromKey(org.apache.hadoop.hbase.client.Connection[] conns,
boolean skipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Gets an array of
Iterable objects that hold all the vertices in the graph
that have any of the specified keys and satisfy the specified vertex filter callback
by executing a lookup over the secondary index table. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID)
Gets an array of
Iterable objects that hold all the vertices in the graph. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
boolean bClonedGraph)
Gets an array of
Iterable objects that hold all the vertices in the graph. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
OraclePropertyGraphBase.OptimizationFlag flag)
Gets an array of
Iterable objects that hold all the vertices in the graph. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key)
Gets an array of
Iterable objects that hold all the vertices in the
graph that have a particular key. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Gets an array of
Iterable objects that hold all the vertices in the graph
that have any of the specified keys. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bCloneGraph,
VertexFilterCallback vfc)
Gets an array of
Iterable objects that hold all the vertices in the graph
that have any of the specified keys and satisfy the specified vertex filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bCloneGraph,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag)
Gets an array of
Iterable objects that hold all the vertices in the graph
that have any of the specified keys and satisfy the specified vertex filter callback. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key,
boolean bCloneGraph)
Gets an array of
Iterable objects that hold all the vertices in the
graph that have a particular key. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] |
getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag)
Gets an array of
Iterable objects that hold all the vertices in the graph that
satisfy the specified vertex filter callback. |
static org.apache.hadoop.conf.Configuration |
prepareSecureConfig(org.apache.hadoop.conf.Configuration config,
java.lang.String hbaseSecAuth,
java.lang.String hadoopSecAuth,
java.lang.String hmKerberosPrincipal,
java.lang.String rsKerberosPrincipal,
java.lang.String userPrincipal,
java.lang.String keytab)
Prepares the Apache HBase configuration object to work with HBase secure cluster
|
static void |
quietlyClose(org.apache.hadoop.hbase.client.Table htable)
Quietly close the specified Table object.
|
void |
rebuildEdgeSecondaryIndexTable()
Rebuilds the secondary index on edges.
|
void |
rebuildEdgeSecondaryIndexTable(int dop)
Rebuilds the secondary index on edges.
|
void |
rebuildVertexSecondaryIndexTable()
Rebuilds the secondary index on vertices.
|
void |
rebuildVertexSecondaryIndexTable(int dop)
Rebuilds the secondary index on edges.
|
void |
removeAttributeFromAllEdges(EdgeOpCallback eoc,
boolean skipStoreToCache,
int dop,
ProgressListener pl)
Removes an attribute from all edges based on the specified
EdgeOpCallback. |
void |
removeAttributeFromAllVertices(VertexOpCallback voc,
boolean skipStoreToCache,
int dop,
ProgressListener pl)
Removes an attribute from all vertices based on the specified
VertexOpCallback. |
void |
removeEdge(com.tinkerpop.blueprints.Edge edge)
Remove the provided edge from the graph
|
void |
removeVertex(com.tinkerpop.blueprints.Vertex vertex)
Remove the provided vertex from the graph
|
static byte[] |
saltEdge(byte[] ba)
Salts an edge ID represented as a byte array
|
static byte[] |
saltVertex(byte[] ba)
Salts a vertex ID represented as a byte array
|
void |
setCompression(java.lang.String compress)
Set the type of compression used in the property graph tables.
|
void |
setDataBlockEncoding(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dbe)
Set the data block encoding used in the property graph tables.
|
void |
setEdgeBlockCacheSize(int blockCSize)
Set the size of the block cache (in bytes) associated to the edge table
This is a meta data operation, so changes to this setting will show after
clearing the repository and recreating the edge tables.
|
void |
setEdgeInitialNumRegions(int numRegions)
Set the initial number of regions defined for the Apache HBase edge tables associated
to this property graph.
|
void |
setEdgeSndIndexBlockCacheSize(int blockCSize)
Set the size of the block cache (in bytes) associated to the edge secondary table
This is a meta data operation, so changes to this setting will show after
clearing the repository and recreating the edge tables.
|
void |
setInitialNumRegions(int numRegions)
Set the initial number of regions defined for the Apache HBase tables associated
to this property graph.
|
void |
setNumSplitsPerRegion(int iNumSplitsPerRegion)
Set the number of splits per region to use when scanning vertices/edges
|
void |
setScanCachingSize(int iScanCachingSize)
Set the caching size used in Scan operations
|
void |
setTextIdxMetadataBlockCacheSize(int blockCSize)
Set the size of the block cache (in bytes) associated to the Lucene index table
This is a meta data operation, so changes to this setting will show after
clearing the repository and recreating the lucene tables.
|
void |
setVertexBlockCacheSize(int blockCSize)
Set the size of the block cache (in bytes) associated to the vertex table
|
void |
setVertexInitialNumRegions(int numRegions)
Set the initial number of regions defined for the Apache HBase Vertex tables associated
to this property graph.
|
void |
setVertexSndIndexBlockCacheSize(int blockCSize)
Set the size of the block cache (in bytes) associated to the vertex secondary table
This is a meta data operation, so changes to this setting will show after
clearing the repository and recreating the vertex tables.
|
void |
shutdown()
A shutdown function is required to properly close the graph.
|
java.lang.String |
toString()
Returns a very succinct String representation of this Graph
instance
|
addAttributeToAllEdges, addAttributeToAllEdges, addAttributeToAllVertices, addAttributeToAllVertices, addEdge, addVertex, addVertex, close, commitIndices, compute, compute, configuration, countEdges, countEdges, countVertices, countVertices, createIndex, createKeyIndex, createKeyIndex, createKeyIndex, dropAllAutoIndices, dropAllIndices, dropAllManualIndices, dropIndex, dropKeyIndex, dropKeyIndex, dropKeyIndex, edges, features, getAdjacentEdgesFromVertices, getAdjacentEdgesFromVertices, getAutoIndex, getBatchSize, getCacheStatus, getConfig, getDatatypeClassFromValueObjForTextIndex, getDefaultEdgeOptFlag, getDefaultIndexParameters, getDefaultVertexOptFlag, getEdgeFilterCallback, getEdgePropertyNames, getEdgePropertyNames, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdgesByIds, getEdgesByIds, getEdgesUsingTextSearch, getElementsProperties, getIndex, getIndexedKeys, getIndexParameters, getIndices, getInvalidEdgeIDSet, getInvalidEdgeIDSet, getJustEdgeIdOptFlag, getJustVertexIdOptFlag, getMaxEdgeID, getMaxEdgeID, getMaxVertexID, getMaxVertexID, getMinEdgeID, getMinEdgeID, getMinVertexID, getMinVertexID, getProgressListener, getQueueSize, getShortestPath, getShortestPath, getSimpleDateFormat, getStringForObj, getTextIndexDirectoryPrefix, getVertexFilterCallback, getVertexIDSet, getVertexIDSet, getVertexPropertyNames, getVertexPropertyNames, getVertices, getVertices, getVertices, getVertices, getVertices, getVertices, getVertices, getVerticesByIds, getVerticesByIds, getVerticesUsingTextSearch, io, isBuiltinElementsCacheDisabled, isDisposed, isEdgeAutoIndexEnabled, isEmpty, isShutdown, isTransientPropertyGraphInstance, isVertexAutoIndexEnabled, query, refreshAutoIndices, removeAttributeFromAllEdges, removeAttributeFromAllEdges, removeAttributeFromAllVertices, removeAttributeFromAllVertices, rollback, serializableToStr, setBatchSize, setCacheStatus, setDefaultEdgeOptFlag, setDefaultIndexParameters, setDefaultVertexOptFlag, setEdgeFilterCallback, setProgressListener, setQueueSize, setSolrJavaBinFormat, setTransientPropertyGraphInstance, setVertexFilterCallback, startTransaction, stopTransaction, strToSerializable, sum, traversal, traversal, tx, useSolrJavaBinFormat, variables, verticespublic void addAttributeToAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop, ProgressListener pl)
EdgeOpCallback.addAttributeToAllEdges in class OraclePropertyGraphBaseeoc - an EdgeOpCallback object.skipStoreToCache - if true, the edges instances will not be
stored into the cache.dop - a positive integer defining the number of threads to use when
parallel processing the edges.pl - a ProgressListener object.public void addAttributeToAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop, ProgressListener pl)
VertexOpCallback.addAttributeToAllVertices in class OraclePropertyGraphBasevoc - a VertexOpCallback object.skipStoreToCache - if true, the vertices instances will not be
stored into the cache.dop - a positive integer defining the number of threads to use when
parallel processing the vertices.pl - a ProgressListener object.public com.tinkerpop.blueprints.Edge addEdge(java.lang.Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
java.lang.String label)
addEdge in interface com.tinkerpop.blueprints.GraphaddEdge in class OraclePropertyGraphBaseid - the id of the vertexoutVertex - has to be of type OracleVertexinVertex - has to be of type OracleVertexlabel - edge labelOracleEdge object.public com.tinkerpop.blueprints.Vertex addVertex(java.lang.Object id)
addVertex in interface com.tinkerpop.blueprints.GraphaddVertex in class OraclePropertyGraphBaseid - the id of the vertexOracleVertex object.public void clearCache()
clearCache in class OraclePropertyGraphBasepublic void clearRepository()
throws org.apache.hadoop.hbase.MasterNotRunningException,
java.io.IOException
clearRepository in class OraclePropertyGraphBaseorg.apache.hadoop.hbase.MasterNotRunningExceptionjava.io.IOExceptionpublic void clearRepository(boolean removeUsingIterators)
throws org.apache.hadoop.hbase.MasterNotRunningException,
java.io.IOException
removeUsingIterators - specifies if the tables should be cleared up by
iterating over all the elements instead of doing a table truncate.org.apache.hadoop.hbase.MasterNotRunningExceptionjava.io.IOExceptionpublic void commit()
public static byte[] concatenate(byte[] ba1,
byte[] ba2)
public static byte[] concatenate(byte[] ba1,
byte[] ba2,
byte[] ba3)
public long countEdges(int dop,
ProgressListener pl)
countEdges in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the edges.pl - a ProgressListener object.public long countVertices(int dop,
ProgressListener pl)
countVertices in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the vertices.pl - a ProgressListener object.public void dispose()
public void dropIndexTable()
throws org.apache.hadoop.hbase.MasterNotRunningException,
java.io.IOException
org.apache.hadoop.hbase.MasterNotRunningExceptionjava.io.IOExceptionpublic void flushHbaseCommits()
public java.lang.String getCompression()
public org.apache.hadoop.hbase.io.compress.Compression.Algorithm getCompressionAlgorithm(java.lang.String compress)
public org.apache.hadoop.conf.Configuration getConfiguration()
public org.apache.hadoop.hbase.client.Connection getConnection()
public org.apache.hadoop.hbase.io.encoding.DataBlockEncoding getDataBlockEncoding()
public OracleEdge getEdge(java.lang.Object id)
getEdge in interface com.tinkerpop.blueprints.GraphgetEdge in class OraclePropertyGraphBaseid - the object identifier of the referenced edgeOracleEdge objectpublic int getEdgeBlockCacheSize()
public int getEdgeInitialNumRegions()
public OracleEdgeBase getEdgeInstance(java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
getEdgeInstance in class OraclePropertyGraphBaseeid - the id of the edgebCreateIfAbsentFromCache - if false, returns a NULL value if there
is no match in the cache.bSkipStoreToCache - if true, the vertex instance will not be
stored into the cache.public OracleEdgeBase getEdgeInstance(OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
getEdgeInstance in class OraclePropertyGraphBaseeid - the id of the edgeoutVertex - the outgoing Vertex of the edgeinVertex - the incoming Vertex of the edgeedgeLabel - the label for the Edge.bCreateIfAbsentFromCache - if false, returns a NULL value if there
is no match in the cache.bSkipStoreToCache - if true, the vertex instance will not be
stored into the cache.public int getEdgePropertyNames(int dop,
int timeout,
java.util.Map<java.lang.String,java.lang.Class> propertyNames,
ProgressListener pl)
getEdgePropertyNames in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the edgestimeout - time out in the unit of secondspropertyNames - a map of pl - a ProgressListener object.public int getEdgePropertyNames(int dop,
int timeout,
java.util.Set<java.lang.String> propertyNames,
ProgressListener pl)
getEdgePropertyNames in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the edgestimeout - time out in the unit of secondspropertyNames - a set of property names to be returnedpl - a ProgressListener object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable to all the edges in the graph that have any of the specified keys and
satisfy the specified edge filter callback. The information read back from
the edges will be complete or partial based on the optimization flag
specified.getEdges in class OraclePropertyGraphBasekeys - an array of property key names. It can be NULL which implies all vertices in
the graph satisfying the edge filter callback will be returned.efc - a EdgeFilterCallback object specifying the conditions to keep a
edge in the Iterable.flag - an OptimizationFlag object specifying if a partial or complete edge object will
be returned. It can be NULL which implies the edges created must be complete.public java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag,
int dop)
Iterable to all the edges in the graph that have any of the specified keys and
satisfy the specified edge filter callback. The information read back from
the edges will be complete or partial based on the optimization flag
specified.keys - an array of property key names. It can be NULL which implies all vertices in
the graph satisfying the edge filter callback will be returned.efc - a EdgeFilterCallback object specifying the conditions to keep a
edge in the Iterable.flag - an OptimizationFlag object specifying if a partial or complete edge object will
be returned. It can be NULL which implies the edges created must be complete.public java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String key,
java.lang.Object value,
java.lang.Class dtClass,
boolean acceptWildcard,
boolean preferredLuceneQuery)
getEdges in class OraclePropertyGraphBasekey - the name of the property. It MUST not be NULL.value - the value of the property. It can be NULL which will cause all vertices with the given key to be returned.dtClass - the data type of the value object.acceptWildcard - specifies if wild cards can be used in the value object. Wild cards can be used only when
an automatic text index on the given key is present.preferredLuceneQuery - if true, a look up to the automatic index will be executed to find the matches.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesFromKey(org.apache.hadoop.hbase.client.Connection[] conns,
boolean skipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Iterable objects that hold all the edges in the graph
that have any of the specified keys and satisfy the specified edge filter callback
by executing a lookup over the secondary index table.
The information read back from the edges will be complete or partial based
on the optimization flag specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].conns - an array of connections to Apache HBase.skipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.keys - an array of property key names. It can be NULL which implies all edges in
the graph satisfying the edge filter callback will be returned.Iterable array object.public int getEdgeSndIndexBlockCacheSize()
public org.apache.hadoop.hbase.TableName getEdgeSndIndexTabName()
public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID)
Iterable objects that hold all the edges in the graph.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
boolean bClonedGraph)
Iterable objects that hold all the edges in the graph.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.bClonedGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved edges, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
EdgeFilterCallback efc)
Iterable objects that hold all the edges in the graph that
satisfy the specified edge filter callback.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.efc - a EdgeFilterCallback object specifying the conditions to keep an
edge in the Iterable.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable objects that hold all the edges in the graph that
satisfy the specified edge filter callback. The information read back from
the edges will be complete or partial based on the optimization flag
specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.flag - an OptimizationFlag object specifying if a partial or complete edge object will
be returned. It can be NULL which implies the edges created must be complete.startSplitID - the ID of the starting split.efc - a EdgeFilterCallback object specifying the conditions to keep an
edge in the Iterable.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable objects that hold all the edges in the graph.
The information read back from the edges will be complete or partial based on the optimization flag
specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.flag - an OptimizationFlag object specifying if a partial or complete vertex object will
be returned. It can be NULL which implies the edges created must be complete.startSplitID - the ID of the starting split.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key)
Iterable objects that hold all the edges in the
graph that have a particular key.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.key - name of the property. It can be NULL which implies all edges in
the graph will be returned.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Iterable objects that hold all the edges in the graph
that have any of the specified keys.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.keys - an array of property key names. It can be NULL which implies all edges in
the graph will be returned.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bClonedGraph,
EdgeFilterCallback efc)
Iterable objects that hold all the edges in the graph
that have any of the specified keys and satisfy the specified edge filter callback.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.efc - a EdgeFilterCallback object specifying the conditions to keep an
edge in the Iterable.keys - an array of property key names. It can be NULL which implies all edges in
the graph satisfying the edge filter callback will be returned.bClonedGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved edges, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bClonedGraph,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable objects that hold all the edges in the graph
that have any of the specified keys and satisfy the specified edge filter callback.
The information read back from the edges will be complete or partial based
on the optimization flag specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.flag - an OptimizationFlag object specifying if a partial or complete vertex object will
be returned. It can be NULL which implies the edges created must be complete.startSplitID - the ID of the starting split.keys - an array of property key names. It can be NULL which implies all edges in
the graph satisfying the edge filter callback will be returned.efc - a EdgeFilterCallback object specifying the conditions to keep an
edge in the Iterable.bClonedGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved edges, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Edge>[] getEdgesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key,
boolean bClonedGraph)
Iterable objects that hold all the edges in the
graph that have a particular key.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the edges instances will not be
stored into the cache.startSplitID - the ID of the starting split.key - name of the property. It can be NULL which implies all edges in
the graph will be returned.bClonedGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved edges, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.util.Set<org.apache.hadoop.hbase.client.RegionInfo> getEdgeTableRegionsInfo()
throws java.io.IOException
java.io.IOExceptionpublic int getEdgeTableSplits()
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.hbase.TableName getEdgeTabName()
public java.lang.Iterable<java.util.Map.Entry<java.lang.Object,java.lang.Object>> getElementsProperties(java.lang.Object[] ids,
java.lang.String propertyName,
int dop,
java.lang.Class<? extends com.tinkerpop.blueprints.Element> elementClass)
getElementsProperties in class OraclePropertyGraphBasepublic com.tinkerpop.blueprints.Features getFeatures()
public java.lang.String getGraphName()
getGraphName in class OraclePropertyGraphBasepublic static org.apache.hadoop.conf.Configuration getHbaseConfiguration(oracle.pgx.config.PgHbaseGraphConfig config)
config - the PGX PgHbaseGraphConfig objectpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphorg.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, int initialNumRegions) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphinitialNumRegions - the initial number of regions used for vertex/edge
tables. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, int initialNumRegions, int splitsPerRegion) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphinitialNumRegions - the initial number of regions used for vertex/edge
tables. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.splitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, int initialNumRegions, int splitsPerRegion, int blockCacheSize) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphinitialNumRegions - the initial number of regions used for vertex/edge
tables. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.splitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.blockCacheSize - the size of the block cache (in bytes) used for
vertex/edge tables. Blocksize to use when writing out storefiles/hfiles
on these tables.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, java.lang.String compress, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dbe, int splitsPerRegion, int blockCacheSize, int initialVertexNumRegions, int initialEdgeNumRegions) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphcompress - the compression used in the property graph tables. Default value is
set to "SNAPPY"dbe - the data block encoding used in the property graph tablessplitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.blockCacheSize - the size of the block cache (in bytes) used for
vertex/edge tables. Blocksize to use when writing out storefiles/hfiles
on these tables.initialVertexNumRegions - the initial number of regions used for vertex
table. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.initialEdgeNumRegions - the initial number of regions used for edge
table. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, java.lang.String compress, int initialNumRegions) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphcompress - the compression used in the property graph tables. Default value is
set to "SNAPPY"initialNumRegions - the initial number of regions used for vertex/edge
tables. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, java.lang.String compress, int initialNumRegions, int splitsPerRegion) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphcompress - the compression used in the property graph tables. Default value is
set to "SNAPPY"initialNumRegions - the initial number of regions used for vertex/edge
tables. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.splitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, java.lang.String compress, int initialNumRegions, int splitsPerRegion, int blockCacheSize) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphcompress - the compression used in the property graph tables. Default value is
set to "SNAPPY"initialNumRegions - the initial number of regions used for vertex/edge
tables. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.splitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.blockCacheSize - the size of the block cache (in bytes) used for
vertex/edge tables. Blocksize to use when writing out storefiles/hfiles
on these tables.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, java.lang.String compress, int splitsPerRegion, int blockCacheSize, int initialVertexNumRegions, int initialEdgeNumRegions) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphcompress - the compression used in the property graph tables. Default value is
set to "SNAPPY"splitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.blockCacheSize - the size of the block cache (in bytes) used for
vertex/edge tables. Blocksize to use when writing out storefiles/hfiles
on these tables.initialVertexNumRegions - the initial number of regions used for vertex
table. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.initialEdgeNumRegions - the initial number of regions used for edge
table. Both vertex and edge tables will be created using the specified
number of regions. If the graph already exists, a clearRepository operation
must be executed in order to truncate the tables and set the new number of regions.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(oracle.pgx.config.PgHbaseGraphConfig config) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
config - a PgHbaseGraphConfig object.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstance(oracle.pgx.config.PgHbaseGraphConfig config, long maxRowSize) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
config - a PgHbaseGraphConfig object.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic static OraclePropertyGraph getInstanceWithSplits(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Connection hconn, java.lang.String szGraphName, int splitsPerRegion) throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, java.io.IOException
conf - the Configuration object with all the Apache HBase connection information.hconn - an Connection object handling a connection to HBase.szGraphName - the name of the graphsplitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic java.util.Set<java.lang.Long> getInvalidEdgeIDSet(int dop,
ProgressListener pl)
getInvalidEdgeIDSet in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the edges and the vertices tables.pl - a ProgressListener object.public long getMaxEdgeID(int dop,
ProgressListener pl)
getMaxEdgeID in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the vertices.pl - a ProgressListener object.public long getMaxVertexID(int dop,
ProgressListener pl)
getMaxVertexID in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the vertices.pl - a ProgressListener object.public long getMinEdgeID(int dop,
ProgressListener pl)
getMinEdgeID in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the vertices.pl - a ProgressListener object.public long getMinVertexID(int dop,
ProgressListener pl)
getMinVertexID in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the vertices.pl - a ProgressListener object.public int getNumSplitsPerRegion()
public long getOperationQueueSize()
public HBaseIndexManager getOracleIndexManager()
getOracleIndexManager in class OraclePropertyGraphBaseHBaseIndexManager object.public static int getSaltSize()
public int getScanCachingSize()
public int getSecondaryIndexNumBuckets()
public int getTextIdxMetadataBlockCacheSize()
public org.apache.hadoop.hbase.TableName getTextIdxMetadataTabName()
public OracleVertex getVertex(java.lang.Object id)
getVertex in interface com.tinkerpop.blueprints.GraphgetVertex in class OraclePropertyGraphBaseid - the object identifier of the referenced vertexVertex objectpublic int getVertexBlockCacheSize()
public java.util.Set<java.lang.Long> getVertexIDSet(int dop,
ProgressListener pl)
getVertexIDSet in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the vertices table.pl - a ProgressListener object.public int getVertexInitialNumRegions()
public OracleVertexBase getVertexInstance(java.lang.Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
getVertexInstance in class OraclePropertyGraphBasevid - the id of the vertexbCreateIfAbsentFromCache - if false, returns a NULL value if there
is no match in the cache.bSkipStoreToCache - if true, the vertex instance will not be
stored into the cache.public int getVertexPropertyNames(int dop,
int timeout,
java.util.Map<java.lang.String,java.lang.Class> propertyNames,
ProgressListener pl)
getVertexPropertyNames in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the verticestimeout - time out in the unit of secondspropertyNames - a map of pl - a ProgressListener object.public int getVertexPropertyNames(int dop,
int timeout,
java.util.Set<java.lang.String> propertyNames,
ProgressListener pl)
getVertexPropertyNames in class OraclePropertyGraphBasedop - a positive integer defining the number of threads to use when
parallel scanning the verticestimeout - time out in the unit of secondspropertyNames - a set of property names to be returnedpl - a ProgressListener object.public int getVertexSndIndexBlockCacheSize()
public org.apache.hadoop.hbase.TableName getVertexSndIndexTabName()
public java.util.Set<org.apache.hadoop.hbase.client.RegionInfo> getVertexTableRegionsInfo()
throws java.io.IOException
java.io.IOExceptionpublic int getVertexTableSplits()
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.hbase.TableName getVertexTabName()
public java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
getVertices in interface com.tinkerpop.blueprints.GraphgetVertices in class OraclePropertyGraphBasepublic java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable to all the vertices in the graph that have any of the specified keys and
satisfy the specified vertex filter callback. The information read back from
the vertices will be complete or partial based on the optimization flag
specified.getVertices in class OraclePropertyGraphBasekeys - an array of property key names. It can be NULL which implies all vertices in
the graph satisfying the vertex filter callback will be returned.vfc - a VertexFilterCallback object specifying the conditions to keep a
vertex in the Iterable.flag - an OptimizationFlag object specifying if a partial or complete vertex object will
be returned. It can be NULL which implies the vertices created must be complete.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag,
int dop)
Iterable to all the vertices in the graph that have any of the specified keys and
satisfy the specified vertex filter callback. The information read back from
the vertices will be complete or partial based on the optimization flag
specified.keys - an array of property key names. It can be NULL which implies all vertices in
the graph satisfying the vertex filter callback will be returned.vfc - a VertexFilterCallback object specifying the conditions to keep a
vertex in the Iterable.flag - an OptimizationFlag object specifying if a partial or complete vertex object will
be returned. It can be NULL which implies the vertices created must be complete.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String key,
java.lang.Object value,
java.lang.Class dtClass,
boolean acceptWildcard,
boolean preferredLuceneQuery)
getVertices in class OraclePropertyGraphBasekey - the name of the property. It MUST not be NULL.value - the value of the property. It can be NULL which will cause all vertices with the given key to be returned.dtClass - the datatype of the value objectacceptWildcard - specifies if wild cards can be used in the value object. Wild cards can be used only when
an automatic text index on the given key is present.preferredLuceneQuery - if true, a look up to the automatic index will be executed to find the matches.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesFromKey(org.apache.hadoop.hbase.client.Connection[] conns,
boolean skipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Iterable objects that hold all the vertices in the graph
that have any of the specified keys and satisfy the specified vertex filter callback
by executing a lookup over the secondary index table.
The information read back from the vertices will be complete or partial based
on the optimization flag specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].conns - an array of connections to Apache HBase.skipStoreToCache - if true, the vertices instances will not be
stored into the cache.startSplitID - the ID of the starting split.keys - an array of property key names. It can be NULL which implies all vertices in
the graph satisfying the vertex filter callback will be returned.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID)
Iterable objects that hold all the vertices in the graph. Each element in
the Iterable array uses a separate connection provided to fetch a subset of the results from
the corresponding split. The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the splits in the vertex table with
N splits. The subset of splits queried will consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.startSplitID - the ID of the starting split.Iterable object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
boolean bClonedGraph)
Iterable objects that hold all the vertices in the graph.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.startSplitID - the ID of the starting split.bClonedGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved vertices, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable objects that hold all the vertices in the graph.
The information read back from the vertices will be complete or partial based on the optimization flag
specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.flag - an OptimizationFlag object specifying if a partial or complete vertex object will
be returned. It can be NULL which implies the vertices created must be complete.startSplitID - the ID of the starting split.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key)
Iterable objects that hold all the vertices in the
graph that have a particular key.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.startSplitID - the ID of the starting split.key - name of the property. It can be NULL which implies all vertices in
the graph will be returned.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys)
Iterable objects that hold all the vertices in the graph
that have any of the specified keys.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.startSplitID - the ID of the starting split.keys - an array of property key names. It can be NULL which implies all vertices in
the graph will be returned.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bCloneGraph,
VertexFilterCallback vfc)
Iterable objects that hold all the vertices in the graph
that have any of the specified keys and satisfy the specified vertex filter callback.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.startSplitID - the ID of the starting split.vfc - a VertexFilterCallback object specifying the conditions to keep an
vertex in the Iterable.keys - an array of property key names. It can be NULL which implies all vertices in
the graph satisfying the vertex filter callback will be returned.bCloneGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved vertices, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
boolean bCloneGraph,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable objects that hold all the vertices in the graph
that have any of the specified keys and satisfy the specified vertex filter callback.
The information read back from the vertices will be complete or partial based
on the optimization flag specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.flag - an OptimizationFlag object specifying if a partial or complete vertex object will
be returned. It can be NULL which implies the vertices created must be complete.startSplitID - the ID of the starting split.keys - an array of property key names. It can be NULL which implies all vertices in
the graph satisfying the vertex filter callback will be returned.vfc - a VertexFilterCallback object specifying the conditions to keep an
vertex in the Iterable.bCloneGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved vertices, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String key,
boolean bCloneGraph)
Iterable objects that hold all the vertices in the
graph that have a particular key.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.startSplitID - the ID of the starting split.key - name of the property. It can be NULL which implies all vertices in
the graph will be returned.bCloneGraph - if true, each Iterable in the array will use a new
OraclePropertyGraph instance behind the scenes. If there are
writing operations done over the retrieved vertices, the associated
property graphs need to be commited for the changes to be persisted
into Apache HBase.Iterable array object.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex>[] getVerticesPartitioned(org.apache.hadoop.hbase.client.Connection[] connections,
boolean bSkipStoreToCache,
int startSplitID,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag flag)
Iterable objects that hold all the vertices in the graph that
satisfy the specified vertex filter callback. The information read back from
the vertices will be complete or partial based on the optimization flag
specified.
Each element in the Iterable array uses a separate connection
provided to fetch a subset of the results from the corresponding split.
The splits are determined by # of regions & num of splits per region for the
table.
Note that we assign an integer ID (in the range of [0, N - 1]) to all the
splits in the vertex table with N splits. The subset of splits queried will
consist of those splits with ID value in the range of
[startSplitID, startSplit - 1 + size of connections array].connections - an array of connections to Apache HBase.bSkipStoreToCache - if true, the vertices instances will not be
stored into the cache.flag - an OptimizationFlag object specifying if a partial or complete vertex object will
be returned. It can be NULL which implies the vertices created must be complete.startSplitID - the ID of the starting split.vfc - a VertexFilterCallback object specifying the conditions to keep an
vertex in the Iterable.Iterable array object.public static org.apache.hadoop.conf.Configuration prepareSecureConfig(org.apache.hadoop.conf.Configuration config,
java.lang.String hbaseSecAuth,
java.lang.String hadoopSecAuth,
java.lang.String hmKerberosPrincipal,
java.lang.String rsKerberosPrincipal,
java.lang.String userPrincipal,
java.lang.String keytab)
config - the Apache HBase configuration objecthbaseSecAuth - the hbase authentication kerberos/simplehadoopSecAuth - the hadoop authentication kerberos/simplehmKerberosPrincipal - The kerberos principal name that should be used
to run the HMaster process. The principal name should be in the form:
user/hostname@DOMAIN. If "_HOST" is used as the hostname portion, it will
be replaced with the actual hostname of the running instance.rsKerberosPrincipal - Ex. "hbase/_HOST@EXAMPLE.COM".The kerberos principal name
that should be used to run the HRegionServer process. The principal name
should be in the form: user/hostname@DOMAIN. If _HOST is used as the
hostname portion, it will be replaced with the actual hostname of the
running instance.userPrincipal - the user to loginkeytab - the keytab containing the password of the loginConfiguration Configuration object.public static void quietlyClose(org.apache.hadoop.hbase.client.Table htable)
htable - the Table object to close.public void rebuildEdgeSecondaryIndexTable()
public void rebuildEdgeSecondaryIndexTable(int dop)
public void rebuildVertexSecondaryIndexTable()
public void rebuildVertexSecondaryIndexTable(int dop)
public void removeAttributeFromAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop, ProgressListener pl)
EdgeOpCallback.removeAttributeFromAllEdges in class OraclePropertyGraphBaseeoc - a EdgeOpCallback object.skipStoreToCache - if true, the edges instances will not be
stored into the cache.dop - a positive integer defining the number of threads to use when
parallel processing the edges.pl - a ProgressListener object.public void removeAttributeFromAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop, ProgressListener pl)
VertexOpCallback.removeAttributeFromAllVertices in class OraclePropertyGraphBasevoc - a VertexOpCallback object.skipStoreToCache - if true, the vertices instances will not be
stored into the cache.dop - a positive integer defining the number of threads to use when
parallel processing the vertices.pl - a ProgressListener object.public void removeEdge(com.tinkerpop.blueprints.Edge edge)
removeEdge in interface com.tinkerpop.blueprints.GraphremoveEdge in class OraclePropertyGraphBaseedge - an Edge object to be removedpublic void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
vertex - a Vertex object to be removedpublic static byte[] saltEdge(byte[] ba)
ba - the edge ID represented as a byte arraypublic static byte[] saltVertex(byte[] ba)
ba - the vertex ID represented as a byte arraypublic void setCompression(java.lang.String compress)
compress - the compression used in the property graph tablespublic void setDataBlockEncoding(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dbe)
dbe - the data block encoding used in the property graph tablespublic void setEdgeBlockCacheSize(int blockCSize)
blockCSize - a positive integer representing the size of the block
cache (in bytes) used in the vertex table.
Default value set to 131072 bytes.public void setEdgeInitialNumRegions(int numRegions)
numRegions - a positive integer with the initial number of regions for edge table.
Default value set to 4public void setEdgeSndIndexBlockCacheSize(int blockCSize)
blockCSize - a positive integer representing the size of the block
cache (in bytes) used in the vertex table.
Default value set to 131072 bytes.public void setInitialNumRegions(int numRegions)
numRegions - the initial number of regions.public void setNumSplitsPerRegion(int iNumSplitsPerRegion)
iNumSplitsPerRegion - a positive integer specifying the number of
splits per region to use when scanning vertices/edges.
Default value set to 1.public void setScanCachingSize(int iScanCachingSize)
iScanCachingSize - the cache size to use.public void setTextIdxMetadataBlockCacheSize(int blockCSize)
blockCSize - a positive integer representing the size of the block
cache (in bytes) used in the vertex table.
Default value set to 131072 bytes.public void setVertexBlockCacheSize(int blockCSize)
blockCSize - a positive integer representing the size of the block
cache (in bytes) used in the vertex table. This is
a meta data operation, so changes to this setting will show after
clearing the repository and recreating the vertex tables.
Default value set to 131072 bytes.public void setVertexInitialNumRegions(int numRegions)
numRegions - a positive integer with the initial number of regions for vertex table.
Default value set to 4public void setVertexSndIndexBlockCacheSize(int blockCSize)
blockCSize - a positive integer representing the size of the block
cache (in bytes) used in the vertex table.
Default value set to 131072 bytes.public void shutdown()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 - 2018 Oracle and/or its affiliates. All Rights Reserved.