src/java/org/apache/cassandra/cli/CliClient.java
/**
     * Converts column name into ByteBuffer according to comparator type
     * @param superColumn - sub-column name from parser
     * @param columnFamilyDef - column family from parser
     * @return ByteBuffer bytes - into which column name was converted according to comparator type
     */
Converts column name into ByteBuffer according to comparator type
@param superColumn - sub-column name from parser
@param columnFamilyDef - column family from parser
@return ByteBuffer bytes - into which column name was converted according to comparator type
Converts column name into ByteBuffer according to comparator type @param superColumn - sub - column name from parser @param columnFamilyDef - column family from parser @return ByteBuffer bytes - into which column name was converted according to comparator type
private ByteBuffer subColumnNameAsBytes(String superColumn, CfDef columnFamilyDef)
    {
        String comparatorClass = columnFamilyDef.subcomparator_type;
        if (comparatorClass == null)
        {
            sessionState.out.println(String.format("Notice: defaulting to BytesType subcomparator for '%s'", columnFamilyDef.getName()));
            comparatorClass = "BytesType";
        }
        return getBytesAccordingToType(superColumn, getFormatType(comparatorClass));
    }
private ByteBuffer subColumnNameAsBytes ( String superColumn , CfDef columnFamilyDef ) { String comparatorClass = columnFamilyDef . subcomparator_type ; if ( comparatorClass == null ) { sessionState . out . println ( String . format ( "Notice: defaulting to BytesType subcomparator for '%s'" , columnFamilyDef . getName ( ) ) ) ; comparatorClass = "BytesType" ; } return getBytesAccordingToType ( superColumn , getFormatType ( comparatorClass ) ) ; }
Converts column name into ByteBuffer according to comparator type
 @param superColumn - sub-column name from parser
 @param columnFamilyDef - column family from parser
 @return ByteBuffer bytes - into which column name was converted according to comparator type
Converts column name into ByteBuffer according to comparator type @param superColumn - sub - column name from parser @param columnFamilyDef - column family from parser @return ByteBuffer bytes - into which column name was converted according to comparator type