Class CoderTypeInformation<T>
- java.lang.Object
-
- org.apache.flink.api.common.typeinfo.TypeInformation<T>
-
- org.apache.beam.runners.flink.translation.types.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>FlinkTypeInformationfor BeamCoders.- 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 booleancanEqual(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)booleanequals(@Nullable java.lang.Object o)intgetArity()org.apache.beam.sdk.coders.Coder<T>getCoder()intgetTotalFields()java.lang.Class<T>getTypeClass()inthashCode()booleanisBasicType()booleanisKeyType()booleanisTupleType()java.lang.StringtoString()CoderTypeInformation<T>withPipelineOptions(org.apache.beam.sdk.options.PipelineOptions pipelineOptions)Creates a newCoderTypeInformationwithPipelineOptions, that can be used forFileSystemsregistration.
-
-
-
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:
isBasicTypein classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
isTupleType
public boolean isTupleType()
- Specified by:
isTupleTypein classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
getArity
public int getArity()
- Specified by:
getArityin classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
getTypeClass
public java.lang.Class<T> getTypeClass()
- Specified by:
getTypeClassin classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
isKeyType
public boolean isKeyType()
- Specified by:
isKeyTypein classorg.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:
createSerializerin classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
getTotalFields
public int getTotalFields()
- Specified by:
getTotalFieldsin classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
withPipelineOptions
public CoderTypeInformation<T> withPipelineOptions(org.apache.beam.sdk.options.PipelineOptions pipelineOptions)
Creates a newCoderTypeInformationwithPipelineOptions, that can be used forFileSystemsregistration.- 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:
equalsin classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
hashCode
public int hashCode()
- Specified by:
hashCodein classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
canEqual
public boolean canEqual(java.lang.Object obj)
- Specified by:
canEqualin classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
toString
public java.lang.String toString()
- Specified by:
toStringin classorg.apache.flink.api.common.typeinfo.TypeInformation<T>
-
-