code: public Optional<Filters.Filter> adaptFilter(FilterAdapterContext context, Filter filter)
        throws IOException {
      SingleFilterAdapter<?> adapter = getAdapterForFilterOrThrow(filter);
      return Optional.fromNullable(adapter.adapt(context, filter));
    }
docs: Adapt an HBase filter into a Cloud Bigtable Rowfilter.
  
  @param context a {@link com.google.cloud.bigtable.hbase.adapters.filters.FilterAdapterContext} object.
  @param filter a {@link org.apache.hadoop.hbase.filter.Filter} object.
  @return a {@link com.google.common.base.Optional} object.
  @throws java.io.IOException if any.