Class OSQLFunctionConfigurableAbstract
java.lang.Object
com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
com.orientechnologies.orient.core.sql.functions.OSQLFunctionConfigurableAbstract
- All Implemented Interfaces:
OSQLFunction
- Direct Known Subclasses:
OSQLFunctionConcat,OSQLFunctionFirst,OSQLFunctionLast,OSQLFunctionMathAbstract,OSQLFunctionMove,OSQLFunctionMultiValueAbstract,OSQLFunctionSequence,OSQLFunctionTraversedElement
Abstract class to extend to build Custom SQL Functions that saves the configured parameters.
Extend it and register it with:
OSQLParser.getInstance().registerStatelessFunction()
or OSQLParser.getInstance().registerStatefullFunction() to being used by the SQL
engine.- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
maxParams, minParams, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOSQLFunctionConfigurableAbstract(String iName, int iMinParams, int iMaxParams) -
Method Summary
Methods inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
aggregateResults, filterResult, getDatabase, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult, shouldMergeDistributedResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.sql.functions.OSQLFunction
execute, getSyntax
-
Field Details
-
configuredParameters
-
-
Constructor Details
-
OSQLFunctionConfigurableAbstract
-
-
Method Details
-
config
Description copied from interface:OSQLFunctionConfigure the function.- Specified by:
configin interfaceOSQLFunction- Overrides:
configin classOSQLFunctionAbstract
-
toString
- Overrides:
toStringin classOSQLFunctionAbstract
-