You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/04/21 12:04:37 UTC

[GitHub] [flink] alpinegizmo commented on a change in pull request #11834: [FLINK-17237][docs] Add Intro to DataStream API tutorial

alpinegizmo commented on a change in pull request #11834:
URL: https://github.com/apache/flink/pull/11834#discussion_r412124573



##########
File path: docs/tutorials/datastream_api.md
##########
@@ -0,0 +1,252 @@
+---
+title: Intro to the DataStream API
+nav-id: datastream-api
+nav-pos: 2
+nav-title: Intro to the DataStream API
+nav-parent_id: tutorials
+permalink: /tutorials/datastream_api.html
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+The focus of this tutorial is to broadly cover the DataStream API well enough that you will be
+able to get started writing streaming applications. 
+
+* This will be replaced by the TOC
+{:toc}
+
+## What can be Streamed?
+
+Flink's DataStream APIs for Java and Scala will let you stream anything they can serialize. Flink's
+own serializer is used for
+
+- basic types, i.e., String, Long, Integer, Boolean, Array
+- composite types: Tuples, POJOs, and Scala case classes
+
+and Flink falls back to Kryo for other types. It's also possible to use other serializers with
+Flink. Avro, in particular, is well supported.
+
+### Java tuples and POJOs
+
+Flink's native serializer can operate efficiently on tuples and POJOs.
+
+#### Tuples
+
+For Java, Flink defines its own Tuple1 thru Tuple25 types.

Review comment:
       True, but Tuple0 is weird. What's it for?




----------------------------------------------------------------
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