@Test public void testMap() { DataType mapType = DataType.map(DataType.ascii(), DataType.cdouble()); AbstractType<?> convertedType = CassandraTypeConverter.convert(mapType); MapType<?, ?> expectedType = MapType.getInstance(AsciiType.instance, DoubleType.instance, true); Assert.assertEquals(expectedType, convertedType); mapType = DataType.map(DataType.ascii(), DataType.cdouble(), true); convertedType = CassandraTypeConverter.convert(mapType); expectedType = MapType.getInstance(AsciiType.instance, DoubleType.instance, false); Assert.assertEquals(expectedType, convertedType); Assert.assertTrue("Expected convertType to be frozen", convertedType.isFrozenCollection()); }
public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } private  CassandraTypeConverter(); }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } private  CassandraTypeConverter(); static AbstractType<?> convert(DataType type); }
CassandraTypeConverter { public static AbstractType<?> convert(DataType type) { TypeConverter<?> typeConverter = typeMap.get(type.getName()); return typeConverter.convert(type); } private  CassandraTypeConverter(); static AbstractType<?> convert(DataType type);  }