Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-1623] Rename Expression API to Table API
Package name is now flink-table. ExpressionOperation is renamed to Table. This also adds more JavaDoc and ScalDoc.
- Loading branch information
Showing
87 changed files
with
1,031 additions
and
827 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 0 additions & 112 deletions
112
...ink-expressions/src/main/scala/org/apache/flink/api/java/expressions/ExpressionUtil.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
flink-staging/flink-table/src/main/java/org/apache/flink/api/java/table/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
/** | ||
* <strong>Table API (Java)</strong><br> | ||
* | ||
* {@link org.apache.flink.api.java.table.TableEnvironment} can be used to create a | ||
* {@link org.apache.flink.api.table.Table} from a {@link org.apache.flink.api.java.DataSet} | ||
* or {@link org.apache.flink.streaming.api.datastream.DataStream}. | ||
* | ||
* <p> | ||
* This can be used to perform SQL-like queries on data. Please have | ||
* a look at {@link org.apache.flink.api.table.Table} to see which operations are supported and | ||
* how query strings are written. | ||
* | ||
* <p> | ||
* Example: | ||
* | ||
* <code> | ||
* ExecutionEnvironment env = ExecutionEnvironment.createCollectionsEnvironment(); | ||
* | ||
* DataSet<WC> input = env.fromElements( | ||
* new WC("Hello", 1), | ||
* new WC("Ciao", 1), | ||
* new WC("Hello", 1)); | ||
* | ||
* Table table = TableUtil.from(input); | ||
* | ||
* Table filtered = table | ||
* .groupBy("word") | ||
* .select("word.count as count, word") | ||
* .filter("count = 2"); | ||
* | ||
* DataSet<WC> result = TableUtil.toSet(filtered, WC.class); | ||
* | ||
* result.print(); | ||
* env.execute(); | ||
* </code> | ||
* | ||
* <p> | ||
* As seen above, a {@link org.apache.flink.api.table.Table} can be converted back to the | ||
* underlying API representation using {@link org.apache.flink.api.java.table.TableEnvironment.toSet} | ||
* or {@link org.apache.flink.api.java.table.TableEnvironment.toStream}. | ||
*/ | ||
package org.apache.flink.api.java.table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.