hep.aida.ref.tuple
Class Filter

java.lang.Object
  extended by hep.aida.ref.tuple.Filter
All Implemented Interfaces:
IFilter

public class Filter
extends Object
implements IFilter


Constructor Summary
Filter(String expression)
          Default contructor.
Filter(String expression, int rowToProcess)
           
Filter(String expression, int rowToProcess, int startingRow)
           
 
Method Summary
 boolean accept()
          Check if the IFilter accepts or not the data in the current row of the ITuple it is associated to.
 String expression()
          Get the expression that defined the IFilter.
 void initialize(ITuple tuple)
          Initialize the IFilter and associate it to an ITuple.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter(String expression)
Default contructor.

Parameters:
expression - The expression to evaluate on the tuple.

Filter

public Filter(String expression,
              int rowToProcess)

Filter

public Filter(String expression,
              int rowToProcess,
              int startingRow)
Method Detail

expression

public String expression()
Description copied from interface: IFilter
Get the expression that defined the IFilter.

Specified by:
expression in interface IFilter
Returns:
The expression.

initialize

public void initialize(ITuple tuple)
Description copied from interface: IFilter
Initialize the IFilter and associate it to an ITuple.

Specified by:
initialize in interface IFilter
Parameters:
tuple - The ITuple to which the IFilter is sssociated.

accept

public boolean accept()
Description copied from interface: IFilter
Check if the IFilter accepts or not the data in the current row of the ITuple it is associated to.

Specified by:
accept in interface IFilter
Returns:
true if the current data is accepted.


jHepWork 3.2 © jWork.org