src/java/org/apache/cassandra/thrift/ThriftValidation.java
// Don't check that the table exists, validateTable or validateColumnFamily must be called beforehand.
Don't check that the table exists, validateTable or validateColumnFamily must be called beforehand.
Don ' t check that the table exists validateTable or validateColumnFamily must be called beforehand .
public static void validateConsistencyLevel(String table, ConsistencyLevel cl, RequestType requestType) throws InvalidRequestException
    {
        switch (cl)
        {
            case ANY:
                if (requestType == RequestType.READ)
                    throw new InvalidRequestException("ANY ConsistencyLevel is only supported for writes");
                break;
            case LOCAL_QUORUM:
                requireNetworkTopologyStrategy(table, cl);
                break;
            case EACH_QUORUM:
                requireNetworkTopologyStrategy(table, cl);
                if (requestType == RequestType.READ)
                    throw new InvalidRequestException("EACH_QUORUM ConsistencyLevel is only supported for writes");
                break;
        }
    }
public static void validateConsistencyLevel ( String table , ConsistencyLevel cl , RequestType requestType ) throws InvalidRequestException { switch ( cl ) { case ANY : if ( requestType == RequestType . READ ) throw new InvalidRequestException ( "ANY ConsistencyLevel is only supported for writes" ) ; break ; case LOCAL_QUORUM : requireNetworkTopologyStrategy ( table , cl ) ; break ; case EACH_QUORUM : requireNetworkTopologyStrategy ( table , cl ) ; if ( requestType == RequestType . READ ) throw new InvalidRequestException ( "EACH_QUORUM ConsistencyLevel is only supported for writes" ) ; break ; } }
Don't check that the table exists, validateTable or validateColumnFamily must be called beforehand.
Don ' t check that the table exists validateTable or validateColumnFamily must be called beforehand .