
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 |
context, db, distance, MIN, paramDestinationVertex, paramDirection, paramSourceVertex, predecessors, unSettledNodesconfiguredParametersmaxParams, minParams, name| Constructor and Description |
|---|
OSQLFunctionDijkstra() |
| Modifier and Type | Method and Description |
|---|---|
LinkedList<OrientVertex> |
execute(Object iThis,
OIdentifiable iCurrentRecord,
Object iCurrentResult,
Object[] iParams,
OCommandContext iContext)
Process a record.
|
protected float |
getDistance(OrientVertex node,
OrientVertex target) |
String |
getSyntax()
Returns a convinient SQL String representation of the function.
|
protected boolean |
isVariableEdgeWeight() |
aggregateResults, continueTraversing, execute, findMinimalDistances, getMinimum, getNeighbors, getPath, getResult, getShortestDistance, isNotSettled, sumDistancesgetClassWithMorePrecision, getContextValue, shouldMergeDistributedResultconfig, toStringfilterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, mergeDistributedResult, returnDistributedResult, setResultpublic static final String NAME
public LinkedList<OrientVertex> execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext)
OSQLFunctioniCurrentRecord - : current recordiCurrentResult - TODOiParams - : function parameters, number is ensured to be within minParams and maxParams.iContext - : object calling this functionpublic String getSyntax()
OSQLFunctionExample :
myFunction( param1, param2, [optionalParam3])This text will be used in exception messages.
protected float getDistance(OrientVertex node, OrientVertex target)
getDistance in class OSQLFunctionPathFinderprotected boolean isVariableEdgeWeight()
isVariableEdgeWeight in class OSQLFunctionPathFinderCopyright © 2009–2025 OrientDB. All rights reserved.