public abstract class SQLAnalyticsGraph extends OraclePropertyGraphBase implements OraclePropertyGraphAnalytics
Modifier and Type | Class and Description |
---|---|
static class |
SQLAnalyticsGraph.Sort
This enumeration denotes the sorting order for function getTopK
|
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
Constructor and Description |
---|
SQLAnalyticsGraph() |
SQLAnalyticsGraph(PgRdbmsGraphConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
analyze(float estimatePercent,
java.lang.String methodOpt)
Collects statistics for this graph.
|
void |
analyze(float estimatePercent,
java.lang.String methodOpt,
int dop)
Collects statistics for this graph.
|
void |
analyze(int dop)
Collects statistics for this graph.
|
void |
analyzeAuto(int dop)
Collects statistics for this graph.
|
void |
collaborativeFiltering(java.lang.String szEdgeTabName,
java.lang.String szLabel,
java.lang.String szRatingProperty,
int iterations,
double minError,
int features,
double learningRate,
double decreaseRate,
double regularizationParam,
int dop,
java.lang.StringBuilder sbLeft,
java.lang.StringBuilder sbRight,
java.lang.StringBuilder sbLeft1,
java.lang.StringBuilder sbRight1,
java.lang.StringBuilder sbMatrixProduct,
java.lang.StringBuilder sbLeftDelta,
java.lang.StringBuilder sbRightDelta,
java.lang.String szTBS,
java.lang.String szOptions)
This method performs collaborative filtering using matrix factorization on the graph.
|
java.lang.Double |
collaborativeFilteringCheckIntermediateError(double regularizationParam,
int dop,
java.lang.StringBuilder sbMatrixProduct)
This method checks the intermediate error in the collaborative filtering using matrix factorization on the graph.
|
void |
collaborativeFilteringCleanup(java.lang.String szEdgeTabName,
java.lang.StringBuilder sbLeft,
java.lang.StringBuilder sbRight,
java.lang.StringBuilder sbLeft1,
java.lang.StringBuilder sbRight1,
java.lang.StringBuilder sbMatrixProduct,
java.lang.StringBuilder sbLeftDelta,
java.lang.StringBuilder sbRightDelta,
java.lang.String szOptions)
This method does cleanup work after running graph collaborative filtering.
|
java.lang.Double |
collaborativeFilteringGetRecommendation(java.lang.String szEdgeTabName,
int dop,
long srcVertex,
long dstVertex,
java.lang.StringBuilder sbLeft,
java.lang.StringBuilder sbRight)
This method gets the recommendation result of the collaborative filtering using matrix factorization on the graph.
|
void |
collaborativeFilteringPrep(java.lang.String szEdgeTabName,
java.lang.StringBuilder sbLeft,
java.lang.StringBuilder sbRight,
java.lang.StringBuilder sbLeft1,
java.lang.StringBuilder sbRight1,
java.lang.StringBuilder sbMatrixProduct,
java.lang.StringBuilder sbLeftDelta,
java.lang.StringBuilder sbRightDelta,
java.lang.String szOptions)
This method does preparation work before running the collaborative filtering on the graph.
|
static long |
countTriangle(java.sql.Connection conn,
java.lang.String szEdgeTabName,
java.lang.StringBuilder sbUndirWorkTab,
int iNumSubPtns,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
Returns the number of triangles that exist
in this graph.
|
long |
countTriangle(java.lang.StringBuilder sbUndirWorkTab)
Returns the number of triangles that exist
in this graph which is treated as undirected.
|
long |
countTriangle(java.lang.StringBuilder sbUndirWorkTab,
int iNumSubPtns,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
Returns the number of triangles that exist
in this graph.
|
void |
countTriangleCleanup(java.lang.StringBuilder sbUndirBMTab,
java.lang.StringBuilder sbMapWorkTab,
java.lang.StringBuilder sbUndirAMTab,
java.lang.String szOptions)
This method does cleanup work after running triangle calculations.
|
void |
countTrianglePrep(java.lang.StringBuilder sbUndirBMTab,
java.lang.StringBuilder sbMapWorkTab,
java.lang.StringBuilder sbUndirAMTab,
java.lang.String szOptions)
This method does preparation work before running triangle calculations.
|
static long |
countTriangleRenum(java.sql.Connection conn,
java.lang.String szEdgeTabName,
java.lang.StringBuilder sbUndirBMTab,
java.lang.StringBuilder sbMapWorkTab,
java.lang.StringBuilder sbUndirAMTab,
int iNumSubPtns,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
Returns the number of triangles that exist
in this graph (treated as undirected).
|
long |
countTriangleRenum(java.lang.StringBuilder sbUndirBMTab,
java.lang.StringBuilder sbMapWorkTab,
java.lang.StringBuilder sbUndirAMTab,
int iNumSubPtns,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
Returns the number of triangles that exist
in this graph (treated as undirected).
|
void |
createStatTable(java.lang.String statTableName)
Creates a stat table using DBMS_STATS package.
|
static long |
estimateTriangleRenum(java.sql.Connection conn,
java.lang.String szEdgeTabName,
java.lang.StringBuilder sbUndirBMTab,
java.lang.StringBuilder sbMapWorkTab,
java.lang.StringBuilder sbUndirAMTab,
int iNumSubPtns,
int iChunk,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
This method estimates the number of triangles that exist
in this graph (treated as undirected).
|
long |
estimateTriangleRenum(java.lang.StringBuilder sbUndirBMTab,
java.lang.StringBuilder sbMapWorkTab,
java.lang.StringBuilder sbUndirAMTab,
int iNumSubPtns,
int iChunk,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
This method estimates the number of triangles that exist
in this graph (treated as undirected).
|
void |
expEdgeStat(java.lang.String statTableName,
java.lang.String statid)
Exports the edge table statistics into the given stat table.
|
void |
expVertexStat(java.lang.String statTableName,
java.lang.String statid)
Exports the vertex table statistics into the given stat table.
|
static void |
findCluster(java.sql.Connection conn,
java.lang.String szEdgeTabName,
java.lang.StringBuilder sbClusters,
java.lang.StringBuilder sbUndir,
java.lang.StringBuilder sbCluas,
java.lang.StringBuilder sbNewas,
java.lang.StringBuilder sbDelta,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
This method finds clusters in a given graph (treated as undirected).
|
void |
findCluster(java.lang.StringBuilder sbClusters,
java.lang.StringBuilder sbUndir,
java.lang.StringBuilder sbCluas,
java.lang.StringBuilder sbNewas,
java.lang.StringBuilder sbDelta,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
This method finds clusters in this property graph (treated as undirected).
|
void |
findClusterCleanup(java.lang.StringBuilder sbClusters,
java.lang.StringBuilder sbUndir,
java.lang.StringBuilder sbCluas,
java.lang.StringBuilder sbNewas,
java.lang.StringBuilder sbDelta,
java.lang.String szOptions)
This method does cleanup work after running graph cluster detection.
|
void |
findClusterPrep(java.lang.StringBuilder sbClusters,
java.lang.StringBuilder sbUndir,
java.lang.StringBuilder sbCluas,
java.lang.StringBuilder sbNewas,
java.lang.StringBuilder sbDelta,
java.lang.String szOptions)
This method does preparation work before running graph cluster detection.
|
abstract java.lang.String |
getEdgeTabName() |
abstract Oracle |
getOracle() |
static java.sql.ResultSet |
getTopK(java.sql.Connection conn,
java.lang.StringBuilder sbTabName,
int iColIdx,
SQLAnalyticsGraph.Sort sort,
int k,
int iDOP)
Returns the top K rows of a given table.
|
java.sql.ResultSet |
getTopK(java.lang.StringBuilder sbTabName,
int iColIdx,
SQLAnalyticsGraph.Sort sort,
int k)
Returns the top K rows of a given table.
|
java.sql.ResultSet |
getTopK(java.lang.StringBuilder sbTabName,
int iColIdx,
SQLAnalyticsGraph.Sort sort,
int k,
int iDOP)
Returns the top K rows of a given table.
|
void |
impEdgeStat(java.lang.String statTableName,
java.lang.String statid)
Imports the edge table statistics from the given stat table.
|
void |
impVertexStat(java.lang.String statTableName,
java.lang.String statid)
Imports the vertex table statistics from the given stat table.
|
static long |
pageRank(java.sql.Connection conn,
java.lang.String szEdgeTabName,
java.lang.StringBuilder sbNodePR,
java.lang.StringBuilder sbNodeNextPR,
java.lang.StringBuilder sbEdgeTabDeg,
java.lang.StringBuilder sbDelta,
float d,
int iNumIterations,
float convergence,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
This method calculates the page rank values of vertices in the given graph.
|
long |
pageRank(java.lang.StringBuilder sbNodePR,
java.lang.StringBuilder sbNodeNextPR,
java.lang.StringBuilder sbEdgeTabDeg,
java.lang.StringBuilder sbDelta,
float d,
int iNumIterations,
float convergence,
int iDOP,
java.lang.String szTBS,
java.lang.String szOptions)
This method calculates the page rank values of vertices in this graph.
|
void |
pageRankCleanup(java.lang.StringBuilder sbNodePR,
java.lang.StringBuilder sbNodeNextPR,
java.lang.StringBuilder sbEdgeTabDeg,
java.lang.StringBuilder sbDelta,
java.lang.String szOptions)
This method does cleanup work before running page rank calculation.
|
void |
pageRankPrep(java.lang.StringBuilder sbNodePR,
java.lang.StringBuilder sbNodeNextPR,
java.lang.StringBuilder sbEdgeTabDeg,
java.lang.StringBuilder sbDelta,
java.lang.String szOptions)
This method does preparation work before running page rank calculation.
|
static java.lang.String |
shortestPath(java.sql.Connection conn,
java.lang.String szEdgeTabName,
java.lang.Long lStart,
java.lang.Long lEnd,
java.lang.StringBuilder sbExpTab,
java.lang.StringBuilder sbPathWeights,
java.lang.String szOptions,
java.lang.Long lSCN)
Returns a shortest path in a string format.
|
java.lang.String |
shortestPath(java.lang.Long lStart,
java.lang.Long lEnd,
java.lang.StringBuilder sbExpTab)
Returns a shortest path in a string format.
|
java.lang.String |
shortestPath(java.lang.Long lStart,
java.lang.Long lEnd,
java.lang.StringBuilder sbExpTab,
java.lang.StringBuilder sbPathWeights,
java.lang.String szOptions)
Returns a shortest path in a string format.
|
java.lang.String |
shortestPath(java.lang.Long lStart,
java.lang.Long lEnd,
java.lang.StringBuilder sbExpTab,
java.lang.String szEdgeTabName,
java.lang.StringBuilder sbPathWeights,
java.lang.String szOptions,
java.lang.Long lSCN)
Returns a shortest path in a string format.
|
java.lang.String |
shortestPath(OracleVertex vStart,
OracleVertex vEnd,
java.lang.StringBuilder sbExpTab)
Returns a shortest path in a string format.
|
java.lang.String |
shortestPath(OracleVertex vStart,
OracleVertex vEnd,
java.lang.StringBuilder sbExpTab,
java.lang.StringBuilder sbPathWeights,
java.lang.String szOptions)
Returns a shortest path in a string format.
|
void |
shortestPathCleanup(java.lang.StringBuilder sbExpTab,
java.lang.String szOptions)
This method does clean up after running
shortest path calculations.
|
void |
shortestPathPrep(java.lang.StringBuilder sbExpTab,
java.lang.String szOptions)
This method does some preparation work before running
one or multiple shortest path calculations.
|
static void |
sparsifyGraph(java.sql.Connection conn,
java.lang.String szEdgeTabName,
float fThreshold,
int iMinKeep,
int iDOP,
java.lang.StringBuilder sbOutTab,
java.lang.StringBuilder sbUndTab,
java.lang.StringBuilder sbHshTab,
java.lang.StringBuilder sbMchTab,
java.lang.String szTBS,
java.lang.String szOptions)
This method sparsifies a given graph (treated as undirected).
|
void |
sparsifyGraph(float fThreshold,
int iMinKeep,
int iDOP,
java.lang.StringBuilder sbOutTab,
java.lang.StringBuilder sbUndTab,
java.lang.StringBuilder sbHshTab,
java.lang.StringBuilder sbMchTab,
java.lang.String szTBS,
java.lang.String szOptions)
This method sparsifies this graph instance (treated as undirected).
|
void |
sparsifyGraphCleanup(java.lang.StringBuilder sbOutTab,
java.lang.StringBuilder sbUndTab,
java.lang.StringBuilder sbHshTab,
java.lang.StringBuilder sbMchTab,
java.lang.String szOptions)
This method does cleanup work before running graph sparsification.
|
void |
sparsifyGraphPrep(java.lang.StringBuilder sbOutTab,
java.lang.StringBuilder sbUndTab,
java.lang.StringBuilder sbHshTab,
java.lang.StringBuilder sbMchTab,
java.lang.String szOptions)
This method does preparation work before running graph sparsification.
|
addEdge, addUpdatedEdge, addUpdatedVertex, addVertex, addVertex, addVertexById, adjacentEdgesFromVertices, adjacentEdgesFromVertices, clearCache, clearRepository, clearUpdateQueue, commit, commitIndices, compute, compute, configuration, createIndex, decodeObject, edges, edges, edgesByIds, edgesByIds, edgesByProperty, edgesByProperty, edgesByProperty, edgesByProperty, edgesByProperty, edgesByPropertyKey, edgesByPropertyKey, edgesByPropertyKey, edgesByPropertyKey, getBatchSize, getCacheStatus, getConfig, getDatatypeClassFromValueObjForTextIndex, getDateTimeFormatter, getDefaultEdgeOptFlag, getDefaultIndexParameters, getDefaultVertexOptFlag, getEdge, getEdgeFilterCallback, getEdgeInstance, getEdgeInstance, getElementsProperties, getGraphName, getJustEdgeIdOptFlag, getJustVertexIdOptFlag, getMaxLabelLengthAllowedInBytes, getMaxPropertyNameLengthAllowedInBytes, getMaxValueLengthAllowedInBytes, getOperationQueueSize, getOracleIndexManager, getProgressListener, getQueueSize, getShortestPath, getShortestPath, getSimpleDateFormat, getStringForObj, getTextIndexDirectoryPrefix, getVertex, getVertexFilterCallback, getVertexInstance, io, isBuiltinElementsCacheDisabled, isDisposed, isEmpty, isShutdown, isSkipRefreshIndicesEnabled, isTransientPropertyGraphInstance, removeEdge, removeEdges, removeEdges, removeEdges, removeEdges, removeVertex, 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, verticesByProperty, verticesByPropertyKey, verticesByPropertyKey, verticesByPropertyKey, verticesByPropertyKey
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addVertex, close, features
createKeyIndex, createKeyIndex, createKeyIndex, dropAllAutoIndices, dropAllIndices, dropAllManualIndices, dropIndex, dropKeyIndex, dropKeyIndex, dropKeyIndex, edgesUsingTextSearch, getAutoIndex, getIndex, getIndexedKeys, getIndexParameters, getIndices, isEdgeAutoIndexEnabled, isVertexAutoIndexEnabled, refreshAutoIndices, validateIndexManager, verticesUsingTextSearch
countEdges, countEdges, countEdges, countVertices, countVertices, countVertices, getEdgePropertyNames, getEdgePropertyNames, getEdgePropertyNames, getEdgePropertyNames, getElementsProperties, getInvalidEdgeIDSet, getInvalidEdgeIDSet, getInvalidEdgeIDSet, getMaxEdgeID, getMaxEdgeID, getMaxEdgeID, getMaxVertexID, getMaxVertexID, getMaxVertexID, getMinEdgeID, getMinEdgeID, getMinEdgeID, getMinVertexID, getMinVertexID, getMinVertexID, getVertexIDSet, getVertexIDSet, getVertexIDSet, getVertexPropertyNames, getVertexPropertyNames, getVertexPropertyNames, getVertexPropertyNames
addAttributeToAllEdges, addAttributeToAllEdges, addAttributeToAllEdges, addAttributeToAllVertices, addAttributeToAllVertices, addAttributeToAllVertices, getDOPForMetadataOperations, removeAttributeFromAllEdges, removeAttributeFromAllEdges, removeAttributeFromAllEdges, removeAttributeFromAllVertices, removeAttributeFromAllVertices, removeAttributeFromAllVertices, updateGraph
public SQLAnalyticsGraph()
public SQLAnalyticsGraph(PgRdbmsGraphConfig config)
public void analyze(float estimatePercent, java.lang.String methodOpt) throws java.sql.SQLException
It is very important that up-to-date statistics be maintained for a graph to ensure efficient execution of query. The SQL Optimizer needs accurate information to choose a good execution plan.
After a significant amount of change has been done to a graph, this method should be invoked. Notice that however, statistics collection is a time/resource consuming process, so only run it when necessary.
See Oracle documentation "PL/SQL Packages and Types Reference" for detailed explanations of the parameters.
estimatePercent
- has a valid range of [0.000001,100].methodOpt
- A typical value for methodOpt is "FOR ALL COLUMNS
SIZE AUTO"java.sql.SQLException
- when there is error generated from DBMS_STATS package.public void analyze(float estimatePercent, java.lang.String methodOpt, int dop) throws java.sql.SQLException
It is very important that up-to-date statistics be maintained for a graph to ensure efficient execution of query. The SQL Optimizer needs accurate information to choose a good execution plan.
After a significant amount of change has been done to a graph, this method should be invoked. Notice that however, statistics collection is a time/resource consuming process, so only run it when necessary.
See Oracle documentation "PL/SQL Packages and Types Reference" for detailed explanations of the parameters.
estimatePercent
- has a valid range of [0.000001,100].methodOpt
- A typical value for methodOpt is "FOR ALL COLUMNS
SIZE AUTO"dop
- degree of parallelism.java.sql.SQLException
- when there is error generated from DBMS_STATS package.public void analyze(int dop) throws java.sql.SQLException
It is very important that up-to-date statistics be maintained for a graph to ensure efficient execution of query. The SQL Optimizer needs accurate information to choose a good execution plan.
After a significant amount of change has been done to a graph, this method should be invoked. Notice that however, statistics collection is a time/resource consuming process, so only run it when necessary.
See Oracle documentation "PL/SQL Packages and Types Reference" for detailed explanations of the parameters.
dop
- degree of parallelism.java.sql.SQLException
- when there is error generated from DBMS_STATS package.public void analyzeAuto(int dop) throws java.sql.SQLException
It is very important that up-to-date statistics be maintained for a graph to ensure efficient execution of query. The SQL Optimizer needs accurate information to choose a good execution plan.
After a significant amount of change has been done to a graph, this method should be invoked. Notice that however, statistics collection is a time/resource consuming process, so only run it when necessary.
See Oracle documentation "PL/SQL Packages and Types Reference" for detailed explanations of the parameters.
dop
- degree of parallelism.java.sql.SQLException
- when there is error generated from DBMS_STATS package.public void collaborativeFiltering(java.lang.String szEdgeTabName, java.lang.String szLabel, java.lang.String szRatingProperty, int iterations, double minError, int features, double learningRate, double decreaseRate, double regularizationParam, int dop, java.lang.StringBuilder sbLeft, java.lang.StringBuilder sbRight, java.lang.StringBuilder sbLeft1, java.lang.StringBuilder sbRight1, java.lang.StringBuilder sbMatrixProduct, java.lang.StringBuilder sbLeftDelta, java.lang.StringBuilder sbRightDelta, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
collaborativeFiltering
in interface OraclePropertyGraphAnalytics
szEdgeTabName
- a String with the name of the graph edges table.szLabel
- the label of the edges that hold the rating property.szRatingProperty
- the name of the rating property.iterations
- the maximum number of iterations.minError
- the minimum error to reach to finish the iterations.features
- the number of features for the left and right side products.learningRate
- the learning rate for the gradient descent.decreaseRate
- the decrease rate if the learning rate is too big for the intermediate error.regularizationParam
- an additional parameter to avoid over fitting.dop
- degree of paralellism.sbLeft
- a place holder for the name of the working table that holds the left side
factor of the matrix factorization.sbRight
- a place holder for the name of the working table that holds the right side
factor of the matrix factorization.sbLeft1
- a place holder for the name of the working table that holds the left side
intermediate step in the gradient descent.sbRight1
- a place holder for the name of the working table that holds the right side
intermediate step in the gradient descent.sbMatrixProduct
- a place holder for the name of the working table that holds
intermediate matrix product.sbLeftDelta
- a place holder for the name of the working table that holds
intermediate left side delta in gradient descent.sbRightDelta
- a place holder for the name of the working table that holds
intermediate right side delta in gradient descent.szTBS
- the name of the tablespace. It can be null.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public java.lang.Double collaborativeFilteringCheckIntermediateError(double regularizationParam, int dop, java.lang.StringBuilder sbMatrixProduct) throws java.sql.SQLException
regularizationParam
- the additional parameter to avoid over fitting.dop
- degree of paralellism.sbMatrixProduct
- a place holder for the name of the working table that holds
intermediate matrix product.java.sql.SQLException
public void collaborativeFilteringCleanup(java.lang.String szEdgeTabName, java.lang.StringBuilder sbLeft, java.lang.StringBuilder sbRight, java.lang.StringBuilder sbLeft1, java.lang.StringBuilder sbRight1, java.lang.StringBuilder sbMatrixProduct, java.lang.StringBuilder sbLeftDelta, java.lang.StringBuilder sbRightDelta, java.lang.String szOptions) throws java.sql.SQLException
collaborativeFilteringCleanup
in interface OraclePropertyGraphAnalytics
szEdgeTabName
- a String with the name of the graph edges tablesbLeft
- a place holder for the name of the working table that holds the left side
factor of the matrix factorizationsbRight
- a place holder for the name of the working table that holds the right side
factor of the matrix factorizationsbLeft1
- a place holder for the name of the working table that holds the left side
intermediate step in the gradient descentsbRight1
- a place holder for the name of the working table that holds the right side
intermediate step in the gradient descentsbMatrixProduct
- a place holder for the name of the working table that holds
intermediate matrix productsbLeftDelta
- a place holder for the name of the working table that holds
intermediate left side delta in gradient descentsbRightDelta
- a place holder for the name of the working table that holds
intermediate right side delta in gradient descentszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public java.lang.Double collaborativeFilteringGetRecommendation(java.lang.String szEdgeTabName, int dop, long srcVertex, long dstVertex, java.lang.StringBuilder sbLeft, java.lang.StringBuilder sbRight) throws java.sql.SQLException
szEdgeTabName
- a String with the name of the graph edges table.dop
- degree of paralellism.srcVertex
- the source vertex to the make the recommendation for (e.g. a customer vertex)dstVertex
- the destination vertex of the recommendation (e.g. a product vertex)sbLeft
- a place holder for the name of the working table that holds the left side
factor of the matrix factorization.sbRight
- a place holder for the name of the working table that holds the right side
factor of the matrix factorization.java.sql.SQLException
public void collaborativeFilteringPrep(java.lang.String szEdgeTabName, java.lang.StringBuilder sbLeft, java.lang.StringBuilder sbRight, java.lang.StringBuilder sbLeft1, java.lang.StringBuilder sbRight1, java.lang.StringBuilder sbMatrixProduct, java.lang.StringBuilder sbLeftDelta, java.lang.StringBuilder sbRightDelta, java.lang.String szOptions) throws java.sql.SQLException
collaborativeFilteringPrep
in interface OraclePropertyGraphAnalytics
szEdgeTabName
- a String with the name of the graph edges tablesbLeft
- a place holder for the name of the working table that holds the left side
factor of the matrix factorizationsbRight
- a place holder for the name of the working table that holds the right side
factor of the matrix factorizationsbLeft1
- a place holder for the name of the working table that holds the left side
intermediate step in the gradient descentsbRight1
- a place holder for the name of the working table that holds the right side
intermediate step in the gradient descentsbMatrixProduct
- a place holder for the name of the working table that holds
intermediate matrix productsbLeftDelta
- a place holder for the name of the working table that holds
intermediate left side delta in gradient descentsbRightDelta
- a place holder for the name of the working table that holds
intermediate right side delta in gradient descentszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public static long countTriangle(java.sql.Connection conn, java.lang.String szEdgeTabName, java.lang.StringBuilder sbUndirWorkTab, int iNumSubPtns, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
conn
- a JDBC Connection instanceszEdgeTabName
- name of the edge table (or view)sbUndirWorkTab
- a place holder for the name of the undirected working table to be used
for calculating triangles. This argument is relevant when "CREATE_UNDIRECTED=T" option is set.iNumSubPtns
- has to be a positive integer and has to be power of two.
This value represents the number of logical partitions chosen to
do the calculation. Set the value to 1 to avoid using partitioned approach.iDOP
- degree of parallelism to be usedszTBS
- tablespace. It can be NULL.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public long countTriangle(java.lang.StringBuilder sbUndirWorkTab) throws java.sql.SQLException
countTriangle
in interface OraclePropertyGraphAnalytics
sbUndirWorkTab
- a place holder for the name of the undirected working table to be used
for calculating triangles.java.sql.SQLException
public long countTriangle(java.lang.StringBuilder sbUndirWorkTab, int iNumSubPtns, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
countTriangle
in interface OraclePropertyGraphAnalytics
sbUndirWorkTab
- a place holder for the name of the undirected working table to be used
for calculating triangles. This argument is relevant when "CREATE_UNDIRECTED=T" option is set.iNumSubPtns
- has to be a positive integer and has to be power of two.
This value represents the number of logical partitions chosen to
do the calculation. Set the value to 1 to avoid using partitioned approach.iDOP
- degree of parallelism to be usedszTBS
- tablespace. It can be NULL.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void countTriangleCleanup(java.lang.StringBuilder sbUndirBMTab, java.lang.StringBuilder sbMapWorkTab, java.lang.StringBuilder sbUndirAMTab, java.lang.String szOptions) throws java.sql.SQLException
countTriangleCleanup
in interface OraclePropertyGraphAnalytics
sbUndirBMTab
- a place holder for the name of the undirected working table (before mapping) to be used
for calculating triangles.sbMapWorkTab
- a place holder for the name of the map working table to be used
for calculating triangles.sbUndirAMTab
- a place holder for the name of the undirected working table (after mapping) to be used
for calculating triangles.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void countTrianglePrep(java.lang.StringBuilder sbUndirBMTab, java.lang.StringBuilder sbMapWorkTab, java.lang.StringBuilder sbUndirAMTab, java.lang.String szOptions) throws java.sql.SQLException
countTrianglePrep
in interface OraclePropertyGraphAnalytics
sbUndirBMTab
- a place holder for the name of the undirected working table (before mapping) to be used
for calculating triangles.sbMapWorkTab
- a place holder for the name of the map working table to be used
for calculating triangles. The map working table is for renumbering vertices.sbUndirAMTab
- a place holder for the name of the undirected working table (after mapping) to be used
for calculating triangles.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public static long countTriangleRenum(java.sql.Connection conn, java.lang.String szEdgeTabName, java.lang.StringBuilder sbUndirBMTab, java.lang.StringBuilder sbMapWorkTab, java.lang.StringBuilder sbUndirAMTab, int iNumSubPtns, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
conn
- a JDBC connection to Oracle DatabaseszEdgeTabName
- name of a graph edge table (or view)sbUndirBMTab
- a place holder for the name of the undirected working table (before mapping) to be used
for calculating triangles.sbMapWorkTab
- a place holder for the name of the map working table to be used
for calculating triangles.sbUndirAMTab
- a place holder for the name of the undirected working table (after mapping) to be used
for calculating triangles.iNumSubPtns
- has to be a positive integer and has to be power of two.
This value represents the number of logical partitions chosen to
do the calculation. Set the value to 1 to avoid using partitioned approach.iDOP
- degree of parallelism to be used for creating
a working table holding undirected graph data and for executing
triangle counting query.szTBS
- tablespace. It can be NULL.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public long countTriangleRenum(java.lang.StringBuilder sbUndirBMTab, java.lang.StringBuilder sbMapWorkTab, java.lang.StringBuilder sbUndirAMTab, int iNumSubPtns, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
countTriangleRenum
in interface OraclePropertyGraphAnalytics
sbUndirBMTab
- a place holder for the name of the undirected working table (before mapping) to be used
for calculating triangles.sbMapWorkTab
- a place holder for the name of the map working table to be used
for calculating triangles.sbUndirAMTab
- a place holder for the name of the undirected working table (after mapping) to be used
for calculating triangles.iNumSubPtns
- has to be a positive integer and has to be power of two.
This value represents the number of logical partitions chosen to
do the calculation. Set the value to 1 to avoid using partitioned approach.iDOP
- degree of parallelism to be used for creating
a working table holding undirected graph data and for executing
triangle counting query.szTBS
- tablespace. It can be NULL.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void createStatTable(java.lang.String statTableName) throws java.sql.SQLException
statTableName
- name of the stat table.java.sql.SQLException
- when there is error generated from DBMS_STATS package.public static long estimateTriangleRenum(java.sql.Connection conn, java.lang.String szEdgeTabName, java.lang.StringBuilder sbUndirBMTab, java.lang.StringBuilder sbMapWorkTab, java.lang.StringBuilder sbUndirAMTab, int iNumSubPtns, int iChunk, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
sbUndirBMTab
- a place holder for the name of the undirected working table (before mapping) to be used
for calculating triangles.sbMapWorkTab
- a place holder for the name of the map working table to be used
for calculating triangles.sbUndirAMTab
- a place holder for the name of the undirected working table (after mapping) to be used
for calculating triangles.iNumSubPtns
- has to be a positive integer and has to be power of two.
This value represents the number of logical partitions chosen to
do the calculation. As the number of logical partitions grows, the estimation will become faster (and less precise).iChunk
- an integer in the range of [0, iNumSubPtns*iNumSubPtns - 1]iDOP
- degree of parallelism to be usedszTBS
- tablespace. It can be NULL.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public long estimateTriangleRenum(java.lang.StringBuilder sbUndirBMTab, java.lang.StringBuilder sbMapWorkTab, java.lang.StringBuilder sbUndirAMTab, int iNumSubPtns, int iChunk, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
estimateTriangleRenum
in interface OraclePropertyGraphAnalytics
sbUndirBMTab
- a place holder for the name of the undirected working table (before mapping) to be used
for calculating triangles.sbMapWorkTab
- a place holder for the name of the map working table to be used
for calculating triangles.sbUndirAMTab
- a place holder for the name of the undirected working table (after mapping) to be used
for calculating triangles.iNumSubPtns
- has to be a positive integer and has to be power of two.
This value represents the number of logical partitions chosen to
do the calculation. As the number of logical partitions grows, the estimation will become faster (and less precise).iChunk
- an integer in the range of [0, iNumSubPtns*iNumSubPtns - 1]iDOP
- degree of parallelism to be usedszTBS
- tablespace. It can be NULL.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void expEdgeStat(java.lang.String statTableName, java.lang.String statid) throws java.sql.SQLException
statTableName
- name of the stat table.statid
- identifier of statisticsjava.sql.SQLException
- when there is error generated from DBMS_STATS package.public void expVertexStat(java.lang.String statTableName, java.lang.String statid) throws java.sql.SQLException
statTableName
- name of the stat table.statid
- identifier of statisticsjava.sql.SQLException
- when there is error generated from DBMS_STATS package.public static void findCluster(java.sql.Connection conn, java.lang.String szEdgeTabName, java.lang.StringBuilder sbClusters, java.lang.StringBuilder sbUndir, java.lang.StringBuilder sbCluas, java.lang.StringBuilder sbNewas, java.lang.StringBuilder sbDelta, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
conn
- a JDBC connection to Oracle DatabaseszEdgeTabName
- name of the edge table (or view). Note that one
can create a view on top of existing edge table to filter out unwanted
edges.sbClusters
- a place holder for the name of the output table that holds cluster assignment
for verticessbUndir
- a place holder for the name of the working table that holds
undirected graphsbCluas
- a place holder for the name of the working table that holds
intermediate cluster assignmentsbNewas
- a place holder for the name of the working table that holds
updated cluster assignmentsbDelta
- a place holder for the name of the working table that holds
delta informationszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void findCluster(java.lang.StringBuilder sbClusters, java.lang.StringBuilder sbUndir, java.lang.StringBuilder sbCluas, java.lang.StringBuilder sbNewas, java.lang.StringBuilder sbDelta, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
findCluster
in interface OraclePropertyGraphAnalytics
sbClusters
- a place holder for the name of the output table that holds cluster assignment
for verticessbUndir
- a place holder for the name of the working table that holds
undirected graphsbCluas
- a place holder for the name of the working table that holds
intermediate cluster assignmentsbNewas
- a place holder for the name of the working table that holds
updated cluster assignmentsbDelta
- a place holder for the name of the working table that holds
delta informationszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void findClusterCleanup(java.lang.StringBuilder sbClusters, java.lang.StringBuilder sbUndir, java.lang.StringBuilder sbCluas, java.lang.StringBuilder sbNewas, java.lang.StringBuilder sbDelta, java.lang.String szOptions) throws java.sql.SQLException
findClusterCleanup
in interface OraclePropertyGraphAnalytics
sbClusters
- a place holder for the name of the output table that holds cluster assignment
for verticessbUndir
- a place holder for the name of the working table that holds
undirected graphsbCluas
- a place holder for the name of the working table that holds
intermediate cluster assignmentsbNewas
- a place holder for the name of the working table that holds
updated cluster assignmentsbDelta
- a place holder for the name of the working table that holds
delta informationszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void findClusterPrep(java.lang.StringBuilder sbClusters, java.lang.StringBuilder sbUndir, java.lang.StringBuilder sbCluas, java.lang.StringBuilder sbNewas, java.lang.StringBuilder sbDelta, java.lang.String szOptions) throws java.sql.SQLException
findClusterPrep
in interface OraclePropertyGraphAnalytics
sbClusters
- a place holder for the name of the output table that holds cluster assignment
for verticessbUndir
- a place holder for the name of the working table that holds
undirected graphsbCluas
- a place holder for the name of the working table that holds
intermediate cluster assignmentsbNewas
- a place holder for the name of the working table that holds
updated cluster assignmentsbDelta
- a place holder for the name of the working table that holds
delta informationszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public abstract java.lang.String getEdgeTabName()
public abstract Oracle getOracle()
public static java.sql.ResultSet getTopK(java.sql.Connection conn, java.lang.StringBuilder sbTabName, int iColIdx, SQLAnalyticsGraph.Sort sort, int k, int iDOP) throws java.sql.SQLException
conn
- a JDBC connection to Oracle DatabasesbTabName
- a place holder for the table nameiColIdx
- the column to be sortedsort
- ASC or DESCk
- k rows to be returned. Note that it is an upper boundiDOP
- degree of parallelism to be usedjava.sql.SQLException
public java.sql.ResultSet getTopK(java.lang.StringBuilder sbTabName, int iColIdx, SQLAnalyticsGraph.Sort sort, int k) throws java.sql.SQLException
sbTabName
- a place holder for the table nameiColIdx
- the column to be sortedsort
- ASC or DESCk
- k rows to be returned. Note that it is an upper boundjava.sql.SQLException
public java.sql.ResultSet getTopK(java.lang.StringBuilder sbTabName, int iColIdx, SQLAnalyticsGraph.Sort sort, int k, int iDOP) throws java.sql.SQLException
sbTabName
- a place holder for the table nameiColIdx
- the column to be sortedsort
- ASC or DESCk
- k rows to be returned. Note that it is an upper boundiDOP
- degree of parallelism to be usedjava.sql.SQLException
public void impEdgeStat(java.lang.String statTableName, java.lang.String statid) throws java.sql.SQLException
statTableName
- name of the stat table.statid
- identifier of statisticsjava.sql.SQLException
- when there is error generated from DBMS_STATS package.public void impVertexStat(java.lang.String statTableName, java.lang.String statid) throws java.sql.SQLException
statTableName
- name of the stat table.statid
- identifier of statisticsjava.sql.SQLException
- when there is error generated from DBMS_STATS package.public static long pageRank(java.sql.Connection conn, java.lang.String szEdgeTabName, java.lang.StringBuilder sbNodePR, java.lang.StringBuilder sbNodeNextPR, java.lang.StringBuilder sbEdgeTabDeg, java.lang.StringBuilder sbDelta, float d, int iNumIterations, float convergence, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
conn
- a JDBC connection to Oracle DatabaseszEdgeTabName
- name of a graph edge table (or view)sbNodePR
- a place holder for the name of the working table that holds the page rank
values of the verticessbNodeNextPR
- a place holder for the name of the working table that holds
the page rank values in the next iterationsbEdgeTabDeg
- a place holder for the name of the working table that holds
edges and node degree informationsbDelta
- a place holder for the name of the working table that holds
information about some special verticesd
- damping factor, 0.85f is often used.iNumIterations
- number of iterations to perform PR calculations.convergence
- if positive, then continue PR calculations till sum of
PR value changes is less than this convergence setting.szOptions
- options to be used by the underlying PL/SQL API.iDOP
- degree of parallelism to be used for creating
a working table holding undirected graph data and for executing
triangle counting query.szTBS
- tablespace. It can be NULL.java.sql.SQLException
public long pageRank(java.lang.StringBuilder sbNodePR, java.lang.StringBuilder sbNodeNextPR, java.lang.StringBuilder sbEdgeTabDeg, java.lang.StringBuilder sbDelta, float d, int iNumIterations, float convergence, int iDOP, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
pageRank
in interface OraclePropertyGraphAnalytics
sbNodePR
- a place holder for the name of the working table that holds the page rank
values of the verticessbNodeNextPR
- a place holder for the name of the working table that holds
the page rank values in the next iterationsbEdgeTabDeg
- a place holder for the name of the working table that holds
edges and node degree informationsbDelta
- a place holder for the name of the working table that holds
information about some special verticesd
- damping factor, 0.85f is often used.iNumIterations
- number of iterations to perform PR calculations.convergence
- if positive, then continue PR calculations till sum of
PR value changes is less than this convergence setting.szOptions
- options to be used by the underlying PL/SQL API.iDOP
- degree of parallelism to be used for creating
a working table holding undirected graph data and for executing
triangle counting query.szTBS
- tablespace. It can be NULL.java.sql.SQLException
public void pageRankCleanup(java.lang.StringBuilder sbNodePR, java.lang.StringBuilder sbNodeNextPR, java.lang.StringBuilder sbEdgeTabDeg, java.lang.StringBuilder sbDelta, java.lang.String szOptions) throws java.sql.SQLException
pageRankCleanup
in interface OraclePropertyGraphAnalytics
sbNodePR
- a place holder for the name of the working table that holds the page rank
values of the verticessbNodeNextPR
- a place holder for the name of the working table that holds
the page rank values in the next iterationsbEdgeTabDeg
- a place holder for the name of the working table that holds
edges and node degree informationsbDelta
- a place holder for the name of the working table that holds
information about some special verticesszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void pageRankPrep(java.lang.StringBuilder sbNodePR, java.lang.StringBuilder sbNodeNextPR, java.lang.StringBuilder sbEdgeTabDeg, java.lang.StringBuilder sbDelta, java.lang.String szOptions) throws java.sql.SQLException
pageRankPrep
in interface OraclePropertyGraphAnalytics
sbNodePR
- a place holder for the name of the working table that holds the page rank
values of the verticessbNodeNextPR
- a place holder for the name of the working table that holds
the page rank values in the next iterationsbEdgeTabDeg
- a place holder for the name of the working table that holds
edges and node degree informationsbDelta
- a place holder for the name of the working table that holds
information about some special verticesszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public static java.lang.String shortestPath(java.sql.Connection conn, java.lang.String szEdgeTabName, java.lang.Long lStart, java.lang.Long lEnd, java.lang.StringBuilder sbExpTab, java.lang.StringBuilder sbPathWeights, java.lang.String szOptions, java.lang.Long lSCN) throws java.sql.SQLException
conn
- a JDBC connection to Oracle DatabaseszEdgeTabName
- name of the edge table (or view). Note that one
can create a view on top of existing edge table to filter out unwanted
edges.lStart
- start vertex integer IDlEnd
- destination vertex integer IDsbPathWeights
- place holder of path weights of the shortest path.
The first number represents the number of vertices on the shortest path,
the second number represents the total weight and the rest numbers
denote weights of edges along the shortest path. All these numbers
are delimited by spaces.szOptions
- options to be passed on to the underlying PL/SQL API.lSCN
- SCN for the edge table. It can be NULL.java.sql.SQLException
public java.lang.String shortestPath(java.lang.Long lStart, java.lang.Long lEnd, java.lang.StringBuilder sbExpTab) throws java.sql.SQLException
shortestPath
in interface OraclePropertyGraphAnalytics
lStart
- start vertex integer IDlEnd
- destination vertex integer IDsbExpTab
- place holder of expansion table namejava.sql.SQLException
public java.lang.String shortestPath(java.lang.Long lStart, java.lang.Long lEnd, java.lang.StringBuilder sbExpTab, java.lang.StringBuilder sbPathWeights, java.lang.String szOptions) throws java.sql.SQLException
shortestPath
in interface OraclePropertyGraphAnalytics
lStart
- start vertex integer IDlEnd
- destination vertex integer IDsbExpTab
- place holder of expansion table namesbPathWeights
- place holder of path weights of the shortest path.
The first number represents the number of vertices on the shortest path,
the second number represents the total weight and the rest numbers
denote weights of edges along the shortest path. All these numbers
are delimited by spaces.szOptions
- options to be passed on to the underlying PL/SQL API.java.sql.SQLException
public java.lang.String shortestPath(java.lang.Long lStart, java.lang.Long lEnd, java.lang.StringBuilder sbExpTab, java.lang.String szEdgeTabName, java.lang.StringBuilder sbPathWeights, java.lang.String szOptions, java.lang.Long lSCN) throws java.sql.SQLException
shortestPath
in interface OraclePropertyGraphAnalytics
lStart
- start vertex integer IDlEnd
- destination vertex integer IDszEdgeTabName
- name of the edge table (or view). Note that one
can create a view on top of existing edge table to filter out unwanted
edges.sbPathWeights
- place holder of path weights of the shortest path.
The first number represents the number of vertices on the shortest path,
the second number represents the total weight and the rest numbers
denote weights of edges along the shortest path. All these numbers
are delimited by spaces.szOptions
- options to be passed on to the underlying PL/SQL API.lSCN
- SCN for the edge table. It can be NULL.java.sql.SQLException
public java.lang.String shortestPath(OracleVertex vStart, OracleVertex vEnd, java.lang.StringBuilder sbExpTab) throws java.sql.SQLException
shortestPath
in interface OraclePropertyGraphAnalytics
vStart
- start vertex objectvEnd
- destination vertex objectsbExpTab
- place holder of expansion table namejava.sql.SQLException
public java.lang.String shortestPath(OracleVertex vStart, OracleVertex vEnd, java.lang.StringBuilder sbExpTab, java.lang.StringBuilder sbPathWeights, java.lang.String szOptions) throws java.sql.SQLException
shortestPath
in interface OraclePropertyGraphAnalytics
vStart
- start vertex objectvEnd
- destination vertex objectsbExpTab
- place holder of expansion table namesbPathWeights
- place holder of path weights of the shortest path.
The first number represents the number of vertices on the shortest path,
the second number represents the total weight and the rest numbers
denote weights of edges along the shortest path. All these numbers
are delimited by spaces.szOptions
- options to be passed on to the underlying PL/SQL API.java.sql.SQLException
public void shortestPathCleanup(java.lang.StringBuilder sbExpTab, java.lang.String szOptions) throws java.sql.SQLException
shortestPathCleanup
in interface OraclePropertyGraphAnalytics
sbExpTab
- a place holder for the name of the expansion table to be used
for Bi-directional, Set Style, Dijkstra search.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void shortestPathPrep(java.lang.StringBuilder sbExpTab, java.lang.String szOptions) throws java.sql.SQLException
shortestPathPrep
in interface OraclePropertyGraphAnalytics
sbExpTab
- a place holder for the name of the expansion table to be used
for Bi-directional, Set Style, Dijkstra search. If sbExpTab is empty,
an intermediate working table will be created and the table name will be
returned in the sbExpTab object.szOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public static void sparsifyGraph(java.sql.Connection conn, java.lang.String szEdgeTabName, float fThreshold, int iMinKeep, int iDOP, java.lang.StringBuilder sbOutTab, java.lang.StringBuilder sbUndTab, java.lang.StringBuilder sbHshTab, java.lang.StringBuilder sbMchTab, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
sbOutTab
- a place holder for the name of the output table that holds the sparsified graphsbUndTab
- a place holder for the name of the working table that holds
undirected graphsbHshTab
- a place holder for the name of the working table that holds
min hash valuessbMchTab
- a place holder for the name of the working table that holds
match countsszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void sparsifyGraph(float fThreshold, int iMinKeep, int iDOP, java.lang.StringBuilder sbOutTab, java.lang.StringBuilder sbUndTab, java.lang.StringBuilder sbHshTab, java.lang.StringBuilder sbMchTab, java.lang.String szTBS, java.lang.String szOptions) throws java.sql.SQLException
sbOutTab
- a place holder for the name of the output table that holds the sparsified graphsbUndTab
- a place holder for the name of the working table that holds
undirected graphsbHshTab
- a place holder for the name of the working table that holds
min hash valuessbMchTab
- a place holder for the name of the working table that holds
match countsszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void sparsifyGraphCleanup(java.lang.StringBuilder sbOutTab, java.lang.StringBuilder sbUndTab, java.lang.StringBuilder sbHshTab, java.lang.StringBuilder sbMchTab, java.lang.String szOptions) throws java.sql.SQLException
sbOutTab
- a place holder for the name of the output table that holds the sparsified graphsbUndTab
- a place holder for the name of the working table that holds
undirected graphsbHshTab
- a place holder for the name of the working table that holds
min hash valuessbMchTab
- a place holder for the name of the working table that holds
match countsszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
public void sparsifyGraphPrep(java.lang.StringBuilder sbOutTab, java.lang.StringBuilder sbUndTab, java.lang.StringBuilder sbHshTab, java.lang.StringBuilder sbMchTab, java.lang.String szOptions) throws java.sql.SQLException
sbOutTab
- a place holder for the name of the output table that holds the sparsified graphsbUndTab
- a place holder for the name of the working table that holds
undirected graphsbHshTab
- a place holder for the name of the working table that holds
min hash valuessbMchTab
- a place holder for the name of the working table that holds
match countsszOptions
- options to be used by the underlying PL/SQL API.java.sql.SQLException
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.