@Test public void testMapType() { Map<String, Double> expectedMap = new HashMap<>(); expectedMap.put("foo", 1D); expectedMap.put("bar", 50D); MapType<String, Double> nonFrozenMapType = MapType.getInstance(AsciiType.instance, DoubleType.instance, true); ByteBuffer serializedMap = nonFrozenMapType.decompose(expectedMap); Object deserializedMap = CassandraTypeDeserializer.deserialize(nonFrozenMapType, serializedMap); Assert.assertEquals(expectedMap, deserializedMap); MapType<String, Double> frozenMapType = MapType.getInstance(AsciiType.instance, DoubleType.instance, false); serializedMap = frozenMapType.decompose(expectedMap); deserializedMap = CassandraTypeDeserializer.deserialize(frozenMapType, serializedMap); 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);  }