diff --git a/doc/_toc.yml b/doc/_toc.yml index 05f62d7..c1472e2 100644 --- a/doc/_toc.yml +++ b/doc/_toc.yml @@ -10,11 +10,19 @@ subtrees: - file: ch-system-design/exercise-wordcount - file: ch-datastream-api/index entries: - - file: ch-datastream-api/data-types - file: ch-datastream-api/skeleton - file: ch-datastream-api/transformations + - file: ch-datastream-api/data-types - file: ch-datastream-api/user-define-functions - file: ch-datastream-api/exercise-stock-basic + - file: ch-time-window/index + entries: + - file: ch-time-window/time + - file: ch-time-window/process-function + - file: ch-time-window/window + - file: ch-time-window/join + - file: ch-time-window/late-elements + - file: ch-time-window/exercise-stock - file: ch-state-checkpoint/index entries: - file: ch-state-checkpoint/checkpoint @@ -24,18 +32,10 @@ subtrees: - file: ch-table-sql/index entries: - file: ch-table-sql/table-overview - - file: ch-table-sql/catalog-function - file: ch-table-sql/dynamic-table + - file: ch-table-sql/sql-window - file: ch-table-sql/sql-join - file: ch-table-sql/sql-ddl - file: ch-table-sql/system-function - - file: ch-table-sql/sql-window - - file: ch-table-sql/exercise-iot - - file: ch-time-window/index - entries: - - file: ch-time-window/join - - file: ch-time-window/late-elements - - file: ch-time-window/process-function - - file: ch-time-window/time - - file: ch-time-window/window - - file: ch-time-window/exercise-stock \ No newline at end of file + - file: ch-table-sql/catalog-function + - file: ch-table-sql/exercise-iot \ No newline at end of file diff --git a/doc/ch-datastream-api/data-types.md b/doc/ch-datastream-api/data-types.md index b693af3..b79a8a8 100644 --- a/doc/ch-datastream-api/data-types.md +++ b/doc/ch-datastream-api/data-types.md @@ -28,7 +28,7 @@ Flink支持上图所示的几种数据类型:基础类型、数组、复合类 基础类型或其他对象类型组成的数组,如`String[]`。 -### 复合类型 {#composite-types} +### 复合类型 #### Scala case class diff --git a/doc/ch-datastream-api/img/filter.drawio b/doc/ch-datastream-api/img/filter.drawio new file mode 100644 index 0000000..afc7943 --- /dev/null +++ b/doc/ch-datastream-api/img/filter.drawio @@ -0,0 +1 @@ +5Vhbc6IwGP01PHYHiIA8qrV1H7bdHdvpcwoRMhsIDaFqf/0GE+5x6rZand0XJSchl3NOvnzBALNkc8tgFv+gISKGbYYbA1wbtu0DW/yWwFYCztiVQMRwKCGrAZb4DSnQVGiBQ5R3GnJKCcdZFwxomqKAdzDIGF13m60o6Y6awQgNgGUAyRB9wiGPJTq2vQZfIBzF1ciW68uaBFaN1UryGIZ03YLA3AAzRimXT8lmhkjJXcWLfO9mT209MYZSfsgLL/Hb4jpG7Glxv8ATv1hsV+Orah2vkBRqxWq2fFtRwGiRhqjsxTTAdB1jjpYZDMratdBcYDFPiChZ4jHnjP5GM0ooE0hKU9FsOpyqmv0rYhxtWpCa+i2iCeJsK5pURlIsKhv5jiyuG008cyyxuKVH7SOofBDVPTdUiQfF1l8wZ71PHErDSWlBUQoIzHMcdLnaSwsKO6YcktJatmMOV11hDBHI8WvXyjom1Ag/KRYzqTm37C7pttkjM6cFC5B6q229Xkdg9E5HHLII8UFHO2HqZX9cK/sAk8c0eS7y9w1+BC9boEuHVenVkhVoZAUn87KrIcglYtjpiu6EbJhyXwpaVVzlu3g9EQ0sN9s0leIp2v3PPWMyN3zPmDvG5Nood7HsV8xTdq0afiroHEET4PU08Yaa1PuhLYp7MlEOCc1f6No6lF6Ma8cXRpBzYQTZ/8EZ5fRd6fvfnI+dUp575lNKd0wdIwp/vzs06gqn8wPyuRUmpAdBgqO0NJHwCRL4tNw3WOTRE1WR4DAsh9FuxG60P0Y479mi3mQtV440rrRPthfBXnHzDKYfF/f+8aGlruzrX1fXMc+n7jIYB/wxgDG4Y4z8Wt7c8IeDLgOEiDvrPopamsA8kxfZFd6UpE33sKPhcH/G2c9uvvBo0hJ2/Iz8U/w4Z8zItfzoosUZ+XHPmPtp+RldGD9nTP20/OgudJcUkOoPOKcnTBSbj2wyV2u+VIL5Hw== \ No newline at end of file diff --git a/doc/ch-datastream-api/img/flatMap.drawio b/doc/ch-datastream-api/img/flatMap.drawio new file mode 100644 index 0000000..a20b9c7 --- /dev/null +++ b/do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AyFB0yCdsev8dEjhp0GSr/UfwMv7rvrfCMD8Dw== \ No newline at end of file diff --git a/doc/ch-datastream-api/img/type-inference-process.drawio b/doc/ch-datastream-api/img/type-inference-process.drawio new file mode 100644 index 0000000..18a0bf1 --- /dev/null +++ b/doc/ch-datastream-api/img/type-inference-process.drawio @@ -0,0 +1 @@ +5VhNc5swEP01OiYDCDAcjU3SdNpMUmcmdS8ZamSsFiNXyLHdX98ViPAhkjqtk7jTi0da7S6rt6unlREeLbfnPFotPrKYpMgy4i3CY2RZPrbgVwp2pcDxlCDhNC5FZi2Y0J9ECQ0lXdOY5C1FwVgq6KotnLEsIzPRkkWcs01bbc7S9ldXUUI0wWQWpbr0lsZiUUo9a1DL3xGaLKovm65friyjSlntJF9EMds0RDhEeMQZE+VouR2RVGJX4VLanT2y+hAYJ5nYx8BIPoZfvoVTe3p3RZP7xfSa0RO1jfsoXasNq2DFrkKAs3UWE+nEQDjYLKggk1U0k6sbSDnIFmKZwsyEYS44+05GLGUcJBnLQC3QI1XB3xMuyLYhUpGfE7Ykgu9Apaoju7TYVdWhQN3UOXFtFfuikQ/bU4qRqoPkwXUNFQwUWs9AztSRCwcI4hx6KHSR56FggEIHDUPkD1Foo8BHnl/oDJFnSx3fQYFRKI+lGiwFJgoCaeWHyAPcIHg3ha0EXzmMEjkqXBWr0jnYyigmgtMseSJ15u9TN2eZUOfPdA+TNatCv0qbrafNGhh62tyXypqlZe1mtyIX2ZxxOLCUZftjLg3z08nNp4vL86NH3nLeGnnci/yEcBqlsHf+3GJvWh45+Nh9a/DtHrJykAeAOgWyY+R7Be3AYHD0eNqDV8Tzbuq9v8Q3xu1y/mE0x3dsc3LdR/5d0EgWD2X/AbNZGuU5nbVxIlsqPstL9dRRs2ljZbxV920x2VWTDIJvGMnptLlWmxWzyq4MjsRaq6MlJWdrPiO/v/ZExBMintCz+jPayJjTk7BKxkkKbHzfDrcvi+oLV4zCRh4KxjY6947VKYRym8qq2TN1HTltR4OOnxIGzU9RUw+7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