public static List<TCell> cellFromHBase(Cell in) {
    List<TCell> list = new ArrayList<>(1);
    if (in != null) {
      list.add(new TCell(ByteBuffer.wrap(CellUtil.cloneValue(in)), in.getTimestamp()));
    }
    return list;
  }
This utility method creates a list of Thrift TCell "struct" based on an Hbase Cell object. The
empty list is returned if the input is null. Hbase Cell object
@return Thrift TCell array
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java