@Test public void testColumnRangeFilterThrowsWithNoFamilies() { ColumnRangeFilter filter = new ColumnRangeFilter(Bytes.toBytes("a"), true, Bytes.toBytes("b"), true); Assert.assertFalse(filterAdapter.isFilterSupported(emptyScanContext, filter).isSupported()); }
@Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, ColumnRangeFilter filter) { int familyCount = context.getScan().numFamilies(); if (familyCount != 1) { return UNSUPPORTED_STATUS; } return FilterSupportStatus.SUPPORTED; }
ColumnRangeFilterAdapter extends TypedFilterAdapterBase<ColumnRangeFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, ColumnRangeFilter filter) { int familyCount = context.getScan().numFamilies(); if (familyCount != 1) { return UNSUPPORTED_STATUS; } return FilterSupportStatus.SUPPORTED; } }
ColumnRangeFilterAdapter extends TypedFilterAdapterBase<ColumnRangeFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, ColumnRangeFilter filter) { int familyCount = context.getScan().numFamilies(); if (familyCount != 1) { return UNSUPPORTED_STATUS; } return FilterSupportStatus.SUPPORTED; }  }
ColumnRangeFilterAdapter extends TypedFilterAdapterBase<ColumnRangeFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, ColumnRangeFilter filter) { int familyCount = context.getScan().numFamilies(); if (familyCount != 1) { return UNSUPPORTED_STATUS; } return FilterSupportStatus.SUPPORTED; }  @Override Filter adapt(FilterAdapterContext context, ColumnRangeFilter filter); @Override FilterSupportStatus isFilterSupported(
      FilterAdapterContext context, ColumnRangeFilter filter); }
ColumnRangeFilterAdapter extends TypedFilterAdapterBase<ColumnRangeFilter> { @Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, ColumnRangeFilter filter) { int familyCount = context.getScan().numFamilies(); if (familyCount != 1) { return UNSUPPORTED_STATUS; } return FilterSupportStatus.SUPPORTED; }  @Override Filter adapt(FilterAdapterContext context, ColumnRangeFilter filter); @Override FilterSupportStatus isFilterSupported(
      FilterAdapterContext context, ColumnRangeFilter filter);  }