public class IncludeExcludeFilter extends java.lang.Object implements DynamicFilter
Modifier and Type | Field and Description |
---|---|
private int |
excludeLimit |
private Restriction |
filter |
private int |
includeLimit |
private java.util.Map<java.lang.Integer,java.lang.Integer> |
positionCount |
Constructor and Description |
---|
IncludeExcludeFilter(DbControl dc,
BioAssaySet bas,
java.util.List<BioAssay> bioAssays,
Restriction filter,
java.lang.Integer includeLimit,
java.lang.Integer excludeLimit) |
Modifier and Type | Method and Description |
---|---|
void |
configureQuery(SqlQuery query)
We need the position which is in column 2 (already selected).
|
boolean |
includeSpot(SqlResult data)
Check if a spot should be included in the filtered output or not.
|
boolean |
useIncludeSpot()
Always true.
|
private final Restriction filter
private final int includeLimit
private final int excludeLimit
private final java.util.Map<java.lang.Integer,java.lang.Integer> positionCount
public IncludeExcludeFilter(DbControl dc, BioAssaySet bas, java.util.List<BioAssay> bioAssays, Restriction filter, java.lang.Integer includeLimit, java.lang.Integer excludeLimit)
public void configureQuery(SqlQuery query)
configureQuery
in interface DynamicFilter
query
- The query to configurepublic boolean useIncludeSpot()
useIncludeSpot
in interface DynamicFilter
public boolean includeSpot(SqlResult data) throws java.sql.SQLException
includeSpot
in interface DynamicFilter
data
- The current data row to checkjava.sql.SQLException
- If running SQL statement fails.