code: public static <T> Map<ByteBuffer, List<T>> transformThriftResult(ColumnFamilyType columnFamilyType,
              List<KeySlice> keySlices, ThriftRow row)
      {
  
          Map<ByteBuffer, List<T>> output = new HashMap<ByteBuffer, List<T>>();
  
          for (KeySlice keySlice : keySlices)
          {
              output.put(ByteBuffer.wrap(keySlice.getKey()),
                      (List<T>) transformThriftResult(keySlice.getColumns(), columnFamilyType, row));
          }
  
          return output;
      }
docs: Transform thrift result.
  
  @param <T> the generic type
  @param columnFamilyType the column family type
  @param keySlices the key slices
  @param row the row
  @return the map