flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] wuchong commented on a change in pull request #8276: [FLINK-12314] [docs-zh] Translate the "Type Serialization" page into …
Date Sun, 05 May 2019 09:34:06 GMT
wuchong commented on a change in pull request #8276: [FLINK-12314] [docs-zh] Translate the
"Type Serialization" page into …
URL: https://github.com/apache/flink/pull/8276#discussion_r281012929
 
 

 ##########
 File path: docs/dev/types_serialization.zh.md
 ##########
 @@ -357,11 +328,11 @@ public class MyTupleTypeInfoFactory extends TypeInfoFactory<MyTuple>
{
 }
 {% endhighlight %}
 
-The method `createTypeInfo(Type, Map<String, TypeInformation<?>>)` creates type
information for the type the factory is targeted for. 
-The parameters provide additional information about the type itself as well as the type's
generic type parameters if available.
+方法 `createTypeInfo(Type, Map<String, TypeInformation<?>>)` 为工厂所对应的类型创建类型信息。
+参数提供有关类型本身的额外信息以及类型的泛型类型参数。
 
-If your type contains generic parameters that might need to be derived from the input type
of a Flink function, make sure to also 
-implement `org.apache.flink.api.common.typeinfo.TypeInformation#getGenericParameters` for
a bidirectional mapping of generic 
-parameters to type information.
+如果你的类型包含可能需要从 Flink 函数的输入类型派生的泛型参数,
+请确保还实现了 `org.apache.flink.api.common.typeinfo.TypeInformation#getGenericParameters`,
 
 Review comment:
   ```suggestion
   请确保还实现了 `org.apache.flink.api.common.typeinfo.TypeInformation#getGenericParameters`,
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message