@PublicEvolving public class RowTypeInfo extends TupleTypeInfoBase<Row>
RowCompositeType.FlatFieldDescriptor, CompositeType.InvalidFieldReferenceException, CompositeType.TypeComparatorBuilder<T>| Modifier and Type | Field and Description |
|---|---|
protected String[] |
fieldNames |
types| Constructor and Description |
|---|
RowTypeInfo(TypeInformation<?>... types) |
RowTypeInfo(TypeInformation<?>[] types,
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<Row> |
createComparator(int[] logicalKeyFields,
boolean[] orders,
int logicalFieldOffset,
ExecutionConfig config)
Generic implementation of the comparator creation.
|
TypeSerializer<Row> |
createSerializer(ExecutionConfig config)
Creates a serializer for the type.
|
protected CompositeType.TypeComparatorBuilder<Row> |
createTypeComparatorBuilder() |
boolean |
equals(Object obj)
The equals method does only check for field types.
|
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.
|
void |
getFlatFields(String fieldExpression,
int offset,
List<CompositeType.FlatFieldDescriptor> result)
Computes the flat field descriptors for the given field expression with the given offset.
|
<X> TypeInformation<X> |
getTypeAt(String fieldExpression)
Returns the type of the (nested) field at the given field expression position.
|
int |
hashCode() |
static RowTypeInfo |
projectFields(RowTypeInfo rowType,
int[] fieldMapping)
Creates a
RowTypeInfo with projected fields. |
boolean |
schemaEquals(Object obj)
Tests whether an other object describes the same, schema-equivalent row information.
|
String |
toString() |
getArity, getTotalFields, getTypeAt, hasDeterministicFieldOrder, isBasicType, isCaseClass, isTupleTypegetFlatFields, getTypeClass, hasField, isKeyType, isSortKeyTypegetGenericParameters, of, ofprotected final String[] fieldNames
public RowTypeInfo(TypeInformation<?>... types)
public RowTypeInfo(TypeInformation<?>[] types, String[] fieldNames)
public void getFlatFields(String fieldExpression, int offset, List<CompositeType.FlatFieldDescriptor> result)
CompositeTypegetFlatFields in class TupleTypeInfoBase<Row>fieldExpression - The field expression for which the FlatFieldDescriptors are computed.offset - The offset to use when computing the positions of the flat fields.result - The list into which all flat field descriptors are inserted.public <X> TypeInformation<X> getTypeAt(String fieldExpression)
CompositeTypegetTypeAt in class TupleTypeInfoBase<Row>fieldExpression - The field expression for which the field of which the type is returned.public TypeComparator<Row> createComparator(int[] logicalKeyFields, boolean[] orders, int logicalFieldOffset, ExecutionConfig config)
CompositeTypecreateComparator in class CompositeType<Row>protected CompositeType.TypeComparatorBuilder<Row> createTypeComparatorBuilder()
createTypeComparatorBuilder in class CompositeType<Row>public String[] getFieldNames()
CompositeTypegetFieldNames in class CompositeType<Row>public int getFieldIndex(String fieldName)
CompositeTypegetFieldIndex in class CompositeType<Row>public TypeSerializer<Row> createSerializer(ExecutionConfig config)
TypeInformationcreateSerializer in class TypeInformation<Row>config - The config used to parameterize the serializer.public boolean canEqual(Object obj)
TypeInformationcanEqual in class TupleTypeInfoBase<Row>obj - Object which wants to take part in the equality relationpublic int hashCode()
hashCode in class TupleTypeInfoBase<Row>public boolean equals(Object obj)
schemaEquals(Object) for checking schema-equivalence.equals in class TupleTypeInfoBase<Row>public String toString()
toString in class TupleTypeInfoBase<Row>public TypeInformation<?>[] getFieldTypes()
public boolean schemaEquals(Object obj)
public static RowTypeInfo projectFields(RowTypeInfo rowType, int[] fieldMapping)
RowTypeInfo with projected fields.rowType - The original RowTypeInfo whose fields are projectedfieldMapping - The field mapping of the projectionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.