org.geotools.process.function
Class ProcessFunctionFactory

Object
  extended by ProcessFunctionFactory
All Implemented Interfaces:
FunctionFactory

public class ProcessFunctionFactory
extends Object
implements FunctionFactory

A bridge between the process world and the filter function world: any process returning a single value can be seen as a filter function

Author:
Andrea Aime - GeoSolutions

Field Summary
static String PRIMARY_OUTPUT
          Parameter used to indicate a certain output is the primary one for the process
 
Constructor Summary
ProcessFunctionFactory()
           
 
Method Summary
 void clear()
          Clears the caches forcing the system to do another lookup
 Function function(Name processName, List<Expression> args, Literal fallback)
          Returns a function with the specified name.
 Function function(String name, List<Expression> args, Literal fallback)
          Returns a function with the specified name.
 List<FunctionName> getFunctionNames()
          Returns the list of function names the factory provides.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_OUTPUT

public static final String PRIMARY_OUTPUT
Parameter used to indicate a certain output is the primary one for the process

See Also:
Constant Field Values
Constructor Detail

ProcessFunctionFactory

public ProcessFunctionFactory()
Method Detail

function

public Function function(String name,
                         List<Expression> args,
                         Literal fallback)
Description copied from interface: FunctionFactory
Returns a function with the specified name.

Specified by:
function in interface FunctionFactory
Parameters:
name - The name of the function
args - Variable list of expression arguments for the function.
fallback - A fallback literal to use in cases where the function does not exist or can not be created. This argument may be null.

function

public Function function(Name processName,
                         List<Expression> args,
                         Literal fallback)
Description copied from interface: FunctionFactory
Returns a function with the specified name.

Specified by:
function in interface FunctionFactory
Parameters:
processName - The name of the function
args - Variable list of expression arguments for the function.
fallback - A fallback literal to use in cases where the function does not exist or can not be created. This argument may be null.

getFunctionNames

public List<FunctionName> getFunctionNames()
Description copied from interface: FunctionFactory
Returns the list of function names the factory provides.

Specified by:
getFunctionNames in interface FunctionFactory
Returns:
A list of function names, possibly empty, never null.

clear

public void clear()
Clears the caches forcing the system to do another lookup



Copyright © 1996-2014 Geotools. All Rights Reserved.