Class SqlToCqlTypeConverter.TimestampConverter
- java.lang.Object
-
- org.apache.cassandra.spark.bulkwriter.SqlToCqlTypeConverter.Converter<T>
-
- org.apache.cassandra.spark.bulkwriter.SqlToCqlTypeConverter.TimestampConverter
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SqlToCqlTypeConverter
public static class SqlToCqlTypeConverter.TimestampConverter extends SqlToCqlTypeConverter.Converter<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimestampConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DateconvertInternal(java.lang.Object object)Returns a Date representing the number of milliseconds since the standard base time known as the epoch (January 1 1970 at 00:00:00 GMT), as specified by the documentation.java.lang.StringtoString()
-
-
-
Method Detail
-
convertInternal
public java.util.Date convertInternal(java.lang.Object object)
Returns a Date representing the number of milliseconds since the standard base time known as the epoch (January 1 1970 at 00:00:00 GMT), as specified by the documentation.- Parameters:
object- the input object to convert- Returns:
- the Date
- Throws:
java.lang.RuntimeException- when the object cannot be converted to timestamp
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-