@@ -1026,20 +1026,90 @@ void createTemporarySystemFunction(
1026
1026
* <p>If a permanent table with a given path exists, it will be used from now on for any queries
1027
1027
* that reference this path.
1028
1028
*
1029
+ * @param path The given path under which the temporary table will be dropped. See also the
1030
+ * {@link TableEnvironment} class description for the format of the path.
1029
1031
* @return true if a table existed in the given path and was removed
1030
1032
*/
1031
1033
boolean dropTemporaryTable (String path );
1032
1034
1035
+ /**
1036
+ * Drops a table registered in the given path.
1037
+ *
1038
+ * <p>This method can only drop permanent objects. Temporary objects can shadow permanent ones.
1039
+ * If a temporary object exists in a given path, make sure to drop the temporary object first
1040
+ * using {@link #dropTemporaryTable}.
1041
+ *
1042
+ * <p>Compared to SQL, this method will not throw an error if the table does not exist. Use
1043
+ * {@link #dropTable(java.lang.String, boolean)} to change the default behavior.
1044
+ *
1045
+ * @param path The given path under which the table will be dropped. See also the {@link
1046
+ * TableEnvironment} class description for the format of the path.
1047
+ * @return true if table existed in the given path and was dropped, false if table didn't exist
1048
+ * in the given path.
1049
+ */
1050
+ boolean dropTable (String path );
1051
+
1052
+ /**
1053
+ * Drops a table registered in the given path.
1054
+ *
1055
+ * <p>This method can only drop permanent objects. Temporary objects can shadow permanent ones.
1056
+ * If a temporary object exists in a given path, make sure to drop the temporary object first
1057
+ * using {@link #dropTemporaryTable}.
1058
+ *
1059
+ * @param path The given path under which the given table will be dropped. See also the {@link
1060
+ * TableEnvironment} class description for the format of the path.
1061
+ * @param ignoreIfNotExists If false exception will be thrown if the view to drop does not
1062
+ * exist.
1063
+ * @return true if table existed in the given path and was dropped, false if table didn't exist
1064
+ * in the given path.
1065
+ */
1066
+ boolean dropTable (String path , boolean ignoreIfNotExists );
1067
+
1033
1068
/**
1034
1069
* Drops a temporary view registered in the given path.
1035
1070
*
1036
1071
* <p>If a permanent table or view with a given path exists, it will be used from now on for any
1037
1072
* queries that reference this path.
1038
1073
*
1074
+ * @param path The given path under which the temporary view will be dropped. See also the
1075
+ * {@link TableEnvironment} class description for the format of the path.
1039
1076
* @return true if a view existed in the given path and was removed
1040
1077
*/
1041
1078
boolean dropTemporaryView (String path );
1042
1079
1080
+ /**
1081
+ * Drops a view registered in the given path.
1082
+ *
1083
+ * <p>This method can only drop permanent objects. Temporary objects can shadow permanent ones.
1084
+ * If a temporary object exists in a given path, make sure to drop the temporary object first
1085
+ * using {@link #dropTemporaryView}.
1086
+ *
1087
+ * <p>Compared to SQL, this method will not throw an error if the view does not exist. Use
1088
+ * {@link #dropView(java.lang.String, boolean)} to change the default behavior.
1089
+ *
1090
+ * @param path The given path under which the view will be dropped. See also the {@link
1091
+ * TableEnvironment} class description for the format of the path.
1092
+ * @return true if view existed in the given path and was dropped, false if view didn't exist in
1093
+ * the given path.
1094
+ */
1095
+ boolean dropView (String path );
1096
+
1097
+ /**
1098
+ * Drops a view registered in the given path.
1099
+ *
1100
+ * <p>This method can only drop permanent objects. Temporary objects can shadow permanent ones.
1101
+ * If a temporary object exists in a given path, make sure to drop the temporary object first
1102
+ * using {@link #dropTemporaryView}.
1103
+ *
1104
+ * @param path The given path under which the view will be dropped. See also the {@link
1105
+ * TableEnvironment} class description for the format of the path.
1106
+ * @param ignoreIfNotExists If false exception will be thrown if the view to drop does not
1107
+ * exist.
1108
+ * @return true if view existed in the given path and was dropped, false if view didn't exist in
1109
+ * the given path and ignoreIfNotExists was true.
1110
+ */
1111
+ boolean dropView (String path , boolean ignoreIfNotExists );
1112
+
1043
1113
/**
1044
1114
* Returns the AST of the specified statement and the execution plan to compute the result of
1045
1115
* the given statement.
0 commit comments