Class TimestampParser
java.lang.Object
io.aiven.commons.kafka.connector.common.templating.TimestampParser
Timestamp parser utilities.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleDateFormatgetFormatter(VariableTemplatePart timestampTemplatePart) Gets a SimpleDateFormat for the timestamp template.static SimpleDateFormatgetFormatter(String format) Gets a SimpleDateFormat for the timestamp template.
-
Field Details
-
UTC
Definition of UTC Timezone -
VALIDATOR
public static org.apache.kafka.common.config.ConfigDef.Validator VALIDATORA validator for a timestamp template part.
-
-
Method Details
-
getFormatter
Gets a SimpleDateFormat for the timestamp template. By default, the timezone is set to UTC.- Parameters:
timestampTemplatePart- the timestamp template part- Returns:
- the SimpleDateFormat with UTC timezone.
-
getFormatter
Gets a SimpleDateFormat for the timestamp template. By default, the timezone is set to UTC.- Parameters:
format- the format for the timestamp- Returns:
- the SimpleDateFormat with UTC timezone.
-