Class TupleTypeInfoBase<T>

    • Constructor Detail

    • Method Detail

      • isBasicType

        public boolean isBasicType()
        Description copied from class: TypeInformation
        Checks if this type information represents a basic type. Basic types are defined in BasicTypeInfo and are primitives, their boxing types, Strings, Date, Void, ...
        Specified by:
        isBasicType in class TypeInformation<T>
        Returns:
        True, if this type information describes a basic type, false otherwise.
      • isTupleType

        public boolean isTupleType()
        Description copied from class: TypeInformation
        Checks if this type information represents a Tuple type. Tuple types are subclasses of the Java API tuples.
        Specified by:
        isTupleType in class TypeInformation<T>
        Returns:
        True, if this type information describes a tuple type, false otherwise.
      • isCaseClass

        public boolean isCaseClass()
      • getArity

        public int getArity()
        Description copied from class: TypeInformation
        Gets the arity of this type - the number of fields without nesting.
        Specified by:
        getArity in class TypeInformation<T>
        Returns:
        Gets the number of fields in this type without nesting.
      • getFieldTypes

        public TypeInformation<?>[] getFieldTypes()
        Returns the field types.
      • getTotalFields

        public int getTotalFields()
        Description copied from class: TypeInformation
        Gets the number of logical fields in this type. This includes its nested and transitively nested fields, in the case of composite types. In the example above, the OuterType type has three fields in total.

        The total number of fields must be at least 1.

        Specified by:
        getTotalFields in class TypeInformation<T>
        Returns:
        The number of fields in this type, including its sub-fields (for composite types)
      • getFlatFields

        public void getFlatFields​(String fieldExpression,
                                  int offset,
                                  List<CompositeType.FlatFieldDescriptor> result)
        Description copied from class: CompositeType
        Computes the flat field descriptors for the given field expression with the given offset.
        Specified by:
        getFlatFields in class CompositeType<T>
        Parameters:
        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.
      • getTypeAt

        public <X> TypeInformation<X> getTypeAt​(String fieldExpression)
        Description copied from class: CompositeType
        Returns the type of the (nested) field at the given field expression position. Wildcards are not allowed.
        Specified by:
        getTypeAt in class CompositeType<T>
        Parameters:
        fieldExpression - The field expression for which the field of which the type is returned.
        Returns:
        The type of the field at the given field expression.
      • getTypeAt

        public <X> TypeInformation<X> getTypeAt​(int pos)
        Description copied from class: CompositeType
        Returns the type of the (unnested) field at the given field position.
        Specified by:
        getTypeAt in class CompositeType<T>
        Parameters:
        pos - The position of the (unnested) field in this composite type.
        Returns:
        The type of the field at the given position.
      • canEqual

        public boolean canEqual​(Object obj)
        Description copied from class: TypeInformation
        Returns true if the given object can be equaled with this object. If not, it returns false.
        Overrides:
        canEqual in class CompositeType<T>
        Parameters:
        obj - Object which wants to take part in the equality relation
        Returns:
        true if obj can be equaled with this, otherwise false
      • hasDeterministicFieldOrder

        public boolean hasDeterministicFieldOrder()
        Description copied from class: CompositeType
        True if this type has an inherent ordering of the fields, such that a user can always be sure in which order the fields will be in. This is true for Tuples and Case Classes. It is not true for Regular Java Objects, since there, the ordering of the fields can be arbitrary.

        This is used when translating a DataSet or DataStream to an Expression Table, when initially renaming the fields of the underlying type.

        Overrides:
        hasDeterministicFieldOrder in class CompositeType<T>