@Test public void wrappedFilterSupported() { WhileMatchFilter filter = new WhileMatchFilter(new PageFilter(30)); Scan scan = new Scan(); scan.setFilter(filter); FilterAdapterContext context = new FilterAdapterContext(scan, new DefaultReadHooks()); assertEquals(FilterSupportStatus.SUPPORTED, instance.isFilterSupported(context, filter)); }
@Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, WhileMatchFilter filter) { List<FilterSupportStatus> unsupportedStatuses = new ArrayList<>(); subFilterAdapter.collectUnsupportedStatuses(context, filter.getFilter(), unsupportedStatuses); if (!unsupportedStatuses.isEmpty()) { return FilterSupportStatus.newCompositeNotSupported(unsupportedStatuses); } if (inInterleave(context.getScan().getFilter(), filter)) { return FilterSupportStatus.newNotSupported( "A WhileMatchFilter cannot be in a FilterList with MUST_PASS_ONE operation."); } return FilterSupportStatus.SUPPORTED; }
WhileMatchFilterAdapter extends TypedFilterAdapterBase<WhileMatchFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, WhileMatchFilter filter) { List<FilterSupportStatus> unsupportedStatuses = new ArrayList<>(); subFilterAdapter.collectUnsupportedStatuses(context, filter.getFilter(), unsupportedStatuses); if (!unsupportedStatuses.isEmpty()) { return FilterSupportStatus.newCompositeNotSupported(unsupportedStatuses); } if (inInterleave(context.getScan().getFilter(), filter)) { return FilterSupportStatus.newNotSupported( "A WhileMatchFilter cannot be in a FilterList with MUST_PASS_ONE operation."); } return FilterSupportStatus.SUPPORTED; } }
WhileMatchFilterAdapter extends TypedFilterAdapterBase<WhileMatchFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, WhileMatchFilter filter) { List<FilterSupportStatus> unsupportedStatuses = new ArrayList<>(); subFilterAdapter.collectUnsupportedStatuses(context, filter.getFilter(), unsupportedStatuses); if (!unsupportedStatuses.isEmpty()) { return FilterSupportStatus.newCompositeNotSupported(unsupportedStatuses); } if (inInterleave(context.getScan().getFilter(), filter)) { return FilterSupportStatus.newNotSupported( "A WhileMatchFilter cannot be in a FilterList with MUST_PASS_ONE operation."); } return FilterSupportStatus.SUPPORTED; } WhileMatchFilterAdapter(FilterAdapter subFilterAdapter); }
WhileMatchFilterAdapter extends TypedFilterAdapterBase<WhileMatchFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, WhileMatchFilter filter) { List<FilterSupportStatus> unsupportedStatuses = new ArrayList<>(); subFilterAdapter.collectUnsupportedStatuses(context, filter.getFilter(), unsupportedStatuses); if (!unsupportedStatuses.isEmpty()) { return FilterSupportStatus.newCompositeNotSupported(unsupportedStatuses); } if (inInterleave(context.getScan().getFilter(), filter)) { return FilterSupportStatus.newNotSupported( "A WhileMatchFilter cannot be in a FilterList with MUST_PASS_ONE operation."); } return FilterSupportStatus.SUPPORTED; } WhileMatchFilterAdapter(FilterAdapter subFilterAdapter); @Override Filters.Filter adapt(FilterAdapterContext context, WhileMatchFilter filter); @Override FilterSupportStatus isFilterSupported(
      FilterAdapterContext context, WhileMatchFilter filter); }
WhileMatchFilterAdapter extends TypedFilterAdapterBase<WhileMatchFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, WhileMatchFilter filter) { List<FilterSupportStatus> unsupportedStatuses = new ArrayList<>(); subFilterAdapter.collectUnsupportedStatuses(context, filter.getFilter(), unsupportedStatuses); if (!unsupportedStatuses.isEmpty()) { return FilterSupportStatus.newCompositeNotSupported(unsupportedStatuses); } if (inInterleave(context.getScan().getFilter(), filter)) { return FilterSupportStatus.newNotSupported( "A WhileMatchFilter cannot be in a FilterList with MUST_PASS_ONE operation."); } return FilterSupportStatus.SUPPORTED; } WhileMatchFilterAdapter(FilterAdapter subFilterAdapter); @Override Filters.Filter adapt(FilterAdapterContext context, WhileMatchFilter filter); @Override FilterSupportStatus isFilterSupported(
      FilterAdapterContext context, WhileMatchFilter filter);  }