src/java/org/apache/cassandra/thrift/ThriftValidation.java
/**
     * validates all parts of the path to the column, including the column name
     */
validates all parts of the path to the column, including the column name
validates all parts of the path to the column including the column name
public static void validateColumnPath(CFMetaData metadata, ColumnPath column_path) throws InvalidRequestException
    {
        if (metadata.cfType == ColumnFamilyType.Standard)
        {
            if (column_path.super_column != null)
            {
                throw new InvalidRequestException("supercolumn parameter is invalid for standard CF " + metadata.cfName);
            }
            if (column_path.column == null)
            {
                throw new InvalidRequestException("column parameter is not optional for standard CF " + metadata.cfName);
            }
        }
        else
        {
            if (column_path.super_column == null)
                throw new InvalidRequestException("supercolumn parameter is not optional for super CF " + metadata.cfName);
        }
        if (column_path.column != null)
        {
            validateColumnNames(metadata, column_path.super_column, Arrays.asList(column_path.column));
        }
        if (column_path.super_column != null)
        {
            validateColumnNames(metadata, (ByteBuffer)null, Arrays.asList(column_path.super_column));
        }
    }
public static void validateColumnPath ( CFMetaData metadata , ColumnPath column_path ) throws InvalidRequestException { if ( metadata . cfType == ColumnFamilyType . Standard ) { if ( column_path . super_column != null ) { throw new InvalidRequestException ( "supercolumn parameter is invalid for standard CF " + metadata . cfName ) ; } if ( column_path . column == null ) { throw new InvalidRequestException ( "column parameter is not optional for standard CF " + metadata . cfName ) ; } } else { if ( column_path . super_column == null ) throw new InvalidRequestException ( "supercolumn parameter is not optional for super CF " + metadata . cfName ) ; } if ( column_path . column != null ) { validateColumnNames ( metadata , column_path . super_column , Arrays . asList ( column_path . column ) ) ; } if ( column_path . super_column != null ) { validateColumnNames ( metadata , ( ByteBuffer ) null , Arrays . asList ( column_path . super_column ) ) ; } }
validates all parts of the path to the column, including the column name
validates all parts of the path to the column including the column name