public static byte[] filterFromHBase(Filter filter) throws IOException {
    FilterProtos.Filter filterPB = ProtobufUtil.toFilter(filter);
    return filterPB.toByteArray();
  }
Creates a {@link RowMutations} (HBase) from a {@link TRowMutations} (Thrift)
@param in the <code>TRowMutations</code> to convert
@return converted <code>RowMutations</code>
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java