
public abstract class OSQLFunctionPathFinder extends OSQLFunctionMathAbstract
| Modifier and Type | Field and Description |
|---|---|
protected OCommandContext |
context |
protected Map<ORID,Float> |
distance |
protected static float |
MIN |
protected OVertex |
paramDestinationVertex |
protected ODirection |
paramDirection |
protected OVertex |
paramSourceVertex |
protected Map<ORID,OVertex> |
predecessors |
protected Set<OVertex> |
unSettledNodes |
configuredParametersmaxParams, minParams, name| Constructor and Description |
|---|
OSQLFunctionPathFinder(String iName,
int iMinParams,
int iMaxParams) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregateResults()
A function can make calculation on several records before returning a result.
|
protected boolean |
continueTraversing() |
protected LinkedList<OVertex> |
execute(OCommandContext iContext) |
protected void |
findMinimalDistances(OVertex node) |
protected abstract float |
getDistance(OVertex node,
OVertex target) |
protected OVertex |
getMinimum(Set<OVertex> vertexes) |
protected Set<OVertex> |
getNeighbors(OVertex node) |
LinkedList<OVertex> |
getPath() |
Object |
getResult()
Only called when function aggregates results after all records have been passed to the
function.
|
protected float |
getShortestDistance(OVertex destination) |
protected boolean |
isNotSettled(OVertex vertex) |
protected boolean |
isVariableEdgeWeight() |
protected float |
sumDistances(float iDistance1,
float iDistance2) |
getClassWithMorePrecision, getContextValue, shouldMergeDistributedResultconfig, toStringfilterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getSyntaxprotected OVertex paramSourceVertex
protected OVertex paramDestinationVertex
protected ODirection paramDirection
protected OCommandContext context
protected static final float MIN
public OSQLFunctionPathFinder(String iName, int iMinParams, int iMaxParams)
protected LinkedList<OVertex> execute(OCommandContext iContext)
protected boolean isVariableEdgeWeight()
public LinkedList<OVertex> getPath()
public boolean aggregateResults()
OSQLFunctionExample of such function : sum, count, max, min ...
The final result of the aggregation is obtain by calling OSQLFunction.getResult()
aggregateResults in interface OSQLFunctionaggregateResults in class OSQLFunctionMathAbstractpublic Object getResult()
OSQLFunctiongetResult in interface OSQLFunctiongetResult in class OSQLFunctionAbstractprotected void findMinimalDistances(OVertex node)
protected boolean isNotSettled(OVertex vertex)
protected boolean continueTraversing()
protected float getShortestDistance(OVertex destination)
protected float sumDistances(float iDistance1,
float iDistance2)
Copyright © 2009–2025 OrientDB. All rights reserved.