src/java/org/apache/cassandra/tools/SSTableExport.java
/**
     * Get portion of the columns and serialize in loop while not more columns left in the row
     * @param row SSTableIdentityIterator row representation with Column Family
     * @param key Decorated Key for the required row
     * @param out output stream
     */
Get portion of the columns and serialize in loop while not more columns left in the row
@param row SSTableIdentityIterator row representation with Column Family
@param key Decorated Key for the required row
@param out output stream
Get portion of the columns and serialize in loop while not more columns left in the row @param row SSTableIdentityIterator row representation with Column Family @param key Decorated Key for the required row @param out output stream
private static void serializeRow(SSTableIdentityIterator row, DecoratedKey key, PrintStream out)
    {
        ColumnFamily columnFamily = row.getColumnFamily();
        boolean isSuperCF = columnFamily.isSuper();
        CFMetaData cfMetaData = columnFamily.metadata();
        AbstractType comparator = columnFamily.getComparator();
        writeKey(out, bytesToHex(key.key));
        out.print(isSuperCF ? "{" : "[");
        if (isSuperCF)
        {
            while (row.hasNext())
            {
                IColumn column = row.next();
                writeKey(out, comparator.getString(column.name()));
                out.print("{");
                writeKey(out, "deletedAt");
                out.print(column.getMarkedForDeleteAt());
                out.print(", ");
                writeKey(out, "subColumns");
                out.print("[");
                serializeColumns(column.getSubColumns().iterator(), out, columnFamily.getSubComparator(), cfMetaData);
                out.print("]");
                out.print("}");
                if (row.hasNext())
                    out.print(", ");
            }
        }
        else
        {
            serializeColumns(row, out, comparator, cfMetaData);
        }
        out.print(isSuperCF ? "}" : "]");
    }
private static void serializeRow ( SSTableIdentityIterator row , DecoratedKey key , PrintStream out ) { ColumnFamily columnFamily = row . getColumnFamily ( ) ; boolean isSuperCF = columnFamily . isSuper ( ) ; CFMetaData cfMetaData = columnFamily . metadata ( ) ; AbstractType comparator = columnFamily . getComparator ( ) ; writeKey ( out , bytesToHex ( key . key ) ) ; out . print ( isSuperCF ? "{" : "[" ) ; if ( isSuperCF ) { while ( row . hasNext ( ) ) { IColumn column = row . next ( ) ; writeKey ( out , comparator . getString ( column . name ( ) ) ) ; out . print ( "{" ) ; writeKey ( out , "deletedAt" ) ; out . print ( column . getMarkedForDeleteAt ( ) ) ; out . print ( ", " ) ; writeKey ( out , "subColumns" ) ; out . print ( "[" ) ; serializeColumns ( column . getSubColumns ( ) . iterator ( ) , out , columnFamily . getSubComparator ( ) , cfMetaData ) ; out . print ( "]" ) ; out . print ( "}" ) ; if ( row . hasNext ( ) ) out . print ( ", " ) ; } } else { serializeColumns ( row , out , comparator , cfMetaData ) ; } out . print ( isSuperCF ? "}" : "]" ) ; }
Get portion of the columns and serialize in loop while not more columns left in the row
 @param row SSTableIdentityIterator row representation with Column Family
 @param key Decorated Key for the required row
 @param out output stream
Get portion of the columns and serialize in loop while not more columns left in the row @param row SSTableIdentityIterator row representation with Column Family @param key Decorated Key for the required row @param out output stream