Java Code Examples for com.datastax.driver.core.DataType#cint()

The following examples show how to use com.datastax.driver.core.DataType#cint() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CassandraTypeConverterTest.java    From debezium-incubator with Apache License 2.0 5 votes vote down vote up
@Test
public void testInt() {
    DataType intType = DataType.cint();
    AbstractType<?> convertedType = CassandraTypeConverter.convert(intType);

    Int32Type expectedType = Int32Type.instance;

    Assert.assertEquals(expectedType, convertedType);
}
 
Example 2
Source File: CassandraTables.java    From hugegraph with Apache License 2.0 4 votes vote down vote up
@Override
protected DataType fieldValuesType() {
    return DataType.cint();
}
 
Example 3
Source File: IntToLongCodec.java    From cassandra-jdbc-wrapper with Apache License 2.0 4 votes vote down vote up
public IntToLongCodec(Class<Long> javaClass) {
	super(DataType.cint(), javaClass);
}