public static < T > TypeInformation < T > of ( Class < T > typeClass ) { try { return TypeExtractor . createTypeInfo ( typeClass ) ; } catch ( InvalidTypesException e ) { throw new FlinkRuntimeException ( "Cannot extract TypeInformation from Class alone, because generic parameters are missing. " + "Please use TypeInformation.of(TypeHint) instead, or another equivalent method in the API that " + "accepts a TypeHint instead of a Class. " + "For example for a Tuple2<Long, String> pass a 'new TypeHint<Tuple2<Long, String>>(){}'." ) ; } }
Creates a TypeInformation for the type described by the given class .