code: public static <T> T transformThriftResult(ColumnOrSuperColumn cosc, ColumnFamilyType columnFamilyType, ThriftRow row)
      {
          Object output = null;
          if (cosc != null)
          {
              switch (columnFamilyType)
              {
              case COLUMN:
                  output = cosc.column;
                  if (row != null)
                  {
                      row.addColumn(cosc.column);
                  }
                  break;
  
              case SUPER_COLUMN:
                  output = cosc.super_column;
                  if (row != null)
                  {
                      row.addSuperColumn(cosc.super_column);
                  }
                  break;
  
              case COUNTER_COLUMN:
                  output = cosc.counter_column;
                  if (row != null)
                  {
                      row.addCounterColumn(cosc.counter_column);
                  }
                  break;
  
              case COUNTER_SUPER_COLUMN:
                  output = cosc.counter_super_column;
                  if (row != null)
                  {
                      row.addCounterSuperColumn(cosc.counter_super_column);
                  }
                  break;
              }
          }
          return (T) output;
      }
docs: Transform thrift result.
  
  @param <T> the generic type
  @param cosc the cosc
  @param columnFamilyType the column family type
  @param row the row
  @return the t