OSQLFunctionDijkstra
instead@Deprecated public class OSQLFunctionDijkstra extends OSQLFunctionPathFinder
The first parameter is source record. The second parameter is destination record. The third parameter is a name of property that represents 'weight'.
If property is not defined in edge or is null, distance between vertexes are 0.
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Deprecated.
|
context, db, distance, MIN, paramDestinationVertex, paramDirection, paramSourceVertex, predecessors, unSettledNodes
configuredParameters
maxParams, minParams, name
Constructor and Description |
---|
OSQLFunctionDijkstra()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LinkedList<OrientVertex> |
execute(Object iThis,
OIdentifiable iCurrentRecord,
Object iCurrentResult,
Object[] iParams,
OCommandContext iContext)
Deprecated.
Process a record.
|
protected float |
getDistance(OrientVertex node,
OrientVertex target)
Deprecated.
|
String |
getSyntax()
Deprecated.
Returns a convenient SQL String representation of the function.
|
protected boolean |
isVariableEdgeWeight()
Deprecated.
|
aggregateResults, continueTraversing, execute, findMinimalDistances, getMinimum, getNeighbors, getPath, getResult, getShortestDistance, isNotSettled, sumDistances
getClassWithMorePrecision, getContextValue, shouldMergeDistributedResult
config, toString
filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult
public static final String NAME
public LinkedList<OrientVertex> execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext)
OSQLFunction
iCurrentRecord
- : current recordiCurrentResult
- TODOiParams
- : function parameters, number is ensured to be within minParams and maxParams.iContext
- : object calling this functionpublic String getSyntax()
OSQLFunction
Example :
myFunction( param1, param2, [optionalParam3])
This text will be used in exception messages.
protected float getDistance(OrientVertex node, OrientVertex target)
getDistance
in class OSQLFunctionPathFinder
protected boolean isVariableEdgeWeight()
isVariableEdgeWeight
in class OSQLFunctionPathFinder
Copyright © 2009–2020 OrientDB. All rights reserved.