Package org.geotools.filter
Class FunctionFinder
- Object
- 
- FunctionFinder
 
- 
 public class FunctionFinder extends Object Isolate function lookup code from Factory implementation(s).This is done to look for two things: - org.geotools.filter.Function
- org.geotools.api.filter.expression.Function
 - Author:
- Jody Garnett
 
- 
- 
Constructor SummaryConstructors Constructor Description FunctionFinder(Hints hints)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionfindFunction(String name)FunctionfindFunction(String name, List<Expression> parameters)Look up a function for the provided name.FunctionfindFunction(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.FunctionfindFunction(Name name)FunctionfindFunction(Name name, List<Expression> parameters)Look up a function for the provided name.FunctionfindFunction(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.FunctionNamefindFunctionDescription(String name)Lookup the FunctionName description.FunctionNamefindFunctionDescription(Name name)Lookup the FunctionName description.List<FunctionName>getAllFunctionDescriptions()Return a List of FunctionName's describing the functions currently available.
 
- 
- 
- 
Constructor Detail- 
FunctionFinderpublic FunctionFinder(Hints hints) 
 
- 
 - 
Method Detail- 
getAllFunctionDescriptionspublic List<FunctionName> getAllFunctionDescriptions() Return a List of FunctionName's describing the functions currently available.- Returns:
- List describing available functions
 
 - 
findFunctionDescriptionpublic FunctionName findFunctionDescription(String name) Lookup the FunctionName description.- Parameters:
- name- Function name; this will need to be an exact match
- Returns:
- FunctioName description, or null if function is not available
 
 - 
findFunctionDescriptionpublic FunctionName findFunctionDescription(Name name) Lookup the FunctionName description.- Parameters:
- name- Function name; this will need to be an exact match
- Returns:
- FunctioName description, or null if function is not available
 
 - 
findFunctionpublic Function findFunction(String name, List<Expression> parameters) Look up a function for the provided name.- Parameters:
- name- Function name; this will need to be an exact match
- parameters- Set of parameters required
- Returns:
- Generated function
- Throws:
- a- RuntimeException if an implementation for name could not be found
 
 - 
findFunctionpublic Function findFunction(Name name, List<Expression> parameters) Look up a function for the provided name.- Parameters:
- name- Function name; this will need to be an exact match
- parameters- Set of parameters required
- Returns:
- Generated function
- Throws:
- a- RuntimeException if an implementation for name could not be found
 
 - 
findFunctionpublic 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.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. - Parameters:
- name- Function name; this will need to be an exact match
- parameters- Set of Expressions to use as function parameters
- fallback- Literal to use if an implementation could not be found
- Returns:
- Function for the provided name, may be a FallbackFunction if an implementation could not be found
 
 - 
findFunctionpublic 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.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. - Parameters:
- name- Function name; this will need to be an exact match
- parameters- Set of Expressions to use as function parameters
- fallback- Literal to use if an implementation could not be found
- Returns:
- Function for the provided name, may be a FallbackFunction if an implementation could not be found
 
 
- 
 
-