hep.aida
Interface IFilter
-
- All Known Implementing Classes:
- Filter, RangeSetFilter
public interface IFilterUser's level interface of an IFilter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanaccept()Check if the IFilter accepts or not the data in the current row of the ITuple it is associated to.java.lang.Stringexpression()Get the expression that defined the IFilter.voidinitialize(ITuple ituple)Initialize the IFilter and associate it to an ITuple.
-
-
-
Method Detail
-
initialize
void initialize(ITuple ituple) throws java.lang.IllegalArgumentException
Initialize the IFilter and associate it to an ITuple.- Parameters:
ituple- The ITuple to which the IFilter is sssociated.- Throws:
java.lang.IllegalArgumentException- If the IFilter and the ITuple are not compatible.
-
accept
boolean accept() throws java.lang.RuntimeExceptionCheck if the IFilter accepts or not the data in the current row of the ITuple it is associated to.- Returns:
trueif the current data is accepted.- Throws:
java.lang.RuntimeException- if the IFilter has not been initialized.
-
expression
java.lang.String expression()
Get the expression that defined the IFilter.- Returns:
- The expression.
-
-
DMelt 3.0 © DataMelt by jWork.ORG