下面列出了com.datastax.driver.core.DataType#cint ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Test
public void testInt() {
DataType intType = DataType.cint();
AbstractType<?> convertedType = CassandraTypeConverter.convert(intType);
Int32Type expectedType = Int32Type.instance;
Assert.assertEquals(expectedType, convertedType);
}
@Override
protected DataType fieldValuesType() {
return DataType.cint();
}
public IntToLongCodec(Class<Long> javaClass) {
super(DataType.cint(), javaClass);
}