org.h2gis.h2spatialapi
Interface ScalarFunction
- All Superinterfaces:
- Function
- All Known Implementing Classes:
- DeterministicScalarFunction
public interface ScalarFunction
- extends Function
Scalar function interface.
Scalar function in H2 can be defined through CREATE ALIAS, but in an OSGi context the class java name is not sufficient.
The full declaration of java name in H2 through osgi is BundleSymbolicName:BundleVersion:BinaryJavaName
Registering this interface as an OSGi service will add this function in h2spatial linked with a DataSource service.
- Author:
- Nicolas Fortin
|
Field Summary |
static String |
PROP_DETERMINISTIC
Boolean, Deterministic functions must always return the same value for the same parameters. |
static String |
PROP_NOBUFFER
Boolean, if nobuffer is true then this function will be called more often but will not cache the results in
memory nor files |
|
Method Summary |
String |
getJavaStaticMethod()
Returns Java name of static methods in this class to expose in database,
theses methods are under the same alias but with different number of arguments. |
PROP_DETERMINISTIC
static final String PROP_DETERMINISTIC
- Boolean, Deterministic functions must always return the same value for the same parameters.
The result of such functions is cached if possible.
- See Also:
- Constant Field Values
PROP_NOBUFFER
static final String PROP_NOBUFFER
- Boolean, if nobuffer is true then this function will be called more often but will not cache the results in
memory nor files
- See Also:
- Constant Field Values
getJavaStaticMethod
String getJavaStaticMethod()
- Returns Java name of static methods in this class to expose in database,
theses methods are under the same alias but with different number of arguments.
- Returns:
- The Java name of static methods or null if it has not be loaded
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.