code: public ThriftRow translateToThriftRow(Map<ByteBuffer, List<ColumnOrSuperColumn>> coscResultMap,
              boolean isCounterType, Type columnFamilyType, ThriftRow row)
      {
          ColumnFamilyType columnType = ColumnFamilyType.COLUMN;
  
          if (isCounterType)
          {
              if (columnFamilyType.equals(Type.SUPER_COLUMN_FAMILY))
              {
                  columnType = ColumnFamilyType.COUNTER_SUPER_COLUMN;
              }
              else
              {
                  columnType = ColumnFamilyType.COUNTER_COLUMN;
              }
          }
          else if (columnFamilyType.equals(Type.SUPER_COLUMN_FAMILY))
          {
              columnType = ColumnFamilyType.SUPER_COLUMN;
          }
          transformThriftResultAndAddToList(coscResultMap, columnType, row);
          return row;
      }
docs: Translates into thrift row.
  
  @param coscResultMap the cosc result map
  @param isCounterType the is counter type
  @param columnFamilyType the column family type
  @param row the row
  @return the thrift row