code: @Override
    public Filter adapt(FilterAdapterContext context, ColumnPrefixFilter filter)
        throws IOException {
      byte[] prefix = filter.getPrefix();
  
      // Quoting for RE2 can result in at most length * 2 characters written. Pre-allocate
      // that much space in the ByteString.Output to prevent reallocation later.
      ByteString.Output outputStream = ByteString.newOutput(prefix.length * 2);
      ReaderExpressionHelper.writeQuotedExpression(outputStream, prefix);
      outputStream.write(ReaderExpressionHelper.ALL_QUALIFIERS_BYTES);
  
      return FILTERS.qualifier().regex(outputStream.toByteString());
    }
docs: {@inheritDoc}