src/java/org/apache/cassandra/thrift/ThriftValidation.java
// column_path_or_parent is a ColumnPath for remove, where the "column" is optional even for a standard CF
column_path_or_parent is a ColumnPath for remove, where the "column" is optional even for a standard CF
column_path_or_parent is a ColumnPath for remove where the " column " is optional even for a standard CF
static void validateColumnPathOrParent(CFMetaData metadata, ColumnPath column_path_or_parent) throws InvalidRequestException
    {
        if (metadata.cfType == ColumnFamilyType.Standard)
        {
            if (column_path_or_parent.super_column != null)
            {
                throw new InvalidRequestException("supercolumn may not be specified for standard CF " + metadata.cfName);
            }
        }
        if (metadata.cfType == ColumnFamilyType.Super)
        {
            if (column_path_or_parent.super_column == null && column_path_or_parent.column != null)
            {
                throw new InvalidRequestException("A column cannot be specified without specifying a super column for removal on super CF " + metadata.cfName);
            }
        }
        if (column_path_or_parent.column != null)
        {
            validateColumnNames(metadata, column_path_or_parent.super_column, Arrays.asList(column_path_or_parent.column));
        }
        if (column_path_or_parent.super_column != null)
        {
            validateColumnNames(metadata, (ByteBuffer)null, Arrays.asList(column_path_or_parent.super_column));
        }
    }
static void validateColumnPathOrParent ( CFMetaData metadata , ColumnPath column_path_or_parent ) throws InvalidRequestException { if ( metadata . cfType == ColumnFamilyType . Standard ) { if ( column_path_or_parent . super_column != null ) { throw new InvalidRequestException ( "supercolumn may not be specified for standard CF " + metadata . cfName ) ; } } if ( metadata . cfType == ColumnFamilyType . Super ) { if ( column_path_or_parent . super_column == null && column_path_or_parent . column != null ) { throw new InvalidRequestException ( "A column cannot be specified without specifying a super column for removal on super CF " + metadata . cfName ) ; } } if ( column_path_or_parent . column != null ) { validateColumnNames ( metadata , column_path_or_parent . super_column , Arrays . asList ( column_path_or_parent . column ) ) ; } if ( column_path_or_parent . super_column != null ) { validateColumnNames ( metadata , ( ByteBuffer ) null , Arrays . asList ( column_path_or_parent . super_column ) ) ; } }
column_path_or_parent is a ColumnPath for remove, where the "column" is optional even for a standard CF
column_path_or_parent is a ColumnPath for remove where the " column " is optional even for a standard CF