| java.lang.Object org.geotools.coverage.processing.AbstractProcessor org.geotools.coverage.processing.BufferedProcessor
BufferedProcessor | public class BufferedProcessor extends AbstractProcessor (Code) | | A coverage processor caching the result of any operations. Since a
may be expensive to compute and consumes a lot of
memory, we can save a lot of resources by returning cached instances every time the same
with the same
is applied on the same coverage. Coverages are cached using
.
since: 2.2 version: $Id: BufferedProcessor.java 26655 2007-08-22 13:57:25Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public Coverage | doOperation(ParameterValueGroup parameters) Applies an operation. | public Operation | getOperation(String name) Returns the operation for the specified name. | public Collection | getOperations() Retrieves grid processing operations information. | void | setAsDefault() Notifies this processor that it is going to be used as the application-wide default
processor. |
BufferedProcessor | public BufferedProcessor(RenderingHints hints)(Code) | | Creates a buffered processor backed by a
using the specified hints. Null or empty hints are legal, but consider using the
in such case.
|
BufferedProcessor | public BufferedProcessor(AbstractProcessor processor)(Code) | | Creates a new buffered processor backed by the specified processor. If the specified
processor is an instance of
DefaultProcessor , consider using the
instead,
for efficienty.
|
doOperation | public Coverage doOperation(ParameterValueGroup parameters) throws OperationNotFoundException(Code) | | Applies an operation. The default implementation first checks if a coverage has already
been created from the same parameters. If such a coverage is found, it is returned.
Otherwise, this method forward the call to the
and caches the result.
Parameters: parameters - Parameters required for the operation. The result as a coverage. throws: OperationNotFoundException - if there is no operation for the parameter group name. |
getOperation | public Operation getOperation(String name) throws OperationNotFoundException(Code) | | Returns the operation for the specified name. The default implementation forward
the call directly to the
.
Parameters: name - Name of the operation. The operation for the given name. throws: OperationNotFoundException - if there is no operation for the specified name. |
getOperations | public Collection getOperations()(Code) | | Retrieves grid processing operations information. The default implementation forward
the call directly to the
.
|
setAsDefault | void setAsDefault()(Code) | | Notifies this processor that it is going to be used as the application-wide default
processor.
|
|
|