Class CoderTypeInformation<T>

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.flink.api.common.typeinfo.AtomicType<T>

    public class CoderTypeInformation<T>
    extends org.apache.flink.api.common.typeinfo.TypeInformation<T>
    implements org.apache.flink.api.common.typeinfo.AtomicType<T>
    Flink TypeInformation for Beam Coders.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CoderTypeInformation​(org.apache.beam.sdk.coders.Coder<T> coder, org.apache.beam.runners.core.construction.SerializablePipelineOptions pipelineOptions)  
      CoderTypeInformation​(org.apache.beam.sdk.coders.Coder<T> coder, org.apache.beam.sdk.options.PipelineOptions pipelineOptions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canEqual​(java.lang.Object obj)  
      org.apache.flink.api.common.typeutils.TypeComparator<T> createComparator​(boolean sortOrderAscending, org.apache.flink.api.common.ExecutionConfig executionConfig)  
      org.apache.flink.api.common.typeutils.TypeSerializer<T> createSerializer​(org.apache.flink.api.common.ExecutionConfig config)  
      boolean equals​(@Nullable java.lang.Object o)  
      int getArity()  
      org.apache.beam.sdk.coders.Coder<T> getCoder()  
      int getTotalFields()  
      java.lang.Class<T> getTypeClass()  
      int hashCode()  
      boolean isBasicType()  
      boolean isKeyType()  
      boolean isTupleType()  
      java.lang.String toString()  
      CoderTypeInformation<T> withPipelineOptions​(org.apache.beam.sdk.options.PipelineOptions pipelineOptions)
      Creates a new CoderTypeInformation with PipelineOptions, that can be used for FileSystems registration.
      • Methods inherited from class org.apache.flink.api.common.typeinfo.TypeInformation

        getGenericParameters, isSortKeyType, of, of
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CoderTypeInformation

        public CoderTypeInformation​(org.apache.beam.sdk.coders.Coder<T> coder,
                                    org.apache.beam.sdk.options.PipelineOptions pipelineOptions)
      • CoderTypeInformation

        public CoderTypeInformation​(org.apache.beam.sdk.coders.Coder<T> coder,
                                    org.apache.beam.runners.core.construction.SerializablePipelineOptions pipelineOptions)
    • Method Detail

      • getCoder

        public org.apache.beam.sdk.coders.Coder<T> getCoder()
      • isBasicType

        public boolean isBasicType()
        Specified by:
        isBasicType in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • isTupleType

        public boolean isTupleType()
        Specified by:
        isTupleType in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • getArity

        public int getArity()
        Specified by:
        getArity in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • getTypeClass

        public java.lang.Class<T> getTypeClass()
        Specified by:
        getTypeClass in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • isKeyType

        public boolean isKeyType()
        Specified by:
        isKeyType in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • createSerializer

        public org.apache.flink.api.common.typeutils.TypeSerializer<T> createSerializer​(org.apache.flink.api.common.ExecutionConfig config)
        Specified by:
        createSerializer in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • getTotalFields

        public int getTotalFields()
        Specified by:
        getTotalFields in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • withPipelineOptions

        public CoderTypeInformation<T> withPipelineOptions​(org.apache.beam.sdk.options.PipelineOptions pipelineOptions)
        Creates a new CoderTypeInformation with PipelineOptions, that can be used for FileSystems registration.
        Parameters:
        pipelineOptions - Options of current pipeline.
        Returns:
        New type information.
        See Also:
        Jira issue.
      • equals

        public boolean equals​(@Nullable java.lang.Object o)
        Specified by:
        equals in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • canEqual

        public boolean canEqual​(java.lang.Object obj)
        Specified by:
        canEqual in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class org.apache.flink.api.common.typeinfo.TypeInformation<T>
      • createComparator

        public org.apache.flink.api.common.typeutils.TypeComparator<T> createComparator​(boolean sortOrderAscending,
                                                                                        org.apache.flink.api.common.ExecutionConfig executionConfig)
        Specified by:
        createComparator in interface org.apache.flink.api.common.typeinfo.AtomicType<T>