Class TypeHint<T>

  • Type Parameters:
    T - The type information to hint.

    @Public
    public abstract class TypeHint<T>
    extends Object
    A utility class for describing generic types. It can be used to obtain a type information via:
    
     TypeInformation<Tuple2<String, Long>> info = TypeInformation.of(new TypeHint<Tuple2<String, Long>>(){});
     

    or

    
     TypeInformation<Tuple2<String, Long>> info = new TypeHint<Tuple2<String, Long>>(){}.getTypeInfo();
     
    • Constructor Detail

      • TypeHint

        public TypeHint()
        Creates a hint for the generic type in the class signature.
    • Method Detail

      • getTypeInfo

        public TypeInformation<T> getTypeInfo()
        Gets the type information described by this TypeHint.
        Returns:
        The type information described by this TypeHint.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object