public abstract class OraclePropertyGraphBase extends java.lang.Object implements com.tinkerpop.blueprints.Graph, com.tinkerpop.blueprints.TransactionalGraph, com.tinkerpop.blueprints.IndexableGraph, com.tinkerpop.blueprints.KeyIndexableGraph, MesgConsts
Modifier and Type | Class and Description |
---|---|
static class |
OraclePropertyGraphBase.OptimizationFlag
This enum defines a set of optimization flags that can be used to influence the construction of Vertex or Edge objects during scans.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
CSV_DATE_TIME_FORMATS
These formats are used in the CSV converter when trying to parse a Date
|
static java.lang.String |
CSV_DT_KEYWORD_BOOLEAN
This constant denotes a Boolean data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_BYTE
This constant denotes a Byte data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_CHAR
This constant denotes a Character data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_DATE
This constant denotes a Date data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_DOUBLE
This constant denotes a Double data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_FLOAT
This constant denotes a Float data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_INTEGER
This constant denotes a Integer data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_JSON
This constant denotes a JSON data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_LONG
This constant denotes a Long data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_RDF
This constant denotes a RDF URI data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_SHORT
This constant denotes a Short data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_SPATIAL
This constant denotes a Spatial data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
CSV_DT_KEYWORD_STRING
This constant denotes a String data type for the value field of an attribute (K/V pair) in the CSV converter
|
static java.lang.String |
OPG_DATETIME_FORMAT
Date time format used in opv and ope Oracle Flat Files
|
static int |
TYPE_DT_BOOL
This constant denotes a Boolean data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_BYTE
This constant denotes a Byte data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_CHAR
This constant denotes a Char data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_DATE
This constant denotes a Date (java.util.Date) data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_DOUBLE
This constant denotes a Double data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_EMPTY
This constant denotes an empty data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_FLOAT
This constant denotes a Float data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_INTEGER
This constant denotes an Integer data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_JSON
This constant denotes a JSON data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_LONG
This constant denotes a Long data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_SERI
This constant denotes a Serializable data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_SHORT
This constant denotes a Short data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_SPATIAL
This constant denotes a Spatial data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_STRING
This constant denotes a String data type for the value field of an attribute (K/V pair)
|
static int |
TYPE_DT_URI
This constant denotes a RDF URI data type for the value field of an attribute (K/V pair)
|
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
Modifier and Type | Method and Description |
---|---|
void |
addAttributeToAllEdges(EdgeOpCallback eoc)
Adds an attribute to all edges satisfying the criterias specified in the given
EdgeOpCallback . |
void |
addAttributeToAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop)
Adds an attribute to all edges satisfying the criterias specified in the given
EdgeOpCallback . |
abstract void |
addAttributeToAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop, ProgressListener pl)
Adds an attribute to all edges satisfying the criterias specified in the given
EdgeOpCallback . |
void |
addAttributeToAllVertices(VertexOpCallback voc)
Adds an attribute to all vertices satisfying the criterias specified in the given
VertexOpCallback . |
void |
addAttributeToAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop)
Adds an attribute to all vertices satisfying the criterias specified in the given
VertexOpCallback . |
abstract void |
addAttributeToAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop, ProgressListener pl)
Adds an attribute to all vertices satisfying the criterias specified in the given
VertexOpCallback . |
abstract 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.
|
abstract com.tinkerpop.blueprints.Vertex |
addVertex(java.lang.Object id)
This method adds an vertex to the graph instance.
|
abstract void |
clearCache()
This method clear the Vertex and Edge caches associated to this property graph instance.
|
abstract void |
clearRepository()
This method removes all vertices and edges from this property graph instance.
|
void |
commitIndices()
Commits all changes executed into the text indices associated to this graph
|
long |
countEdges()
Counts all edges
|
long |
countEdges(int dop)
Counts all edges using parallel scans and the specified DOP.
|
abstract long |
countEdges(int dop, ProgressListener pll)
Counts all edges using parallel scans and the specified DOP.
|
long |
countVertices()
Counts all vertices
|
long |
countVertices(int dop)
Counts all vertices using parallel scan with dop threads
|
abstract long |
countVertices(int dop, ProgressListener pll)
Counts all vertices using parallel scan with dop threads
|
<T extends com.tinkerpop.blueprints.Element> |
createIndex(java.lang.String indexName, java.lang.Class<T> indexClass, com.tinkerpop.blueprints.Parameter... indexParameters)
Generates an index with a particular name, for a particular class, and of a particular type.
|
<T extends com.tinkerpop.blueprints.Element> |
createKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass)
Creates an automatically maintained index for the given keys and element class.
|
<T extends com.tinkerpop.blueprints.Element> |
createKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass, com.tinkerpop.blueprints.Parameter... parameters)
Creates an automatically maintained index for the given keys and element class.
|
<T extends com.tinkerpop.blueprints.Element> |
createKeyIndex(java.lang.String key, java.lang.Class<T> elementClass, com.tinkerpop.blueprints.Parameter... parameters)
Creates an automatic indexing structure for indexing provided key for element class.
|
void |
dropAllAutoIndices()
Drops all existing automatic indices (vertex and edges).
|
void |
dropAllIndices()
Drops all existing indices.
|
void |
dropAllManualIndices()
Drops all existing manual indices (vertices and edges).
|
void |
dropIndex(java.lang.String indexName)
Removes an index associated with the graph.
|
<T extends com.tinkerpop.blueprints.Element> |
dropKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass)
Removes an automatic indexing structure associated with indexing provided key for element class.
|
<T extends com.tinkerpop.blueprints.Element> |
dropKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass, com.tinkerpop.blueprints.Parameter... parameters)
Removes an automatic indexing structure associated with indexing provided key for element class.
|
<T extends com.tinkerpop.blueprints.Element> |
dropKeyIndex(java.lang.String key, java.lang.Class<T> elementClass)
Removes an automatic indexing structure associated with indexing provided key for element class.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getAdjacentEdgesFromVertices(java.lang.Object[] ids, com.tinkerpop.blueprints.Direction direction, java.lang.String[] labels, int dop)
Return an iterable to the vertices in the graph identified by the specified requestedIds using the specified dop
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getAdjacentEdgesFromVertices(java.lang.Object[] ids, java.lang.String[] labels, com.tinkerpop.blueprints.Direction direction)
Return an iterable to the vertices in the graph identified by the specified requestedIds
|
<T extends com.tinkerpop.blueprints.Element> |
getAutoIndex(java.lang.Class<T> indexClass)
Gets an automatic index from the graph by its name and index class.
|
int |
getBatchSize()
Get the size of the batch used for update operations.
|
oracle.pgx.config.AbstractPgGraphConfig |
getConfig()
Gets the PGX graph config object
|
java.lang.Class |
getDatatypeClassFromValueObjForTextIndex(java.lang.Object value)
Gets the data type class from the given value object.
|
OraclePropertyGraphBase.OptimizationFlag |
getDefaultEdgeOptFlag()
Get the edge optimization flag associated to this property graph
|
OracleIndexParameters |
getDefaultIndexParameters()
Get the default index parameters associated to this property graph.
|
OraclePropertyGraphBase.OptimizationFlag |
getDefaultVertexOptFlag()
Get the vertex optimization flag associated to this property graph
|
abstract com.tinkerpop.blueprints.Edge |
getEdge(java.lang.Object id)
Return the edge referenced by the object identifier.
|
EdgeFilterCallback |
getEdgeFilterCallback()
Get the default EdgeFilterCallback associated to this property graph
|
abstract OracleEdgeBase |
getEdgeInstance(java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleEdgeBase.
|
abstract 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.Set<java.lang.String> propertyNames)
Gets the property names of all edges.
|
abstract 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()
Return an
Iterable to all the edges in the graph. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String key)
Return an
Iterable to all the edges in the graph that have a particular key. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String[] keys)
Return an
Iterable to all the edges in the graph that have any of the specified keys. |
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(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. |
abstract 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 key, java.lang.Object value)
Return an iterable to all matching edges that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String key, java.lang.Object value, boolean useWildCard)
Return an iterable to all matching edges that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String key, java.lang.Object value, boolean acceptWildcard, boolean useLuceneSyntax)
Return an iterable to all matching edges that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard)
Return an iterable to all matching edges that have a particular key/value property.
|
abstract java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, boolean useLuceneSyntax)
Return an iterable to all matching edges that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdgesByIds(java.lang.Object[] ids)
Return an iterable to the edges in the graph identified by the specified requestedIds
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdgesByIds(java.lang.Object[] ids, int dop)
Return an iterable to the edges in the graph identified by the specified requestedIds using the specified dop
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdgesUsingTextSearch(java.lang.String query)
Return an iterable to all matching edges that satisfy a particular text search query.
|
java.lang.Iterable<java.util.Map.Entry<java.lang.Object,java.lang.Object>> |
getElementsProperties(java.lang.Object[] ids, java.lang.String propertyName, java.lang.Class<? extends com.tinkerpop.blueprints.Element> elementClass)
Return an iterable of Entry<Long in the graph identified by the specified requestedIds using the specified dop
|
abstract 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) |
java.lang.String |
getGraphName()
This method returns the name of this property graph instance
|
<T extends com.tinkerpop.blueprints.Element> |
getIndex(java.lang.String indexName, java.lang.Class<T> indexClass)
Gets a manual index from the graph by its name and index class.
|
<T extends com.tinkerpop.blueprints.Element> |
getIndexedKeys(java.lang.Class<T> elementClass)
Returns all the index keys associated with a particular element class.
|
<T extends com.tinkerpop.blueprints.Element> |
getIndexParameters(java.lang.String indexName, java.lang.Class<T> indexClass)
Gets the index parameters associated to the given text index.
|
java.lang.Iterable<com.tinkerpop.blueprints.Index<? extends com.tinkerpop.blueprints.Element>> |
getIndices()
Gets all the indices maintained by the graph.
|
java.util.Set<java.lang.Long> |
getInvalidEdgeIDSet()
Gets a set of invalid edges that are stored in the property graph.
|
java.util.Set<java.lang.Long> |
getInvalidEdgeIDSet(int dop)
Gets a set of invalid edges that are stored in the property graph.
|
abstract java.util.Set<java.lang.Long> |
getInvalidEdgeIDSet(int dop, ProgressListener pl)
Gets a set of invalid edges that are stored in the property graph.
|
static OraclePropertyGraphBase.OptimizationFlag |
getJustEdgeIdOptFlag()
This method returns OptimizationFlag.JUST_EDGE_ID
|
static OraclePropertyGraphBase.OptimizationFlag |
getJustVertexIdOptFlag()
This method returns OptimizationFlag.JUST_VERTEX_ID
|
long |
getMaxEdgeID()
Get maximum edge ID
|
long |
getMaxEdgeID(int dop)
Get maximum edge ID using parallel scans and the specified DOP.
|
abstract long |
getMaxEdgeID(int dop, ProgressListener pl)
Get the maximum edge ID using parallel scan and the specified DOP.
|
long |
getMaxVertexID()
Get maximum Vertex ID
|
long |
getMaxVertexID(int dop)
Get maximum vertex ID using parallel scans and the specified DOP.
|
abstract long |
getMaxVertexID(int dop, ProgressListener pl)
Get maximum vertex ID using parallel scans and the specified DOP.
|
long |
getMinEdgeID()
Get the minimum edge ID
|
long |
getMinEdgeID(int dop)
Get the minimum edge ID using parallel scan with dop threads
|
abstract long |
getMinEdgeID(int dop, ProgressListener pl)
Get the minimum edge ID using parallel scan with dop threads
|
long |
getMinVertexID()
Get minimum Vertex ID
|
long |
getMinVertexID(int dop)
Get minimum vertex ID using parallel scans and the specified DOP.
|
abstract long |
getMinVertexID(int dop, ProgressListener pl)
Get minimum vertex ID using parallel scans and the specified DOP.
|
abstract OracleIndexManager |
getOracleIndexManager()
Gets the OracleIndexManager object associated to this property graph instance.
|
ProgressListener |
getProgressListener()
Gets the ProgressListener associated to this property graph.
|
int |
getQueueSize()
This method returns the queue size.
|
java.util.List<com.tinkerpop.blueprints.Vertex> |
getShortestPath(oracle.pgx.api.PgxGraph g, java.lang.Long startVertexID, java.lang.Long endVertexID, java.lang.String weightPropertyName, java.util.List<java.lang.Double> weights)
Finds a shortest path between two vertices using a PGX in-memory analytics.
|
java.util.List<com.tinkerpop.blueprints.Vertex> |
getShortestPath(oracle.pgx.api.PgxGraph g, com.tinkerpop.blueprints.Vertex start, com.tinkerpop.blueprints.Vertex end, java.lang.String weightPropertyName, java.util.List<java.lang.Double> weights)
Finds a shortest path between two vertices using a PGX in-memory analytics.
|
java.text.SimpleDateFormat |
getSimpleDateFormat()
This method returns a SimpleDateFormat object to serialize/de-serialize Date related data
|
static java.lang.String |
getStringForObj(java.lang.Object objVa1)
Get the string representation of the object
|
java.lang.String |
getTextIndexDirectoryPrefix()
This method returns the prefix used when creating a text index directory (or collection)
|
abstract com.tinkerpop.blueprints.Vertex |
getVertex(java.lang.Object id)
Return the vertex referenced by the object identifier.
|
VertexFilterCallback |
getVertexFilterCallback()
Get the default VertexFilterCallback associated to this property graph
|
java.util.Set<java.lang.Long> |
getVertexIDSet()
Gets a set of Vertex IDs that are stored in the property graph
|
java.util.Set<java.lang.Long> |
getVertexIDSet(int dop)
Gets a set of Vertex IDs that are stored in the vertex table of the property graph using parallel scan with dop threads
|
abstract java.util.Set<java.lang.Long> |
getVertexIDSet(int dop, ProgressListener pl)
Gets a set of Vertex IDs that are stored in the vertex table of the property graph using parallel scan with dop threads
|
abstract OracleVertexBase |
getVertexInstance(java.lang.Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleVertexBase.
|
int |
getVertexPropertyNames(int dop, int timeout, java.util.Set<java.lang.String> propertyNames)
Gets the property names of all vertices using parallel scans and the specified DOP.
|
abstract 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.
|
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 key)
Return an
Iterable to all the vertices in the graph that have a particular key. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String[] keys)
Return an
Iterable to all the vertices in the graph that have any of the specified keys. |
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(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. |
abstract 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 key, java.lang.Object value)
Return an iterable to all matching vertices that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String key, java.lang.Object value, boolean useWildCards)
Return an iterable to all matching vertices that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String key, java.lang.Object value, boolean acceptWildcard, boolean useLuceneSyntax)
Return an iterable to all matching vertices that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard)
Return an iterable to all matching vertices that have a particular key/value property.
|
abstract java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, boolean useLuceneSyntax)
Return an iterable to all matching vertices that have a particular key/value property.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVerticesByIds(java.lang.Object[] ids)
Return an iterable to the vertices in the graph identified by the specified requestedIds
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVerticesByIds(java.lang.Object[] ids, int dop)
Return an iterable to the vertices in the graph identified by the specified requestedIds using the specified dop
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVerticesUsingTextSearch(java.lang.String query)
Return an iterable to all matching vertices that satisfy a particular text search query.
|
boolean |
isDisposed()
Validates if the graph is already disposed
|
boolean |
isEdgeAutoIndexEnabled(java.lang.String key)
Validates if the edge auto index is currently enabled
|
boolean |
isEmpty()
Checks if this property graph is empty
|
boolean |
isShutdown()
Validates if the graph is already shutdown
|
boolean |
isTransientPropertyGraphInstance()
Verifies if this is a transient property graph instance.
|
boolean |
isVertexAutoIndexEnabled(java.lang.String key)
Validates if the vertex auto index is currently enabled
|
com.tinkerpop.blueprints.GraphQuery |
query()
Returns a GraphQuery to query for vertices or edges in the graph by their properties.
|
void |
refreshAutoIndices()
Refreshes all automatic indices based to the most up-to-date state of the property graph.
|
void |
removeAttributeFromAllEdges(EdgeOpCallback eoc)
Removes an attribute from all edges satisfying the criterias specified in the given
EdgeOpCallback . |
void |
removeAttributeFromAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop)
Removes an attribute from all edges satisfying the criterias specified in the given
EdgeOpCallback . |
abstract void |
removeAttributeFromAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop, ProgressListener pl)
Removes an attribute from all edges satisfying the criterias specified in the given
EdgeOpCallback . |
void |
removeAttributeFromAllVertices(VertexOpCallback voc)
Removes an attribute from all vertices satisfying the criterias specified in the given
VertexOpCallback . |
void |
removeAttributeFromAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop)
Removes an attribute from all vertices satisfying the criterias specified in the given
VertexOpCallback . |
abstract void |
removeAttributeFromAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop, ProgressListener pl)
Removes an attribute from all vertices satisfying the criterias specified in the given
VertexOpCallback . |
abstract void |
removeEdge(com.tinkerpop.blueprints.Edge edge)
Remove the provided edge from the graph
|
void |
rollback()
Rollbacks the operations done to this property graph instance
|
static java.lang.String |
serializableToStr(java.io.Serializable seri)
Convert from a Java Serializable object to a String encoding.
|
void |
setBatchSize(int batchsize)
Set the size of the batch used for update operations.
|
void |
setDefaultEdgeOptFlag(OraclePropertyGraphBase.OptimizationFlag eof)
Set the default edge optimization flag associated to this property graph.
|
void |
setDefaultIndexParameters(OracleIndexParameters indexParams)
Set the default index parameters associated to this property graph.
|
void |
setDefaultVertexOptFlag(OraclePropertyGraphBase.OptimizationFlag vof)
Set the default vertex optimization flag associated to this property graph
|
void |
setEdgeFilterCallback(EdgeFilterCallback efc)
Set the default EdgeFilterCallback associated to this property graph
|
void |
setProgressListener(ProgressListener pl)
Sets the ProgressListener associated to this property graph.
|
void |
setQueueSize(int size)
This method sets the queue size.
|
void |
setSolrJavaBinFormat(boolean bSolrJavaBinFormat)
Set the flag to determine if the SolrCloud server will use a Binary format for the query responses
|
void |
setTransientPropertyGraphInstance(boolean flag)
Specifies if this property graph instance is a transient instance.
|
void |
setVertexFilterCallback(VertexFilterCallback vfc)
Set the default VertexFilterCallback associated to this property graph
|
void |
startTransaction()
Start a transaction.
|
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
Stop the current transaction.
|
static java.lang.Object |
strToSerializable(java.lang.String s)
Convert from a String encoding to a Serializable object
|
double |
sum(java.util.List<java.lang.Double> val)
Adds up a list of double values and return the sum.
|
boolean |
useSolrJavaBinFormat()
Specifies if the SolrCloud server will use a Binary format for the query responses
|
public static final java.lang.String[] CSV_DATE_TIME_FORMATS
public static final java.lang.String CSV_DT_KEYWORD_BOOLEAN
public static final java.lang.String CSV_DT_KEYWORD_BYTE
public static final java.lang.String CSV_DT_KEYWORD_CHAR
public static final java.lang.String CSV_DT_KEYWORD_DATE
public static final java.lang.String CSV_DT_KEYWORD_DOUBLE
public static final java.lang.String CSV_DT_KEYWORD_FLOAT
public static final java.lang.String CSV_DT_KEYWORD_INTEGER
public static final java.lang.String CSV_DT_KEYWORD_JSON
public static final java.lang.String CSV_DT_KEYWORD_LONG
public static final java.lang.String CSV_DT_KEYWORD_RDF
public static final java.lang.String CSV_DT_KEYWORD_SHORT
public static final java.lang.String CSV_DT_KEYWORD_SPATIAL
public static final java.lang.String CSV_DT_KEYWORD_STRING
public static final java.lang.String OPG_DATETIME_FORMAT
public static final int TYPE_DT_BOOL
public static final int TYPE_DT_BYTE
public static final int TYPE_DT_CHAR
public static final int TYPE_DT_DATE
public static final int TYPE_DT_DOUBLE
public static final int TYPE_DT_EMPTY
public static final int TYPE_DT_FLOAT
public static final int TYPE_DT_INTEGER
public static final int TYPE_DT_JSON
public static final int TYPE_DT_LONG
public static final int TYPE_DT_SERI
public static final int TYPE_DT_SHORT
public static final int TYPE_DT_SPATIAL
public static final int TYPE_DT_STRING
public static final int TYPE_DT_URI
public final void addAttributeToAllEdges(EdgeOpCallback eoc)
EdgeOpCallback
.eoc
- an EdgeOpCallback
object.public final void addAttributeToAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop)
EdgeOpCallback
.eoc
- 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.public abstract void addAttributeToAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop, ProgressListener pl)
EdgeOpCallback
.eoc
- 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 final void addAttributeToAllVertices(VertexOpCallback voc)
VertexOpCallback
.voc
- a VertexOpCallback
object.public final void addAttributeToAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop)
VertexOpCallback
.voc
- 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.public abstract void addAttributeToAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop, ProgressListener pl)
VertexOpCallback
.voc
- 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 abstract 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.Graph
id
- the id of the vertexoutVertex
- has to be of type OracleVertexinVertex
- has to be of type OracleVertexlabel
- edge labelEdge
object.public abstract com.tinkerpop.blueprints.Vertex addVertex(java.lang.Object id)
addVertex
in interface com.tinkerpop.blueprints.Graph
id
- the id of the vertexVertex
object.public abstract void clearCache()
public abstract void clearRepository() throws java.lang.Exception
java.lang.Exception
public final void commitIndices()
public final long countEdges()
public final long countEdges(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the edges.public abstract long countEdges(int dop, ProgressListener pll)
dop
- a positive integer defining the number of threads to use when parallel scanning the edges.public final long countVertices()
public final long countVertices(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the vertices table.public abstract long countVertices(int dop, ProgressListener pll)
dop
- a positive integer defining the number of threads to use when parallel scanning the vertices.pll
- a ProgressListener object.public final <T extends com.tinkerpop.blueprints.Element> com.tinkerpop.blueprints.Index<T> createIndex(java.lang.String indexName, java.lang.Class<T> indexClass, com.tinkerpop.blueprints.Parameter... indexParameters)
createIndex
in interface com.tinkerpop.blueprints.IndexableGraph
indexName
- the name of the indexindexClass
- the element class that this index is indexing (can be base class)indexParameters
- a collection of parameters for the underlying index implementationpublic final <T extends com.tinkerpop.blueprints.Element> void createKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass)
keys
- an array of keys to create the index for.elementClass
- the element class that the index is for.public final <T extends com.tinkerpop.blueprints.Element> void createKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass, com.tinkerpop.blueprints.Parameter... parameters)
keys
- an array of keys to create the index for.elementClass
- the element class that the index is for.parameters
- the parameters used by the indexing structure. If the index is already defined, this parameters will not be considered. To take into consideration the parameters for the creation of an index, first drop the existing index and recreate.public final <T extends com.tinkerpop.blueprints.Element> void createKeyIndex(java.lang.String key, java.lang.Class<T> elementClass, com.tinkerpop.blueprints.Parameter... parameters)
createKeyIndex
in interface com.tinkerpop.blueprints.KeyIndexableGraph
key
- the key to create the index for.elementClass
- the element class that the index is for.parameters
- the parameters used by the indexing structure. If the index is already defined, this parameters will not be considered. To take into consideration the parameters for the creation of an index, first drop the existing index and recreate.public final void dropAllAutoIndices()
public final void dropAllIndices()
public final void dropAllManualIndices()
public final void dropIndex(java.lang.String indexName)
dropIndex
in interface com.tinkerpop.blueprints.IndexableGraph
indexName
- the name of the index to droppublic final <T extends com.tinkerpop.blueprints.Element> void dropKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass)
keys
- an array of keys to drop the index for.elementClass
- the element class that the index is for.public final <T extends com.tinkerpop.blueprints.Element> void dropKeyIndex(java.lang.String[] keys, java.lang.Class<T> elementClass, com.tinkerpop.blueprints.Parameter... parameters)
keys
- an array of keys to drop the index for.elementClass
- the element class that the index is for.parameters
- the parameters used by the indexing structure. If the index is already defined, this parameters will not be considered. To take into consideration the parameters for the creation of an index, first drop the existing index and recreate.public final <T extends com.tinkerpop.blueprints.Element> void dropKeyIndex(java.lang.String key, java.lang.Class<T> elementClass)
dropKeyIndex
in interface com.tinkerpop.blueprints.KeyIndexableGraph
key
- the key to drop the index for.elementClass
- the element class that the index is for.public java.lang.Iterable<com.tinkerpop.blueprints.Edge> getAdjacentEdgesFromVertices(java.lang.Object[] ids, com.tinkerpop.blueprints.Direction direction, java.lang.String[] labels, int dop)
ids
- an array of requestedIdsdop
- the degree of parallelism to use when searching for the verticespublic java.lang.Iterable<com.tinkerpop.blueprints.Edge> getAdjacentEdgesFromVertices(java.lang.Object[] ids, java.lang.String[] labels, com.tinkerpop.blueprints.Direction direction)
ids
- an array of requestedIdspublic final <T extends com.tinkerpop.blueprints.Element> com.tinkerpop.blueprints.Index<T> getAutoIndex(java.lang.Class<T> indexClass)
indexClass
- the element class that the index is for.public int getBatchSize()
public oracle.pgx.config.AbstractPgGraphConfig getConfig()
public java.lang.Class getDatatypeClassFromValueObjForTextIndex(java.lang.Object value)
public final OraclePropertyGraphBase.OptimizationFlag getDefaultEdgeOptFlag()
public final OracleIndexParameters getDefaultIndexParameters()
OracleIndexParameters
object.public final OraclePropertyGraphBase.OptimizationFlag getDefaultVertexOptFlag()
public abstract com.tinkerpop.blueprints.Edge getEdge(java.lang.Object id)
getEdge
in interface com.tinkerpop.blueprints.Graph
id
- the object identifier of the referenced edgeEdge
objectpublic final EdgeFilterCallback getEdgeFilterCallback()
EdgeFilterCallback
objectpublic abstract OracleEdgeBase getEdgeInstance(java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
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 abstract OracleEdgeBase getEdgeInstance(OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
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 final int getEdgePropertyNames(int dop, int timeout, java.util.Set<java.lang.String> propertyNames)
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 returnedpublic abstract 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 java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges()
Iterable
to all the edges in the graph.getEdges
in interface com.tinkerpop.blueprints.Graph
public final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String key)
Iterable
to all the edges in the graph that have a particular key.key
- name of the property. It can be NULL which implies all edges in the graph will be returned.public final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(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 final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(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 abstract 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.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 final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String key, java.lang.Object value)
getEdges
in interface com.tinkerpop.blueprints.Graph
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 edges with the given key to be returned.public final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String key, java.lang.Object value, boolean useWildCard)
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 edges with the given key to be returned.useWildCard
- 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.public final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String key, java.lang.Object value, boolean acceptWildcard, boolean useLuceneSyntax)
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 edges with the given key to be returned.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.useLuceneSyntax
- specifies if the value object is using an Apache Lucene Syntax (further details on Apache Lucene Syntax can be found in https://lucene.apache.org/core/2_9_4/queryparsersyntax.html). If the automatic index is not enabled ahd this flag is set to true, an Exception will be thrown as Lucene Syntax is not supported for database lookups.public final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard)
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 edges with the given key to be returned.dtClass
- the class representing the datatype of the property value. This can be used to cast the property value to a different datatype. For example, if the value is "3.01" and dtClass is Float.Class, then this value will be treated as a 3.01f. If dtClass is set to NULL, then the query will be executed by trying to match the value object to all the supported datatypes.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.public abstract java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, boolean useLuceneSyntax)
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 edges with the given key to be returned.dtClass
- the class representing the datatype of the property value. This can be used to cast the property value to a different datatype. For example, if the value is "3.01" and dtClass is Float.Class, then this value will be treated as a 3.01f. If dtClass is set to NULL, then the query will be executed by trying to match the value object to all the supported datatypes.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.useLuceneSyntax
- specifies if the value object is using an Apache Lucene Syntax (further details on Apache Lucene Syntax can be found in https://lucene.apache.org/core/2_9_4/queryparsersyntax.html). If the automatic index is not enabled ahd this flag is set to true, an Exception will be thrown as Lucene Syntax is not supported for database lookups.public java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdgesByIds(java.lang.Object[] ids)
ids
- an array of requestedIdspublic java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdgesByIds(java.lang.Object[] ids, int dop)
ids
- an array of requestedIdsdop
- the degree of parallelism used when searching for the edgespublic final java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdgesUsingTextSearch(java.lang.String query)
query
- the text query to execute. It MUST not be NULL.public java.lang.Iterable<java.util.Map.Entry<java.lang.Object,java.lang.Object>> getElementsProperties(java.lang.Object[] ids, java.lang.String propertyName, java.lang.Class<? extends com.tinkerpop.blueprints.Element> elementClass)
ids
- an array of requestedIdspublic abstract 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)
public java.lang.String getGraphName()
public final <T extends com.tinkerpop.blueprints.Element> com.tinkerpop.blueprints.Index<T> getIndex(java.lang.String indexName, java.lang.Class<T> indexClass)
getIndex
in interface com.tinkerpop.blueprints.IndexableGraph
indexName
- the name of the manual index to retrieve.indexClass
- the element class that the index is for.public final <T extends com.tinkerpop.blueprints.Element> java.util.Set<java.lang.String> getIndexedKeys(java.lang.Class<T> elementClass)
getIndexedKeys
in interface com.tinkerpop.blueprints.KeyIndexableGraph
elementClass
- the element class that the index is for.public <T extends com.tinkerpop.blueprints.Element> OracleIndexParameters getIndexParameters(java.lang.String indexName, java.lang.Class<T> indexClass)
indexName
- the name of the manual index to retrieve.indexClass
- the element class that the index is for.OracleIndexParameters
object.public final java.lang.Iterable<com.tinkerpop.blueprints.Index<? extends com.tinkerpop.blueprints.Element>> getIndices()
getIndices
in interface com.tinkerpop.blueprints.IndexableGraph
public final java.util.Set<java.lang.Long> getInvalidEdgeIDSet()
public final java.util.Set<java.lang.Long> getInvalidEdgeIDSet(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the vertices and the edge tables.public abstract 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 static OraclePropertyGraphBase.OptimizationFlag getJustEdgeIdOptFlag()
public static OraclePropertyGraphBase.OptimizationFlag getJustVertexIdOptFlag()
public final long getMaxEdgeID()
public final long getMaxEdgeID(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the edges.public abstract long getMaxEdgeID(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 final long getMaxVertexID()
public final long getMaxVertexID(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the vertices.public abstract 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 final long getMinEdgeID()
public final long getMinEdgeID(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the edges.public abstract long getMinEdgeID(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 final long getMinVertexID()
public final long getMinVertexID(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the vertices.public abstract 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 abstract OracleIndexManager getOracleIndexManager()
OracleIndexManager
object.public final ProgressListener getProgressListener()
public final int getQueueSize()
public java.util.List<com.tinkerpop.blueprints.Vertex> getShortestPath(oracle.pgx.api.PgxGraph g, java.lang.Long startVertexID, java.lang.Long endVertexID, java.lang.String weightPropertyName, java.util.List<java.lang.Double> weights) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
g
- a PgxGraph
object.startVertexID
- the start vertex IDendVertexID
- the end vertex IDweightPropertyName
- the property name that will be used to define the weight of the edges in the graphweights
- a list that will be populated with the weights of each edge in the shortest pathjava.lang.InterruptedException
java.util.concurrent.ExecutionException
public java.util.List<com.tinkerpop.blueprints.Vertex> getShortestPath(oracle.pgx.api.PgxGraph g, com.tinkerpop.blueprints.Vertex start, com.tinkerpop.blueprints.Vertex end, java.lang.String weightPropertyName, java.util.List<java.lang.Double> weights) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
g
- a PgxGraph
object.start
- the start vertexend
- the end vertexweightPropertyName
- the property name that will be used to define the weight of the edges in the graphweights
- a list that will be populated with the weights of each edge in the shortest pathjava.lang.InterruptedException
java.util.concurrent.ExecutionException
public final java.text.SimpleDateFormat getSimpleDateFormat()
public static final java.lang.String getStringForObj(java.lang.Object objVa1)
objVa1
- an objectpublic java.lang.String getTextIndexDirectoryPrefix()
public abstract com.tinkerpop.blueprints.Vertex getVertex(java.lang.Object id)
getVertex
in interface com.tinkerpop.blueprints.Graph
id
- the object identifier of the referenced vertexVertex
objectpublic final VertexFilterCallback getVertexFilterCallback()
VertexFilterCallback
objectpublic final java.util.Set<java.lang.Long> getVertexIDSet()
public java.util.Set<java.lang.Long> getVertexIDSet(int dop)
dop
- a positive integer defining the number of threads to use when parallel scanning the vertices table.public abstract 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 abstract OracleVertexBase getVertexInstance(java.lang.Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
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 final int getVertexPropertyNames(int dop, int timeout, java.util.Set<java.lang.String> propertyNames)
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 returnedpublic abstract 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 java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
getVertices
in interface com.tinkerpop.blueprints.Graph
public final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String key)
Iterable
to all the vertices in the graph that have a particular key.key
- name of the property. It can be NULL which implies all vertices in the graph will be returned.public final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(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 final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(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 abstract 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.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 final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String key, java.lang.Object value)
getVertices
in interface com.tinkerpop.blueprints.Graph
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.public final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String key, java.lang.Object value, boolean useWildCards)
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.useWildCards
- 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.public final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String key, java.lang.Object value, boolean acceptWildcard, boolean useLuceneSyntax)
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.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.useLuceneSyntax
- specifies if the value object is using an Apache Lucene Syntax (further details on Apache Lucene Syntax can be found in https://lucene.apache.org/core/2_9_4/queryparsersyntax.html). If the automatic index is not enabled ahd this flag is set to true, an Exception will be thrown as Lucene Syntax is not supported for database lookups.public final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard)
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 class representing the datatype of the property value. This can be used to cast the property value to a different datatype. For example, if the value is "3.01" and dtClass is Float.Class, then this value will be treated as a 3.01f. If dtClass is set to NULL, then the query will be executed by trying to match the value object to all the supported datatypes.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.public abstract java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(java.lang.String key, java.lang.Object value, java.lang.Class dtClass, boolean acceptWildcard, boolean useLuceneSyntax)
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 class representing the datatype of the property value. This can be used to cast the property value to a different datatype. For example, if the value is "3.01" and dtClass is Float.Class, then this value will be treated as a 3.01f. If dtClass is set to NULL, then the query will be executed by trying to match the value object to all the supported datatypes.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.useLuceneSyntax
- specifies if the value object is using an Apache Lucene Syntax (further details on Apache Lucene Syntax can be found in https://lucene.apache.org/core/2_9_4/queryparsersyntax.html). If the automatic index is not enabled ahd this flag is set to true, an Exception will be thrown as Lucene Syntax is not supported for database lookups.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVerticesByIds(java.lang.Object[] ids)
ids
- an array of requestedIdspublic java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVerticesByIds(java.lang.Object[] ids, int dop)
ids
- an array of requestedIdsdop
- the degree of parallelism to use when searching for the verticespublic final java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVerticesUsingTextSearch(java.lang.String query)
query
- the text query to execute. It MUST not be NULL.public boolean isDisposed()
public final boolean isEdgeAutoIndexEnabled(java.lang.String key)
public final boolean isEmpty() throws java.io.IOException
java.io.IOException
public boolean isShutdown()
public boolean isTransientPropertyGraphInstance()
public final boolean isVertexAutoIndexEnabled(java.lang.String key)
public final com.tinkerpop.blueprints.GraphQuery query()
query
in interface com.tinkerpop.blueprints.Graph
public final void refreshAutoIndices()
public final void removeAttributeFromAllEdges(EdgeOpCallback eoc)
EdgeOpCallback
.eoc
- a EdgeOpCallback
object.public final void removeAttributeFromAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop)
EdgeOpCallback
.eoc
- 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.public abstract void removeAttributeFromAllEdges(EdgeOpCallback eoc, boolean skipStoreToCache, int dop, ProgressListener pl)
EdgeOpCallback
.eoc
- 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 final void removeAttributeFromAllVertices(VertexOpCallback voc)
VertexOpCallback
.voc
- a VertexOpCallback
object.public final void removeAttributeFromAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop)
VertexOpCallback
.voc
- 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.public abstract void removeAttributeFromAllVertices(VertexOpCallback voc, boolean skipStoreToCache, int dop, ProgressListener pl)
VertexOpCallback
.voc
- 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 abstract void removeEdge(com.tinkerpop.blueprints.Edge edge)
removeEdge
in interface com.tinkerpop.blueprints.Graph
edge
- an Edge
object to be removedpublic void rollback()
rollback
in interface com.tinkerpop.blueprints.TransactionalGraph
public static final java.lang.String serializableToStr(java.io.Serializable seri) throws java.io.IOException
seri
- an object of Serializable type. It must not be null.java.io.IOException
public void setBatchSize(int batchsize)
batchsize
- the size of the batch used for update operations.public final void setDefaultEdgeOptFlag(OraclePropertyGraphBase.OptimizationFlag eof)
eof
- an edge OptimizationFlag object to be set to this property graphpublic final void setDefaultIndexParameters(OracleIndexParameters indexParams)
indexParams
- a OracleIndexParameters
object.public final void setDefaultVertexOptFlag(OraclePropertyGraphBase.OptimizationFlag vof)
vof
- an OptimizationFlag object to be set to this property graphpublic final void setEdgeFilterCallback(EdgeFilterCallback efc)
efc
- a EdgeFilterCallback
object to be set to this property graphpublic final void setProgressListener(ProgressListener pl)
pl
- a ProgressListener object.public final void setQueueSize(int size)
size
- the size of the queuepublic void setSolrJavaBinFormat(boolean bSolrJavaBinFormat)
public void setTransientPropertyGraphInstance(boolean flag)
public final void setVertexFilterCallback(VertexFilterCallback vfc)
vfc
- a VertexFilterCallback
object to be set to this property graphpublic final void startTransaction()
public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
stopTransaction
in interface com.tinkerpop.blueprints.TransactionalGraph
public static final java.lang.Object strToSerializable(java.lang.String s) throws java.io.IOException
s
- String representation of a Java Serializable object. It MUST not be null.java.io.IOException
public double sum(java.util.List<java.lang.Double> val)
val
- a list of Double values.public boolean useSolrJavaBinFormat()
Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.