private Object getFieldValueViaCQL ( Object thriftColumnValue , Attribute attribute ) { PropertyAccessor < ? > accessor = PropertyAccessorFactory . getPropertyAccessor ( ( Field ) attribute . getJavaMember ( ) ) ; Object objValue ; try { if ( CassandraDataTranslator . isCassandraDataTypeClass ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) ) ) { objValue = CassandraDataTranslator . decompose ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) , thriftColumnValue , true ) ; return objValue ; } else { objValue = accessor . fromBytes ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) , ( byte [ ] ) thriftColumnValue ) ; return objValue ; } } catch ( PropertyAccessException pae ) { log . warn ( "Error while setting field{} value via CQL, Caused by: ." , attribute . getName ( ) , pae ) ; } return null ; }
Gets the field value via cql .