public static Class < ? > getValidationClassInstance ( Class < ? > dataType , boolean isCql3Enabled ) { resetMapperForCQL3 ( isCql3Enabled ) ; Class < ? > validation_class ; validation_class = validationClassMapper . get ( dataType ) ; if ( validation_class == null ) { if ( dataType . isEnum ( ) ) { validation_class = UTF8Type . class ; } else { validation_class = BytesType . class ; } } resetMapperForThrift ( isCql3Enabled ) ; return validation_class ; }
Gets the validation class instance .