public class BaseRowTypeInfo extends TupleTypeInfoBase<BaseRow>
CompositeType.FlatFieldDescriptor, CompositeType.InvalidFieldReferenceException, CompositeType.TypeComparatorBuilder<T>
types
Constructor and Description |
---|
BaseRowTypeInfo(LogicalType... logicalTypes) |
BaseRowTypeInfo(LogicalType[] logicalTypes,
String[] fieldNames) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
TypeComparator<BaseRow> |
createComparator(int[] logicalKeyFields,
boolean[] orders,
int logicalFieldOffset,
ExecutionConfig config)
Generic implementation of the comparator creation.
|
BaseRowSerializer |
createSerializer(ExecutionConfig config)
Creates a serializer for the type.
|
CompositeType.TypeComparatorBuilder<BaseRow> |
createTypeComparatorBuilder() |
static String[] |
generateDefaultFieldNames(int length) |
int |
getFieldIndex(String fieldName)
Returns the field index of the composite field of the given name.
|
String[] |
getFieldNames()
Returns the names of the composite fields of this type.
|
TypeInformation<?>[] |
getFieldTypes()
Returns the field types of the row.
|
LogicalType[] |
getLogicalTypes() |
<X> TypeInformation<X> |
getTypeAt(String fieldExpression)
Returns the type of the (nested) field at the given field expression position.
|
int |
hashCode() |
static BaseRowTypeInfo |
of(RowType rowType) |
RowType |
toRowType() |
String |
toString() |
equals, getArity, getFlatFields, getTotalFields, getTypeAt, hasDeterministicFieldOrder, isBasicType, isCaseClass, isTupleType
getFlatFields, getTypeClass, hasField, isKeyType, isSortKeyType
getGenericParameters, of, of
public BaseRowTypeInfo(LogicalType... logicalTypes)
public BaseRowTypeInfo(LogicalType[] logicalTypes, String[] fieldNames)
public static String[] generateDefaultFieldNames(int length)
public <X> TypeInformation<X> getTypeAt(String fieldExpression)
CompositeType
getTypeAt
in class TupleTypeInfoBase<BaseRow>
fieldExpression
- The field expression for which the field of which the type is returned.public TypeComparator<BaseRow> createComparator(int[] logicalKeyFields, boolean[] orders, int logicalFieldOffset, ExecutionConfig config)
CompositeType
createComparator
in class CompositeType<BaseRow>
public String[] getFieldNames()
CompositeType
getFieldNames
in class CompositeType<BaseRow>
public int getFieldIndex(String fieldName)
CompositeType
getFieldIndex
in class CompositeType<BaseRow>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TupleTypeInfoBase<BaseRow>
obj
- Object which wants to take part in the equality relationpublic int hashCode()
hashCode
in class TupleTypeInfoBase<BaseRow>
public String toString()
toString
in class TupleTypeInfoBase<BaseRow>
public TypeInformation<?>[] getFieldTypes()
public CompositeType.TypeComparatorBuilder<BaseRow> createTypeComparatorBuilder()
createTypeComparatorBuilder
in class CompositeType<BaseRow>
public BaseRowSerializer createSerializer(ExecutionConfig config)
TypeInformation
createSerializer
in class TypeInformation<BaseRow>
config
- The config used to parameterize the serializer.public LogicalType[] getLogicalTypes()
public RowType toRowType()
public static BaseRowTypeInfo of(RowType rowType)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.