简体   繁体   中英

Cassandra: Get equivalent Java Class for DataType

It seems that in the 2.2. version of the Java driver, in DataType, the method "asJavaClass()" from previous versions was removed. Does anyone have any idea how to get the equivalent Java Class for a given DataType.

thanks in advance

Altober

With the introduction of custom codecs in 2.2, there is no pre-established mapping to a given Java class, that would depend on the codecs that are registered and which getter method you call to retrieve the value. At best we could provide the "default" mapping produced by the built-in codecs. What use case do you need this for?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM