public abstract class OSQLFunctionPathFinder extends OSQLFunctionMathAbstract
| Modifier and Type | Field and Description |
|---|---|
protected OCommandContext |
context |
protected OrientBaseGraph |
db |
protected Map<ORID,Float> |
distance |
protected static float |
DISTANCE |
protected static float |
MIN |
protected OrientVertex |
paramDestinationVertex |
protected com.tinkerpop.blueprints.Direction |
paramDirection |
protected OrientVertex |
paramSourceVertex |
protected Map<ORID,OrientVertex> |
predecessors |
protected Set<OrientVertex> |
unSettledNodes |
configuredParametersmaxParams, minParams, name| Constructor and Description |
|---|
OSQLFunctionPathFinder(String iName,
int iMinParams,
int iMaxParams) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregateResults() |
protected boolean |
continueTraversing() |
Object |
execute(Object[] iParameters,
OCommandContext iContext) |
protected void |
findMinimalDistances(OrientVertex node) |
protected float |
getDistance(OrientVertex node,
OrientVertex target) |
protected OrientVertex |
getMinimum(Set<OrientVertex> vertexes) |
protected Float |
getMinimumDistance() |
protected Set<OrientVertex> |
getNeighbors(com.tinkerpop.blueprints.Vertex node) |
LinkedList<OrientVertex> |
getPath() |
Object |
getResult() |
protected float |
getShortestDistance(OrientVertex destination) |
protected boolean |
isSettled(OrientVertex vertex) |
protected boolean |
isVariableEdgeWeight() |
protected float |
sumDistances(float iDistance1,
float iDistance2) |
getClassWithMorePrecision, getContextValue, shouldMergeDistributedResultconfig, toStringfilterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, mergeDistributedResult, returnDistributedResult, setResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getSyntaxprotected OrientBaseGraph db
protected Set<OrientVertex> unSettledNodes
protected Map<ORID,OrientVertex> predecessors
protected OrientVertex paramSourceVertex
protected OrientVertex paramDestinationVertex
protected com.tinkerpop.blueprints.Direction paramDirection
protected OCommandContext context
protected static final float MIN
protected static final float DISTANCE
public OSQLFunctionPathFinder(String iName, int iMinParams, int iMaxParams)
public Object execute(Object[] iParameters, OCommandContext iContext)
protected boolean isVariableEdgeWeight()
public LinkedList<OrientVertex> getPath()
public boolean aggregateResults()
aggregateResults in interface OSQLFunctionaggregateResults in class OSQLFunctionMathAbstractpublic Object getResult()
getResult in interface OSQLFunctiongetResult in class OSQLFunctionAbstractprotected void findMinimalDistances(OrientVertex node)
protected Set<OrientVertex> getNeighbors(com.tinkerpop.blueprints.Vertex node)
protected OrientVertex getMinimum(Set<OrientVertex> vertexes)
protected boolean isSettled(OrientVertex vertex)
protected boolean continueTraversing()
protected float getShortestDistance(OrientVertex destination)
protected Float getMinimumDistance()
protected float sumDistances(float iDistance1,
float iDistance2)
protected float getDistance(OrientVertex node, OrientVertex target)
Copyright © 2009-2014 Orient Technologies. All Rights Reserved.