public static ColumnDescriptor colDescFromHbase(ColumnFamilyDescriptor in) {
    ColumnDescriptor col = new ColumnDescriptor();
    col.name = ByteBuffer.wrap(Bytes.add(in.getName(), KeyValue.COLUMN_FAMILY_DELIM_ARRAY));
    col.maxVersions = in.getMaxVersions();
    col.compression = in.getCompressionType().toString();
    col.inMemory = in.isInMemory();
    col.blockCacheEnabled = in.isBlockCacheEnabled();
    col.bloomFilterType = in.getBloomFilterType().toString();
    col.timeToLive = in.getTimeToLive();
    return col;
  }
This utility method creates a new Thrift ColumnDescriptor "struct" based on an Hbase
HColumnDescriptor object. Hbase HColumnDescriptor object
@return Thrift ColumnDescriptor
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java