
com.fathzer.imt.Evaluator Maven / Gradle / Ivy
The newest version!
package com.fathzer.imt;
/** An evaluator.
* It evaluates expression and returns the result as a Bitmap.
*
Warning: Classes that implement this interface are supposed to be thread safe.
* @author JM Astesana
*/
public interface Evaluator {
/** Evaluates an expression.
* @param table The table on which to evaluate the expression.
* @param expression The expression to evaluate
* @param failIfUnknown true if the method should fail if a tag is unknown, false if unknown tags should be assumed included in no records.
* @return A bitmap that contains the index of the records that satisfies the expression.
* @throws UnknownTagException if the expression refers to unknown tags and failIfUnknown is true. Otherwise, Evaluator instances should not throw and exception but consider unknwon tags as use in no record.
*/
Bitmap evaluate(TagsTable table, String expression, boolean failIfUnknown);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy