@Test public void testMapTypeNonStringKeys() { Map<Integer, Float> sourceMap = new HashMap<>(); sourceMap.put(1, 1.5F); sourceMap.put(2, 3.1414F); MapType<Integer, Float> mapType = MapType.getInstance(Int32Type.instance, FloatType.instance, true); ByteBuffer serializedMap = mapType.decompose(sourceMap); Object deserializedMap = CassandraTypeDeserializer.deserialize(mapType, serializedMap); Map<Integer, Float> expectedMap = new HashMap<>(); expectedMap.put(1, 1.5F); expectedMap.put(2, 3.1414F); Assert.assertEquals(expectedMap, deserializedMap); }
public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } private  CassandraTypeDeserializer(); }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } private  CassandraTypeDeserializer(); static Object deserialize(DataType dataType, ByteBuffer bb); static Object deserialize(AbstractType<?> abstractType, ByteBuffer bb); static Object deserialize(CollectionType<?> collectionType, ComplexColumnData ccd); static SchemaBuilder getSchemaBuilder(AbstractType<?> abstractType); static TypeDeserializer getTypeDeserializer(AbstractType<?> abstractType); }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } private  CassandraTypeDeserializer(); static Object deserialize(DataType dataType, ByteBuffer bb); static Object deserialize(AbstractType<?> abstractType, ByteBuffer bb); static Object deserialize(CollectionType<?> collectionType, ComplexColumnData ccd); static SchemaBuilder getSchemaBuilder(AbstractType<?> abstractType); static TypeDeserializer getTypeDeserializer(AbstractType<?> abstractType);  }