public class FunctionFinder extends Object
This is done to look for two things:
Constructor and Description |
---|
FunctionFinder(Hints hints) |
Modifier and Type | Method and Description |
---|---|
Function |
findFunction(Name name) |
Function |
findFunction(Name name,
List<Expression> parameters)
Look up a function for the provided name.
|
Function |
findFunction(Name name,
List<Expression> parameters,
Literal fallback)
Look up a function for the provided name, may return a FallbackFunction if an implementation
could not be found.
|
Function |
findFunction(String name) |
Function |
findFunction(String name,
List<Expression> parameters)
Look up a function for the provided name.
|
Function |
findFunction(String name,
List<Expression> parameters,
Literal fallback)
Look up a function for the provided name, may return a FallbackFunction if an implementation
could not be found.
|
FunctionName |
findFunctionDescription(Name name)
Lookup the FunctionName description.
|
FunctionName |
findFunctionDescription(String name)
Lookup the FunctionName description.
|
List<FunctionName> |
getAllFunctionDescriptions()
Return a List of FunctionName's describing the functions currently available.
|
public FunctionFinder(Hints hints)
public List<FunctionName> getAllFunctionDescriptions()
public FunctionName findFunctionDescription(String name)
name
- Function name; this will need to be an exact matchpublic FunctionName findFunctionDescription(Name name)
name
- Function name; this will need to be an exact matchpublic Function findFunction(String name, List<Expression> parameters)
name
- Function name; this will need to be an exact matchparameters
- Set of parameters requireda
- RuntimeException if an implementation for name could not be foundpublic Function findFunction(Name name, List<Expression> parameters)
name
- Function name; this will need to be an exact matchparameters
- Set of parameters requireda
- RuntimeException if an implementation for name could not be foundpublic Function findFunction(String name, List<Expression> parameters, Literal fallback)
You can create a function to represent an SQL function or a function hosted on an external service; the fallback value will be used if you evulate by a Java implementation on the classpath.
name
- Function name; this will need to be an exact matchparameters
- Set of Expressions to use as function parametersfallbackValue
- Literal to use if an implementation could not be foundpublic Function findFunction(Name name, List<Expression> parameters, Literal fallback)
You can create a function to represent an SQL function or a function hosted on an external service; the fallback value will be used if you evulate by a Java implementation on the classpath.
name
- Function name; this will need to be an exact matchparameters
- Set of Expressions to use as function parametersfallbackValue
- Literal to use if an implementation could not be foundCopyright © 1996–2019 Geotools. All rights reserved.