private boolean isCql3Enabled ( TableInfo tableInfo ) { Properties cfProperties = getColumnFamilyProperties ( tableInfo ) ; String defaultValidationClass = cfProperties != null ? cfProperties . getProperty ( CassandraConstants . DEFAULT_VALIDATION_CLASS ) : null ; // For normal columns boolean isCounterColumnType = isCounterColumnType ( tableInfo , defaultValidationClass ) ; return containsCompositeKey ( tableInfo ) || containsCollectionColumns ( tableInfo ) || ( ( cql_version != null && cql_version . equals ( CassandraConstants . CQL_VERSION_3_0 ) ) && ( containsEmbeddedColumns ( tableInfo ) || containsElementCollectionColumns ( tableInfo ) ) ) && ! isCounterColumnType || ( ( cql_version != null && cql_version . equals ( CassandraConstants . CQL_VERSION_3_0 ) ) && ! tableInfo . getType ( ) . equals ( Type . SUPER_COLUMN_FAMILY . name ( ) ) ) ; }
Checks if is cql3 enabled .