com.datastax.driver.core.DataType#cint ( )源码实例Demo

下面列出了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);
}
 
源代码2 项目: hugegraph   文件: CassandraTables.java
@Override
protected DataType fieldValuesType() {
    return DataType.cint();
}
 
源代码3 项目: cassandra-jdbc-wrapper   文件: IntToLongCodec.java
public IntToLongCodec(Class<Long> javaClass) {
	super(DataType.cint(), javaClass);
}