@Test public void testTuple() { DataType tupleType = TupleType.of(null, null, DataType.timestamp(), DataType.smallint()); AbstractType<?> convertedType = CassandraTypeConverter.convert(tupleType); List<AbstractType<?>> innerAbstractTypes = new ArrayList<>(2); innerAbstractTypes.add(TimestampType.instance); innerAbstractTypes.add(ShortType.instance); org.apache.cassandra.db.marshal.TupleType expectedType = new org.apache.cassandra.db.marshal.TupleType(innerAbstractTypes); Assert.assertEquals(expectedType, convertedType); }
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);  }