public abstract class OraclePropertyGraphBase extends Object implements Graph, TransactionalGraph, IndexableGraph, KeyIndexableGraph
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.
|
TransactionalGraph.Conclusion
Modifier and Type | Field and Description |
---|---|
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_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_SERI
This constant denotes a Serializable 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)
|
Modifier and Type | Method and Description |
---|---|
abstract void |
clearRepository()
This method removes all vertices and edges from this property graph instance.
|
abstract void |
dropAllIndices()
Drops all existing indices
|
oracle.pgx.config.AbstractPgGraphConfig |
getConfig()
Gets the PGX graph config object
|
abstract OracleIndexParameters |
getDefaultIndexParameters()
Get the default index parameters associated to this property graph.
|
abstract OracleEdgeBase |
getEdgeInstance(Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleEdgeBase.
|
abstract OracleEdgeBase |
getEdgeInstance(OracleVertexBase outVertex, OracleVertexBase inVertex, String edgeLabel, Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleEdge
|
abstract Iterable<Edge> |
getEdges(String key)
Return an iterable to all the edges in the graph that have a particular key.
|
abstract Iterable<Edge> |
getEdges(String[] keys)
Return an iterable to all the edges in the graph that have any of the specified keys.
|
abstract Iterable<Edge> |
getEdges(String key, Object value, boolean useWildCards)
Return an iterable to all matching edges that have a particular key/value property.
|
abstract Iterable<Edge> |
getEdges(String key, Object value, Class dataType, boolean useWildCards)
Return an iterable to all matching edges that have a particular key/value property.
|
String |
getGraphName()
This method returns the name of this property graph instance
|
abstract OracleIndexManager |
getOracleIndexManager() |
List<Vertex> |
getShortestPath(oracle.pgx.api.PgxGraph g, Long startVertexID, Long endVertexID, String weightPropertyName, List<Double> weights)
This method finds a shortest path.
|
List<Vertex> |
getShortestPath(oracle.pgx.api.PgxGraph g, Vertex start, Vertex end, String weightPropertyName, List<Double> weights)
This method finds a shortest path.
|
abstract OracleVertexBase |
getVertexInstance(Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache) |
int |
getVertexPropertyNames(int dop, int timeout, List<String> propertyNames)
Gets the property names of all vertices.
|
int |
getVertexPropertyNames(int dop, int timeout, List<String> propertyNames, ProgressListener pl)
Gets the property names of all vertices using ParallelScanners and the specified DOP.
|
abstract Iterable<Vertex> |
getVertices(String key)
Return an iterable to all the vertices in the graph that have a particular key.
|
abstract Iterable<Vertex> |
getVertices(String[] keys)
Return an iterable to all the vertices in the graph that have any of the specified keys.
|
abstract Iterable<Vertex> |
getVertices(String key, Object value, boolean useWildCards)
Return an iterable to all matching vertices that have a particular key/value property.
|
abstract Iterable<Vertex> |
getVertices(String key, Object value, Class dataType, boolean useWildCards)
Return an iterable to all matching vertices that have a particular key/value property.
|
static String |
serializableToStr(Serializable seri)
Convert from a Java Serializable object to a String encoding.
|
abstract void |
setDefaultIndexParameters(OracleIndexParameters indexParams)
Set the default index parameters associated to this property graph.
|
static Object |
strToSerializable(String s)
Convert from a String encoding to a Serializable object
|
double |
sum(List<Double> val)
This helper function adds up a list of double values and return the sum.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commit, rollback, shutdown, stopTransaction
createIndex, dropIndex, getIndex, getIndices
createKeyIndex, dropKeyIndex, getIndexedKeys
addEdge, addVertex, getEdge, getEdges, getEdges, getFeatures, getVertex, getVertices, getVertices, query, removeEdge, removeVertex
public static final int TYPE_DT_BOOL
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_SERI
public static final int TYPE_DT_STRING
public abstract void clearRepository() throws Exception
Exception
public abstract void dropAllIndices()
public oracle.pgx.config.AbstractPgGraphConfig getConfig()
public abstract OracleIndexParameters getDefaultIndexParameters()
OracleIndexParameters
object.public abstract OracleEdgeBase getEdgeInstance(Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
public abstract OracleEdgeBase getEdgeInstance(OracleVertexBase outVertex, OracleVertexBase inVertex, String edgeLabel, Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
public abstract Iterable<Edge> getEdges(String key)
key
- name of the property. It can be NULL which implies all edges in the graph will be returned.public abstract Iterable<Edge> getEdges(String[] keys)
keys
- an array of property key names. It can be NULL which implies all edges in the graph will be returned.public abstract Iterable<Edge> getEdges(String key, 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 edges 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 abstract Iterable<Edge> getEdges(String key, Object value, Class dataType, 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 edges with the given key to be returned.dataType
- the datatype of the value object.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 String getGraphName()
public abstract OracleIndexManager getOracleIndexManager()
public List<Vertex> getShortestPath(oracle.pgx.api.PgxGraph g, Long startVertexID, Long endVertexID, String weightPropertyName, List<Double> weights) throws InterruptedException, ExecutionException
InterruptedException
ExecutionException
public List<Vertex> getShortestPath(oracle.pgx.api.PgxGraph g, Vertex start, Vertex end, String weightPropertyName, List<Double> weights) throws InterruptedException, ExecutionException
InterruptedException
ExecutionException
public abstract OracleVertexBase getVertexInstance(Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
public int getVertexPropertyNames(int dop, int timeout, List<String> propertyNames)
dop
- degree of parallelismtimeout
- maximum time (in seconds) to scan for property namespropertyNames
- a output list to hold the property names foundpublic int getVertexPropertyNames(int dop, int timeout, List<String> propertyNames, ProgressListener pl)
dop
- a positive integer defining the number of threads to use when parallel scanning the vertices.timeout
- maximum time (in seconds) to scan for property namespl
- a ProgressListener object.public abstract Iterable<Vertex> getVertices(String key)
key
- name of the property. It can be NULL which implies all vertices in the graph will be returned.public abstract Iterable<Vertex> getVertices(String[] keys)
keys
- an array of property key names. It can be NULL which implies all vertices in the graph will be returned.public abstract Iterable<Vertex> getVertices(String key, 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 abstract Iterable<Vertex> getVertices(String key, Object value, Class dataType, 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.dataType
- the datatype of the value objectuseWildCards
- 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 static String serializableToStr(Serializable seri) throws IOException
seri
- an object of Serializable type. It must not be null.IOException
public abstract void setDefaultIndexParameters(OracleIndexParameters indexParams)
indexParams
- a OracleIndexParameters
object.public static Object strToSerializable(String s) throws IOException
s
- String representation of a Java Serializable object. It MUST not be null.IOException
Copyright © 2015 Oracle and/or its afflilates. All Rights Reserved.