Class SQLFunctionMove
- java.lang.Object
-
- com.arcadedb.query.sql.function.SQLFunctionAbstract
-
- com.arcadedb.query.sql.function.SQLFunctionConfigurableAbstract
-
- com.arcadedb.query.sql.function.graph.SQLFunctionMove
-
- All Implemented Interfaces:
SQLFunction
- Direct Known Subclasses:
SQLFunctionBoth
,SQLFunctionBothE
,SQLFunctionBothV
,SQLFunctionInE
,SQLFunctionInV
,SQLFunctionMoveFiltered
,SQLFunctionOutE
,SQLFunctionOutV
public abstract class SQLFunctionMove extends SQLFunctionConfigurableAbstract
Created by luigidellaquila on 03/01/17.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from class com.arcadedb.query.sql.function.SQLFunctionConfigurableAbstract
configuredParameters
-
Fields inherited from class com.arcadedb.query.sql.function.SQLFunctionAbstract
name
-
-
Constructor Summary
Constructors Constructor Description SQLFunctionMove()
SQLFunctionMove(String iName, int iMin, int iMax)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Object
e2v(Database graph, Identifiable iRecord, Vertex.DIRECTION iDirection, String[] iLabels)
Object
execute(Object iThis, Identifiable iCurrentRecord, Object iCurrentResult, Object[] iParameters, CommandContext iContext)
Process a record.String
getSyntax()
Returns a convenient SQL String representation of the function.protected abstract Object
move(Database db, Identifiable iRecord, String[] iLabels)
protected Object
v2e(Database graph, Identifiable iRecord, Vertex.DIRECTION iDirection, String[] iLabels)
protected Object
v2v(Database graph, Identifiable iRecord, Vertex.DIRECTION iDirection, String[] iLabels)
-
Methods inherited from class com.arcadedb.query.sql.function.SQLFunctionConfigurableAbstract
config, toString
-
Methods inherited from class com.arcadedb.query.sql.function.SQLFunctionAbstract
aggregateResults, getName, getResult
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SQLFunctionMove
public SQLFunctionMove()
-
SQLFunctionMove
public SQLFunctionMove(String iName, int iMin, int iMax)
-
-
Method Detail
-
move
protected abstract Object move(Database db, Identifiable iRecord, String[] iLabels)
-
getSyntax
public String getSyntax()
Description copied from interface:SQLFunction
Returns a convenient SQL String representation of the function.Example :
myFunction( param1, param2, [optionalParam3])
This text will be used in exception messages.
- Returns:
- String , never null.
-
execute
public Object execute(Object iThis, Identifiable iCurrentRecord, Object iCurrentResult, Object[] iParameters, CommandContext iContext)
Description copied from interface:SQLFunction
Process a record.iCurrentRecord
- : current recordiCurrentResult
- TODOiParameters
- : function parameters, number is ensured to be within minParams and maxParams.iContext
- : object calling this function- Returns:
- function result, can be null. Special cases : can be null if function aggregate results, can be null if function filter results : this mean result is excluded
-
v2v
protected Object v2v(Database graph, Identifiable iRecord, Vertex.DIRECTION iDirection, String[] iLabels)
-
v2e
protected Object v2e(Database graph, Identifiable iRecord, Vertex.DIRECTION iDirection, String[] iLabels)
-
e2v
protected Object e2v(Database graph, Identifiable iRecord, Vertex.DIRECTION iDirection, String[] iLabels)
-
-