Class MillisecondsSinceEpochFormatter
- java.lang.Object
-
- io.trino.plugin.kafka.encoder.json.format.MillisecondsSinceEpochFormatter
-
- All Implemented Interfaces:
JsonDateTimeFormatter
public class MillisecondsSinceEpochFormatter extends Object implements JsonDateTimeFormatter
-
-
Constructor Summary
Constructors Constructor Description MillisecondsSinceEpochFormatter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatTime(SqlTime value, int precision)StringformatTimestamp(SqlTimestamp value)StringformatTimestampWithZone(SqlTimestampWithTimeZone value)static booleanisSupportedType(Type type)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.plugin.kafka.encoder.json.format.JsonDateTimeFormatter
formatDate, formatTimeWithZone
-
-
-
-
Method Detail
-
isSupportedType
public static boolean isSupportedType(Type type)
-
formatTime
public String formatTime(SqlTime value, int precision)
- Specified by:
formatTimein interfaceJsonDateTimeFormatter
-
formatTimestamp
public String formatTimestamp(SqlTimestamp value)
- Specified by:
formatTimestampin interfaceJsonDateTimeFormatter
-
formatTimestampWithZone
public String formatTimestampWithZone(SqlTimestampWithTimeZone value)
- Specified by:
formatTimestampWithZonein interfaceJsonDateTimeFormatter
-
-