public static TypeSerializer < ? > getValidationSerializerClassInstance ( Class < ? > dataType , boolean isCql3Enabled ) { resetMapperForCQL3 ( isCql3Enabled ) ; TypeSerializer < ? > validation_class ; validation_class = validationSerializerClassMapper . get ( dataType ) ; if ( validation_class == null ) { if ( dataType . isEnum ( ) ) { validation_class = UTF8Serializer . instance ; } else { validation_class = BytesSerializer . instance ; } } resetMapperForThrift ( isCql3Enabled ) ; return validation_class ; }
Gets the validation serializer class instance .