@Override
  public Filter adapt(FilterAdapterContext context, ColumnRangeFilter filter)
      throws IOException {
    byte[] familyName = getSingleFamily(context.getScan());
    QualifierRangeFilter rangeBuilder = FILTERS.qualifier().rangeWithinFamily(Bytes.toString(familyName));

    if (filter.getMinColumn() != null) {
      ByteString startQualifier = ByteString.copyFrom(filter.getMinColumn());
      if (filter.getMinColumnInclusive()) {
        rangeBuilder.startClosed(startQualifier);
      } else {
        rangeBuilder.startOpen(startQualifier);
      }
    }

    if (filter.getMaxColumn() != null) {
      ByteString endQualifier = ByteString.copyFrom(filter.getMaxColumn());
      if (filter.getMaxColumnInclusive()) {
        rangeBuilder.endClosed(endQualifier);
      } else {
        rangeBuilder.endOpen(endQualifier);
      }
    }
    return rangeBuilder;
  }
@ Override public Filter adapt ( FilterAdapterContext context , ColumnRangeFilter filter ) throws IOException { byte [ ] familyName = getSingleFamily ( context . getScan ( ) ) ; QualifierRangeFilter rangeBuilder = FILTERS . qualifier ( ) . rangeWithinFamily ( Bytes . toString ( familyName ) ) ; if ( filter . getMinColumn ( ) != null ) { ByteString startQualifier = ByteString . copyFrom ( filter . getMinColumn ( ) ) ; if ( filter . getMinColumnInclusive ( ) ) { rangeBuilder . startClosed ( startQualifier ) ; } else { rangeBuilder . startOpen ( startQualifier ) ; } } if ( filter . getMaxColumn ( ) != null ) { ByteString endQualifier = ByteString . copyFrom ( filter . getMaxColumn ( ) ) ; if ( filter . getMaxColumnInclusive ( ) ) { rangeBuilder . endClosed ( endQualifier ) ; } else { rangeBuilder . endOpen ( endQualifier ) ; } } return rangeBuilder ; }
{@inheritDoc}