Class StringToTimeTransform

    • Constructor Detail

      • StringToTimeTransform

        public StringToTimeTransform​(String columnName,
                                     TimeZone timeZone)
        Instantiate this without a time format specified. If this constructor is used, this transform will be allowed to handle several common transforms as defined in the static formats array.
        Parameters:
        columnName - Name of the String column
        timeZone - Timezone for time parsing
      • StringToTimeTransform

        public StringToTimeTransform​(String columnName,
                                     TimeZone timeZone,
                                     Locale locale)
        Parameters:
        columnName - Name of the String column
        timeZone - Timezone for time parsing
        locale - Locale for i18n
      • StringToTimeTransform

        public StringToTimeTransform​(String columnName,
                                     org.joda.time.DateTimeZone timeZone,
                                     Locale locale)
        Instantiate this without a time format specified. If this constructor is used, this transform will be allowed to handle several common transforms as defined in the static formats array.
        Parameters:
        columnName - Name of the String column
        timeZone - Timezone for time parsing
        locale - Locale for i18n
      • StringToTimeTransform

        public StringToTimeTransform​(String columnName,
                                     String timeFormat,
                                     TimeZone timeZone,
                                     Locale locale,
                                     Long minValidTime,
                                     Long maxValidTime)
        Parameters:
        columnName - Name of the String column
        timeFormat - Time format, as per http://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html
        timeZone - Timezone for time parsing
        locale - Locale for i18n
        minValidTime - Min valid time (epoch millisecond format). If null: no restriction in min valid time
        maxValidTime - Max valid time (epoch millisecond format). If null: no restriction in max valid time
      • StringToTimeTransform

        public StringToTimeTransform​(String columnName,
                                     String timeFormat,
                                     org.joda.time.DateTimeZone timeZone,
                                     Locale locale,
                                     Long minValidTime,
                                     Long maxValidTime)
        Parameters:
        columnName - Name of the String column
        timeFormat - Time format, as per http://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html
        timeZone - Timezone for time parsing
        locale - Locale for i18n
        minValidTime - Min valid time (epoch millisecond format). If null: no restriction in min valid time
        maxValidTime - Max valid time (epoch millisecond format). If null: no restriction in max valid time