public class LogicalFilterComposer
extends java.lang.Object
For instance, the expression
(A || B) && !(C && D)can be expressed with the following code (assuming A, B, C, and D are CrawlableDatasetFilters)
LogicalFilterComposer.getAndFilter( LogicalFilterComposer.getOrFilter( A, B), LogicalFilterComposer.getNotFilter( LogicalFilterComposer.getAndFilter( C, D) ) );
Constructor and Description |
---|
LogicalFilterComposer() |
Modifier and Type | Method and Description |
---|---|
static CrawlableDatasetFilter |
getAndFilter(CrawlableDatasetFilter filter1,
CrawlableDatasetFilter filter2) |
static CrawlableDatasetFilter |
getNotFilter(CrawlableDatasetFilter filter) |
static CrawlableDatasetFilter |
getOrFilter(CrawlableDatasetFilter filter1,
CrawlableDatasetFilter filter2) |
public static CrawlableDatasetFilter getAndFilter(CrawlableDatasetFilter filter1, CrawlableDatasetFilter filter2)
public static CrawlableDatasetFilter getOrFilter(CrawlableDatasetFilter filter1, CrawlableDatasetFilter filter2)
public static CrawlableDatasetFilter getNotFilter(CrawlableDatasetFilter filter)