public abstract class ConnectionFilter extends Object
CustomConnectionFilter
.Modifier and Type | Field and Description |
---|---|
protected ConnectionFilter |
nextFilter |
protected HashMap<String,Object> |
parameters |
Constructor and Description |
---|
ConnectionFilter() |
Modifier and Type | Method and Description |
---|---|
InputStream |
doFilter(InputStream in) |
protected abstract InputStream |
execute(InputStream inputStream)
The Execution Engine invokes this method every time a query involves a base view of the data
source that has this filter assigned.
|
ConnectionFilter |
getNextFilter() |
HashMap<String,Object> |
getParameters()
Returns the input parameters of the filter.
|
abstract String |
getVQLName() |
void |
setNextFilter(ConnectionFilter nextFilter) |
void |
setParameters(HashMap<String,Object> parameters) |
protected ConnectionFilter nextFilter
public final void setNextFilter(ConnectionFilter nextFilter)
public final ConnectionFilter getNextFilter()
public final HashMap<String,Object> getParameters()
public final InputStream doFilter(InputStream in) throws com.denodo.util.exceptions.InternalErrorException
com.denodo.util.exceptions.InternalErrorException
protected abstract InputStream execute(InputStream inputStream) throws com.denodo.util.exceptions.InternalErrorException
The Execution Engine invokes this method every time a query involves a base view of the data source that has this filter assigned.
In this method you have to read the data of the InputStream
parameter and return
another InputStream
with the data transformed.
inputStream
- an InputStream
that provides the data from the source.InputStream
that returns the data transformed by the filter.com.denodo.util.exceptions.InternalErrorException
- Throw this exception if there is an error during the execution of
the filter. The Execution Engine will capture the exception and interrupt the access to
the source and the execution of the filter.public abstract String getVQLName()
Copyright © 2023 Denodo Technologies. All rights reserved.