public class OraclePropertyGraph extends OraclePropertyGraphBase
OraclePropertyGraphBase.CacheStatus, OraclePropertyGraphBase.OptimizationFlag
org.apache.tinkerpop.gremlin.structure.Graph.Exceptions, org.apache.tinkerpop.gremlin.structure.Graph.Features, org.apache.tinkerpop.gremlin.structure.Graph.Hidden, org.apache.tinkerpop.gremlin.structure.Graph.OptIn, org.apache.tinkerpop.gremlin.structure.Graph.OptIns, org.apache.tinkerpop.gremlin.structure.Graph.OptOut, org.apache.tinkerpop.gremlin.structure.Graph.OptOuts, org.apache.tinkerpop.gremlin.structure.Graph.Variables
OraclePropertyGraphConstants.QueueAction
MG_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_EXIST
ERR_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
VERTEX_LABEL
CSV_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_FORMAT
TYPE_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_URI
Modifier and Type | Method and Description |
---|---|
org.apache.tinkerpop.gremlin.structure.Edge |
addEdge(java.lang.Object id,
org.apache.tinkerpop.gremlin.structure.Vertex outVertex,
org.apache.tinkerpop.gremlin.structure.Vertex inVertex,
java.lang.String label)
This method adds an edge to the graph instance.
|
org.apache.tinkerpop.gremlin.structure.Vertex |
addVertexById(java.lang.Object id)
This method adds an vertex to the graph instance.
|
void |
clearRepository()
This method removes all vertices and edges from this property graph instance.
|
void |
close()
A shutdown function is required to properly close the graph.
|
void |
closeKVStore()
This method closes the underlying KVStore instance
|
void |
commit()
Commit changes done to this property graph instace.
|
long |
countEdges(int dop,
ProgressListener pl)
Counts all Edges using parallel scan with dop threads
|
long |
countVertices(int dop,
ProgressListener pl)
Counts all vertices using parallel scan with dop threads
|
void |
createGraphTables()
This method creates the vertex, edge, and index metadata tables
for a property graph
|
void |
createIndexTable()
This method creates the index metadata tables for a property graph
|
void |
dispose()
Closes the graph without commiting any changes
|
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edgesByProperty(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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edgesByPropertyKey(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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int startSplitID)
Gets an array of
Iterable objects that hold all the edges in the graph. |
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int iTotalSplits,
int iStartSplitID,
boolean bOptimizedSplits,
java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int iTotalSplits,
int startSplitID,
java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesWithCustomizedParallelTableScan(java.lang.String[] keys)
Return an
Iterable to all the edges in the graph that have any of the specified keys. |
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] |
edgesWithCustomizedParallelTableScan(java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edgesWithDefaultParallelTableScan(java.lang.String[] keys)
Return an
Iterable to all the edges in the graph that have any of the specified keys. |
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edgesWithDefaultParallelTableScan(java.lang.String[] keys,
EdgeFilterCallback efc)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edgesWithDefaultParallelTableScan(java.lang.String[] keys,
EdgeFilterCallback efc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
Return an
Iterable to all the edges in the graph that have any of the specified keys and
satisfy the specified edge filter callback. |
org.apache.tinkerpop.gremlin.structure.Graph.Features |
features()
Gets the particular features of the graph implementation for Tinkerpop 3
|
void |
flushUpdates()
Flushes updates into the pertinent HBase tables.
|
int |
getClearTableDOP()
Returns the number of workers used when removing all data from a table
|
int |
getClearTablePKBufferSize()
Returns the size of the primary key buffer used when removing all data from a table
|
int |
getClearTableThreadsPerWorker()
Returns the number of threads per clear table worker used when removing all rows from a table
|
int |
getCustomizedParallelScanDOP()
Get the dop used for parallel scan
|
int |
getDOPForMetadataOperations() |
OracleEdge |
getEdge(java.lang.Object id)
Return the edge referenced by the object identifier.
|
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.
|
int |
getEdgeTableSplits()
Get the number of Edge table splits used for parallel scans in the edge
table.
|
java.lang.String |
getEdgeTabName()
Get the name of the Oracle NoSQL Database table used to store edges in this property
graph.
|
static OraclePropertyGraph |
getInstance(oracle.kv.KVStoreConfig kvconfig,
java.lang.String szGraphName)
Returns an instance of OraclePropertyGraph using the Oracle NoSQL Database connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(oracle.kv.KVStoreConfig kvconfig,
java.lang.String szGraphName,
oracle.kv.LoginCredentials lc)
Returns an instance of OraclePropertyGraph using the Oracle NoSQL Database connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(oracle.kv.KVStoreConfig kvconfig,
java.lang.String szGraphName,
java.lang.String username,
java.lang.String password)
Returns an instance of OraclePropertyGraph using the Oracle NoSQL Database connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(oracle.kv.KVStoreConfig kvconfig,
java.lang.String szGraphName,
java.lang.String username,
java.lang.String password,
java.util.Properties secProperties)
Returns an instance of OraclePropertyGraph using the Oracle NoSQL Database connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(oracle.kv.KVStoreConfig kvconfig,
java.lang.String szGraphName,
java.lang.String username,
java.lang.String password,
java.lang.String trustStoreFile)
Returns an instance of OraclePropertyGraph using the Oracle NoSQL Database connection
and graph name provided.
|
static OraclePropertyGraph |
getInstance(oracle.kv.KVStore kvStore,
oracle.kv.KVStoreConfig kvConfig,
java.lang.String graphName) |
static OraclePropertyGraph |
getInstance(PgNosqlGraphConfig config)
Returns an instance of OraclePropertyGraph using a PGX PgNosqlGraphConfig
object.
|
static OraclePropertyGraph |
getInstance(java.lang.String storeName,
java.lang.String host,
int port,
java.lang.String szGraphName)
Returns an instance of OraclePropertyGraph using the Oracle NoSQL Database connection
and graph name provided.
|
java.util.Set<java.lang.Long> |
getInvalidEdgeIDSet(int dop,
ProgressListener pl)
Gets a set of invalid edges that are stored in the property graph.
|
oracle.kv.KVStoreConfig |
getKVStoreConfig()
Get the
KVStoreConfig object associated with the backend database |
static oracle.kv.KVStoreConfig |
getKVStoreConfig(PgNosqlGraphConfig config)
Gets an KVStoreConfig from a PGX
PgNosqlGraphConfig object |
oracle.kv.LoginCredentials |
getLoginCredentials() |
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.
|
long |
getOperationQueueSize()
Get the size of the operation queue
|
OracleIndexManager |
getOracleIndexManager()
Gets the Oracle PropertyGraphIndex Manager associated to this property graph instance.
|
oracle.kv.table.TableIteratorOptions |
getTableIteratorOptions()
Gets the TableIteratorOptions object associated to this property graph
|
OracleVertex |
getVertex(java.lang.Object id)
Return the vertex referenced by the object identifier.
|
java.util.Set<java.lang.Long> |
getVertexIDSet(int dop,
ProgressListener pl)
Gets a set of Vertex IDs that are stored in the 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 |
getVertexTableSplits()
Get the number of Vertex table splits used for parallel scans in the vertex
table.
|
java.lang.String |
getVertexTabName()
Get the name of the Oracle NoSQL Database table used to store vertices in this property
graph.
|
void |
removeEdge(org.apache.tinkerpop.gremlin.structure.Edge edge)
Remove the provided edge from the graph
|
void |
removeVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Remove the provided vertex from the graph
|
void |
setClearTableDOP(int dop)
Sets the number of workers to be used when removing all rows from a table
|
void |
setClearTablePKBufferSize(int size)
Set the size of the primary key buffer used when removing all rows from a table
|
void |
setClearTableThreadsPerWorker(int threads)
Sets the number of threads per clear table worker to be used when removing all rows from a table
|
void |
setCustomizedParallelScanDOP(int iDOP)
Set the dop used for parallel scan
|
void |
setTableIteratorOptions(oracle.kv.table.TableIteratorOptions tio)
Sets the TableIteratorOptions object associated to this property graph
|
<T extends org.apache.tinkerpop.gremlin.structure.Element> |
updateGraph(OpCallback<T> oc,
boolean skipStoreToCache,
int dop,
ProgressListener pl,
OpCallback.UpdateType updateType)
Updates a graph based on the specified
OpCallback . |
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
verticesByProperty(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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
verticesByPropertyKey(java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int startSplitID)
Gets an array of
Iterable objects that hold all the vertices in the graph. |
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int iTotalSplits,
int iStartSplitID,
boolean bOptimizedSplits,
java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int iTotalSplits,
int startSplitID,
java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray,
boolean bSkipStoreToCache,
int startSplitID,
java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesWithCustomizedParallelTableScan(java.lang.String[] keys)
Return an
Iterable to all the vertices in the graph that have any of the specified keys. |
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] |
verticesWithCustomizedParallelTableScan(java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
verticesWithDefaultParallelTableScan(java.lang.String[] keys)
Return an
Iterable to all the vertices in the graph that have any of the specified keys. |
java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
verticesWithDefaultParallelTableScan(java.lang.String[] keys,
VertexFilterCallback vfc)
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
verticesWithDefaultParallelTableScan(java.lang.String[] keys,
VertexFilterCallback vfc,
OraclePropertyGraphBase.OptimizationFlag optFlag)
Return an
Iterable to all the vertices in the graph that have any of the specified keys and
satisfy the specified vertex filter callback. |
addUpdatedEdge, addUpdatedVertex, addVertex, addVertex, adjacentEdgesFromVertices, adjacentEdgesFromVertices, clearCache, clearUpdateQueue, commitIndices, compute, compute, configuration, createIndex, decodeObject, edges, edges, edgesByIds, edgesByIds, edgesByProperty, edgesByProperty, edgesByProperty, edgesByProperty, edgesByPropertyKey, edgesByPropertyKey, edgesByPropertyKey, getBatchSize, getCacheStatus, getConfig, getDatatypeClassFromValueObjForTextIndex, getDateTimeFormatter, getDefaultEdgeOptFlag, getDefaultIndexParameters, getDefaultVertexOptFlag, getEdgeFilterCallback, getElementsProperties, getGraphName, getJustEdgeIdOptFlag, getJustVertexIdOptFlag, getMaxLabelLengthAllowedInBytes, getMaxPropertyNameLengthAllowedInBytes, getMaxValueLengthAllowedInBytes, getProgressListener, getQueueSize, getShortestPath, getShortestPath, getSimpleDateFormat, getStringForObj, getTextIndexDirectoryPrefix, getVertexFilterCallback, io, isBuiltinElementsCacheDisabled, isDisposed, isEmpty, isShutdown, isSkipRefreshIndicesEnabled, isTransientPropertyGraphInstance, removeEdges, removeEdges, removeEdges, removeEdges, removeVertices, removeVertices, removeVertices, removeVertices, rollback, serializableToStr, setBatchSize, setCacheStatus, setDefaultEdgeOptFlag, setDefaultIndexParameters, setDefaultVertexOptFlag, setEdgeFilterCallback, setProgressListener, setQueueSize, setSkipRefreshIndices, setSolrJavaBinFormat, setTransientPropertyGraphInstance, setVertexFilterCallback, startTransaction, strToSerializable, sum, supportVertexLabels, toString, traversal, traversal, tx, useSolrJavaBinFormat, variables, vertices, vertices, verticesByIds, verticesByIds, verticesByProperty, verticesByProperty, verticesByProperty, verticesByProperty, verticesByPropertyKey, verticesByPropertyKey, verticesByPropertyKey
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
createKeyIndex, createKeyIndex, createKeyIndex, dropAllAutoIndices, dropAllIndices, dropAllManualIndices, dropIndex, dropKeyIndex, dropKeyIndex, dropKeyIndex, edgesUsingTextSearch, getAutoIndex, getIndex, getIndexedKeys, getIndexParameters, getIndices, isEdgeAutoIndexEnabled, isVertexAutoIndexEnabled, refreshAutoIndices, validateIndexManager, verticesUsingTextSearch
countEdges, countEdges, countVertices, countVertices, getEdgePropertyNames, getEdgePropertyNames, getElementsProperties, getInvalidEdgeIDSet, getInvalidEdgeIDSet, getMaxEdgeID, getMaxEdgeID, getMaxVertexID, getMaxVertexID, getMinEdgeID, getMinEdgeID, getMinVertexID, getMinVertexID, getVertexIDSet, getVertexIDSet, getVertexPropertyNames, getVertexPropertyNames
addAttributeToAllEdges, addAttributeToAllEdges, addAttributeToAllEdges, addAttributeToAllVertices, addAttributeToAllVertices, addAttributeToAllVertices, removeAttributeFromAllEdges, removeAttributeFromAllEdges, removeAttributeFromAllEdges, removeAttributeFromAllVertices, removeAttributeFromAllVertices, removeAttributeFromAllVertices
public org.apache.tinkerpop.gremlin.structure.Edge addEdge(java.lang.Object id, org.apache.tinkerpop.gremlin.structure.Vertex outVertex, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, java.lang.String label)
addEdge
in class OraclePropertyGraphBase
id
- the id of the edgeoutVertex
- has to be of type OracleVertexinVertex
- has to be of type OracleVertexlabel
- edge labelOracleEdge
object.public org.apache.tinkerpop.gremlin.structure.Vertex addVertexById(java.lang.Object id)
addVertexById
in class OraclePropertyGraphBase
id
- the id of the vertexOracleVertex
object.public void clearRepository() throws java.lang.Exception
clearRepository
in class OraclePropertyGraphBase
java.lang.Exception
public void close()
public void closeKVStore()
public void commit()
commit
in class OraclePropertyGraphBase
public long countEdges(int dop, ProgressListener pl)
dop
- 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)
dop
- a positive integer defining the number of threads to use when
parallel scanning the vertices.pl
- a ProgressListener object.public void createGraphTables() throws java.lang.Exception
java.lang.Exception
public void createIndexTable() throws java.lang.Exception
java.lang.Exception
public void dispose()
public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edgesByProperty(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, boolean preferredLuceneQuery)
edgesByProperty
in class OraclePropertyGraphBase
key
- 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 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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edgesByPropertyKey(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.edgesByPropertyKey
in class OraclePropertyGraphBase
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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, 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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int iTotalSplits, int iStartSplitID, boolean bOptimizedSplits, java.lang.String[] keys, EdgeFilterCallback efc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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.
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
[iStartSplitID, iStartSplit - 1 + size of connections array].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.bSkipStoreToCache
- if true, the edges instances will not be
stored into the cache.iTotalSplits
- the total number of splitsiStartSplitID
- the ID of the starting split.bOptimizedSplits
- the flag showing if using optimized splitskeys
- an array of property key names. It can be NULL which implies all edges in
the graph will be returned.efc
- a EdgeFilterCallback
object specifying the conditions to keep an
edge in the Iterable
.optFlag
- 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.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int iTotalSplits, int startSplitID, java.lang.String[] keys, EdgeFilterCallback efc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.bSkipStoreToCache
- if true, the edges instances will not be
stored into the cache.iTotalSplits
- the total number of splitsstartSplitID
- 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.efc
- a EdgeFilterCallback
object specifying the conditions to keep an
edge in the Iterable
.optFlag
- 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.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, 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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, 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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int startSplitID, java.lang.String[] keys, 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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.efc
- a EdgeFilterCallback
object specifying the conditions to keep an
edge in the Iterable
.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int startSplitID, java.lang.String[] keys, EdgeFilterCallback efc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.efc
- a EdgeFilterCallback
object specifying the conditions to keep an
edge in the Iterable
.optFlag
- 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.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesWithCustomizedParallelTableScan(java.lang.String[] keys)
Iterable
to all the edges in the graph that have any of the specified keys.keys
- an array of property key names. It can be NULL which implies all edges in
the graph will be returned.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>[] edgesWithCustomizedParallelTableScan(java.lang.String[] keys, EdgeFilterCallback efc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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
.optFlag
- 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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edgesWithDefaultParallelTableScan(java.lang.String[] keys)
Iterable
to all the edges in the graph that have any of the specified keys.keys
- an array of property key names. It can be NULL which implies all edges in
the graph will be returned.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edgesWithDefaultParallelTableScan(java.lang.String[] keys, EdgeFilterCallback efc)
Iterable
to all the edges in the graph that have any of the specified keys and
satisfy the specified edge filter callback.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
.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edgesWithDefaultParallelTableScan(java.lang.String[] keys, EdgeFilterCallback efc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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
.optFlag
- 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 org.apache.tinkerpop.gremlin.structure.Graph.Features features()
public void flushUpdates()
flushUpdates
in class OraclePropertyGraphBase
public int getClearTableDOP()
public int getClearTablePKBufferSize()
public int getClearTableThreadsPerWorker()
public int getCustomizedParallelScanDOP()
public int getDOPForMetadataOperations()
public OracleEdge getEdge(java.lang.Object id)
getEdge
in class OraclePropertyGraphBase
id
- the object identifier of the referenced edgeOracleEdge
objectpublic OracleEdgeBase getEdgeInstance(java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
getEdgeInstance
in class OraclePropertyGraphBase
eid
- 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 OraclePropertyGraphBase
eid
- 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)
dop
- 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 vertex pl
- a ProgressListener object.public int getEdgePropertyNames(int dop, int timeout, java.util.Set<java.lang.String> propertyNames, ProgressListener pl)
dop
- 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 int getEdgeTableSplits()
java.io.IOException
public java.lang.String getEdgeTabName()
public static OraclePropertyGraph getInstance(oracle.kv.KVStoreConfig kvconfig, java.lang.String szGraphName) throws java.lang.Exception
kvconfig
- a KVStoreConfig
objectszGraphName
- name of the property graph to be createdOraclePropertyGraph
objectjava.lang.Exception
public static OraclePropertyGraph getInstance(oracle.kv.KVStoreConfig kvconfig, java.lang.String szGraphName, oracle.kv.LoginCredentials lc) throws java.lang.Exception
kvconfig
- a KVStoreConfig
objectszGraphName
- name of the property graph to be createdlc
- a LoginCredentials object that can be used to authenticate a userOraclePropertyGraph
objectjava.lang.Exception
public static OraclePropertyGraph getInstance(oracle.kv.KVStoreConfig kvconfig, java.lang.String szGraphName, java.lang.String username, java.lang.String password) throws java.lang.Exception
kvconfig
- a KVStoreConfig
objectszGraphName
- name of the property graph to be createdusername
- name of the userpassword
- password of the userOraclePropertyGraph
objectjava.lang.Exception
public static OraclePropertyGraph getInstance(oracle.kv.KVStoreConfig kvconfig, java.lang.String szGraphName, java.lang.String username, java.lang.String password, java.util.Properties secProperties) throws java.lang.Exception
kvconfig
- a KVStoreConfig
objectszGraphName
- name of the property graph to be createdusername
- name of the userpassword
- password of the usersecProperties
- a Properties object that defines the KVStoreConfig security settingsOraclePropertyGraph
objectjava.lang.Exception
public static OraclePropertyGraph getInstance(oracle.kv.KVStoreConfig kvconfig, java.lang.String szGraphName, java.lang.String username, java.lang.String password, java.lang.String trustStoreFile) throws java.lang.Exception
kvconfig
- a KVStoreConfig
objectszGraphName
- name of the property graph to be createdusername
- name of the userpassword
- password of the usertrustStoreFile
- the name and path to a client side Java truststore file
certificates)OraclePropertyGraph
objectjava.lang.Exception
public static OraclePropertyGraph getInstance(oracle.kv.KVStore kvStore, oracle.kv.KVStoreConfig kvConfig, java.lang.String graphName) throws java.lang.Exception
java.lang.Exception
public static OraclePropertyGraph getInstance(PgNosqlGraphConfig config) throws java.lang.Exception
config
- a PgNosqlGraphConfig
objectOraclePropertyGraph
objectjava.lang.Exception
public static OraclePropertyGraph getInstance(java.lang.String storeName, java.lang.String host, int port, java.lang.String szGraphName) throws java.lang.Exception
storeName
- kvstore namehost
- host machine name where Oracle NoSQL database installedport
- port numberszGraphName
- name of the property graph to be createdOraclePropertyGraph
object
and graph name provided.java.lang.Exception
public java.util.Set<java.lang.Long> getInvalidEdgeIDSet(int dop, ProgressListener pl)
dop
- a positive integer defining the number of threads to use when
parallel scanning the edges and the vertices tables.pl
- a ProgressListener object.public oracle.kv.KVStoreConfig getKVStoreConfig()
KVStoreConfig
object associated with the backend databaseKVStoreConfig
objectpublic static oracle.kv.KVStoreConfig getKVStoreConfig(PgNosqlGraphConfig config)
PgNosqlGraphConfig
objectconfig
- the PgNosqlGraphConfig
objectpublic oracle.kv.LoginCredentials getLoginCredentials()
public long getMaxEdgeID(int dop, ProgressListener pl)
dop
- 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)
dop
- 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)
dop
- 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)
dop
- a positive integer defining the number of threads to use when
parallel scanning the vertices.pl
- a ProgressListener object.public long getOperationQueueSize()
getOperationQueueSize
in class OraclePropertyGraphBase
public OracleIndexManager getOracleIndexManager()
getOracleIndexManager
in interface OracleIndexableGraph
getOracleIndexManager
in class OraclePropertyGraphBase
OracleIndexManager
object.public oracle.kv.table.TableIteratorOptions getTableIteratorOptions()
public OracleVertex getVertex(java.lang.Object id)
getVertex
in class OraclePropertyGraphBase
id
- the object identifier of the referenced vertexVertex
objectpublic java.util.Set<java.lang.Long> getVertexIDSet(int dop, ProgressListener pl)
dop
- a positive integer defining the number of threads to use when
parallel scanning the vertices table.pl
- a ProgressListener object.public OracleVertexBase getVertexInstance(java.lang.Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
getVertexInstance
in class OraclePropertyGraphBase
vid
- 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)
dop
- 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)
dop
- 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 getVertexTableSplits()
java.io.IOException
public java.lang.String getVertexTabName()
public void removeEdge(org.apache.tinkerpop.gremlin.structure.Edge edge)
removeEdge
in class OraclePropertyGraphBase
edge
- an Edge
object to be removedpublic void removeVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
removeVertex
in class OraclePropertyGraphBase
vertex
- a Vertex
object to be removedpublic void setClearTableDOP(int dop)
dop
- degree of parallelismpublic void setClearTablePKBufferSize(int size)
size
- buffer sizepublic void setClearTableThreadsPerWorker(int threads)
threads
- number of threads per clear table workerpublic void setCustomizedParallelScanDOP(int iDOP)
public void setTableIteratorOptions(oracle.kv.table.TableIteratorOptions tio)
public <T extends org.apache.tinkerpop.gremlin.structure.Element> void updateGraph(OpCallback<T> oc, boolean skipStoreToCache, int dop, ProgressListener pl, OpCallback.UpdateType updateType)
OpCallback
.oc
- a OpCallback
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 java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesByProperty(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, boolean preferredLuceneQuery)
verticesByProperty
in class OraclePropertyGraphBase
key
- 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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesByPropertyKey(java.lang.String[] keys, VertexFilterCallback vfc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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.verticesByPropertyKey
in class OraclePropertyGraphBase
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
.optFlag
- 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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, 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].kvcArray
- an array of KVStoreConfig objects for Oracle NoSQL DatabasebSkipStoreToCache
- if true, the vertices instances will not be
stored into the cache.startSplitID
- the ID of the starting split.Iterable
objects.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int iTotalSplits, int iStartSplitID, boolean bOptimizedSplits, java.lang.String[] keys, VertexFilterCallback vfc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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.
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
[iStartSplitID, iStartSplit - 1 + size of connections array].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.bSkipStoreToCache
- if true, the vertices instances will not be
stored into the cache.iTotalSplits
- the total number of splitsiStartSplitID
- the ID of the starting split.bOptimizedSplits
- the flag showing if using optimized splitskeys
- an array of property key names. It can be NULL which implies all vertices in
the graph will be returned.vfc
- a VertexFilterCallback
object specifying the conditions to keep an
vertex in the Iterable
.optFlag
- 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.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int iTotalSplits, int startSplitID, java.lang.String[] keys, VertexFilterCallback vfc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.bSkipStoreToCache
- if true, the vertices instances will not be
stored into the cache.iTotalSplits
- the total number of splitsstartSplitID
- 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.vfc
- a VertexFilterCallback
object specifying the conditions to keep an
vertex in the Iterable
.optFlag
- 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.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, 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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, 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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int startSplitID, java.lang.String[] keys, 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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.vfc
- a VertexFilterCallback
object specifying the conditions to keep an
vertex in the Iterable
.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesPartitioned(oracle.kv.KVStoreConfig[] kvcArray, boolean bSkipStoreToCache, int startSplitID, java.lang.String[] keys, VertexFilterCallback vfc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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 total splits are determined by the # of connections in the array.
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].kvcArray
- an array of KVStoreConfig
to initialize
DOP connections to the Oracle NoSQL database. DOP is determined by
kvcArray.length.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.vfc
- a VertexFilterCallback
object specifying the conditions to keep an
vertex in the Iterable
.optFlag
- 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.Iterable
array object.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesWithCustomizedParallelTableScan(java.lang.String[] keys)
Iterable
to all the vertices in the graph that have any of the specified keys.keys
- an array of property key names. It can be NULL which implies all vertices in
the graph will be returned.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>[] verticesWithCustomizedParallelTableScan(java.lang.String[] keys, VertexFilterCallback vfc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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
.optFlag
- 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.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesWithDefaultParallelTableScan(java.lang.String[] keys)
Iterable
to all the vertices in the graph that have any of the specified keys.keys
- an array of property key names. It can be NULL which implies all vertices in
the graph will be returned.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesWithDefaultParallelTableScan(java.lang.String[] keys, VertexFilterCallback vfc)
Iterable
to all the vertices in the graph that have any of the specified keys and
satisfy the specified vertex filter callback.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
.public java.util.Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesWithDefaultParallelTableScan(java.lang.String[] keys, VertexFilterCallback vfc, OraclePropertyGraphBase.OptimizationFlag optFlag)
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
.optFlag
- 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.Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.