Class EitherTypeInfo<L,​R>

    • Method Detail

      • isBasicType

        @PublicEvolving
        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<Either<L,​R>>
        Returns:
        True, if this type information describes a basic type, false otherwise.
      • isTupleType

        @PublicEvolving
        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<Either<L,​R>>
        Returns:
        True, if this type information describes a tuple type, false otherwise.
      • getTotalFields

        @PublicEvolving
        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<Either<L,​R>>
        Returns:
        The number of fields in this type, including its sub-fields (for composite types)
      • getGenericParameters

        @PublicEvolving
        public Map<String,​TypeInformation<?>> getGenericParameters()
        Description copied from class: TypeInformation
        Optional method for giving Flink's type extraction system information about the mapping of a generic type parameter to the type information of a subtype. This information is necessary in cases where type information should be deduced from an input type.

        For instance, a method for a Tuple2 would look like this: Map m = new HashMap(); m.put("T0", this.getTypeAt(0)); m.put("T1", this.getTypeAt(1)); return m;

        Overrides:
        getGenericParameters in class TypeInformation<Either<L,​R>>
        Returns:
        map of inferred subtypes; it does not have to contain all generic parameters as key; values may be null if type could not be inferred
      • isKeyType

        @PublicEvolving
        public boolean isKeyType()
        Description copied from class: TypeInformation
        Checks whether this type can be used as a key. As a bare minimum, types have to be hashable and comparable to be keys.
        Specified by:
        isKeyType in class TypeInformation<Either<L,​R>>
        Returns:
        True, if the type can be used as a key, false otherwise.
      • 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.
        Specified by:
        canEqual in class TypeInformation<Either<L,​R>>
        Parameters:
        obj - Object which wants to take part in the equality relation
        Returns:
        true if obj can be equaled with this, otherwise false