flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twalthr <...@git.apache.org>
Subject [GitHub] flink pull request #4039: [FLINK-6783] Changed passing index of type argumen...
Date Tue, 06 Jun 2017 15:55:43 GMT
Github user twalthr commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4039#discussion_r120387120
  
    --- Diff: flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java
---
    @@ -354,49 +479,21 @@ private static void registerFactory(Type t, Class<? extends TypeInfoFactory>
fac
     	/**
     	 * Returns the unary operator's return type.
     	 *
    -	 * @param function Function to extract the return type from
    -	 * @param baseClass Base class of the function
    -	 * @param hasIterable True if the first function parameter is an iterable, otherwise
false
    -	 * @param hasCollector True if the function has an additional collector parameter, otherwise
false
    -	 * @param inType Type of the input elements (In case of an iterable, it is the element
type)
    -	 * @param functionName Function name
    -	 * @param allowMissing Can the type information be missing
    -	 * @param <IN> Input type
    -	 * @param <OUT> Output type
    -	 * @return TypeInformation of the return type of the function
    -	 */
    -	@SuppressWarnings("unchecked")
    -	@PublicEvolving
    -	public static <IN, OUT> TypeInformation<OUT> getUnaryOperatorReturnType(
    -		Function function,
    -		Class<?> baseClass,
    -		boolean hasIterable,
    -		boolean hasCollector,
    -		TypeInformation<IN> inType,
    -		String functionName,
    -		boolean allowMissing) {
    -
    -		return getUnaryOperatorReturnType(
    -			function,
    -			baseClass,
    -			hasIterable ? 0 : -1,
    -			hasCollector ? 0 : -1,
    -			inType,
    -			functionName,
    -			allowMissing);
    -	}
    -
    -	/**
    -	 * Returns the unary operator's return type.
    +	 * <p><b>NOTE:</b> lambda type indices allows extraction of Type from
lambdas. To extract input type <b>IN</b>
    --- End diff --
    
    allow


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message