Class ParameterFilter
java.lang.Object
com.invirgance.convirgance.web.filter.ParameterFilter
- All Implemented Interfaces:
com.invirgance.convirgance.transform.filter.Filter,com.invirgance.convirgance.transform.Transformer,Predicate<com.invirgance.convirgance.json.JSONObject>
@Wiring
public class ParameterFilter
extends Object
implements com.invirgance.convirgance.transform.filter.Filter
Filter on parameter values. In most contexts, filtering happens on a stream
of records. This class interrupts the stream and sends the parameters record
to the wrapped filter instead of the record stream.
- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.invirgance.convirgance.transform.filter.FilterReturn the wrapped filtervoidsetFilter(com.invirgance.convirgance.transform.filter.Filter filter) Set the filter to wrap and call with the parameters recordbooleantest(com.invirgance.convirgance.json.JSONObject record) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.invirgance.convirgance.transform.filter.Filter
transformMethods inherited from interface com.invirgance.convirgance.transform.Transformer
transform
-
Constructor Details
-
ParameterFilter
public ParameterFilter() -
ParameterFilter
public ParameterFilter(com.invirgance.convirgance.transform.filter.Filter filter)
-
-
Method Details
-
getFilter
public com.invirgance.convirgance.transform.filter.Filter getFilter()Return the wrapped filter- Returns:
- the wrapped filter
-
setFilter
public void setFilter(com.invirgance.convirgance.transform.filter.Filter filter) Set the filter to wrap and call with the parameters record- Parameters:
filter- the filter to wrap
-
test
public boolean test(com.invirgance.convirgance.json.JSONObject record)
-