Class ExistingField

  • All Implemented Interfaces:
    Serializable, org.apache.flink.table.legacy.descriptors.Descriptor, org.apache.flink.table.legacy.sources.FieldComputer<Long>

    @Deprecated
    @Internal
    public final class ExistingField
    extends org.apache.flink.table.legacy.sources.tsextractors.TimestampExtractor
    Deprecated.
    This class will not be supported in the new source design around DynamicTableSource. See FLIP-95 for more information.
    Converts an existing Long, Timestamp, or timestamp formatted java.lang.String field (e.g., "2018-05-28 12:34:56.000") into a rowtime attribute.
    See Also:
    Serialized Form
    • Constructor Detail

      • ExistingField

        public ExistingField​(String field)
        Deprecated.
        Parameters:
        field - The field to convert into a rowtime attribute.
    • Method Detail

      • getArgumentFields

        public String[] getArgumentFields()
        Deprecated.
      • validateArgumentFields

        public void validateArgumentFields​(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] argumentFieldTypes)
        Deprecated.
      • getExpression

        public org.apache.flink.table.expressions.Expression getExpression​(org.apache.flink.table.expressions.ResolvedFieldReference[] fieldAccesses)
        Deprecated.
        Returns an Expression that casts a Long, Timestamp, or timestamp formatted String field (e.g., "2018-05-28 12:34:56.000") into a rowtime attribute.
      • toProperties

        public Map<String,​String> toProperties()
        Deprecated.
        Specified by:
        toProperties in interface org.apache.flink.table.legacy.descriptors.Descriptor
        Overrides:
        toProperties in class org.apache.flink.table.legacy.sources.tsextractors.TimestampExtractor
      • equals

        public boolean equals​(Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object