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

The following examples show how to use com.datastax.driver.core.DataType#timestamp() . 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 testTimestamp() {
    DataType timestampType = DataType.timestamp();
    AbstractType<?> convertedType = CassandraTypeConverter.convert(timestampType);

    TimestampType expectedType = TimestampType.instance;

    Assert.assertEquals(expectedType, convertedType);
}
 
Example 2
Source File: DateTimeCodec.java    From cassandra-reaper with Apache License 2.0 4 votes vote down vote up
public DateTimeCodec() {
  super(DataType.timestamp(), DateTime.class);
}
 
Example 3
Source File: JavaSqlTimestampCodec.java    From cassandra-jdbc-driver with Apache License 2.0 4 votes vote down vote up
private JavaSqlTimestampCodec() {
    super(DataType.timestamp(), Timestamp.class);
}
 
Example 4
Source File: StringTimestampCodec.java    From cassandra-jdbc-driver with Apache License 2.0 4 votes vote down vote up
private StringTimestampCodec() {
    super(DataType.timestamp(), String.class);
}
 
Example 5
Source File: TimestampToLongCodec.java    From cassandra-jdbc-wrapper with Apache License 2.0 4 votes vote down vote up
public TimestampToLongCodec(Class<Long> javaClass) {
	super(DataType.timestamp(), javaClass);
}