|
34 | 34 | */ |
35 | 35 | public interface AlterHandler extends Configurable { |
36 | 36 |
|
37 | | - /** |
38 | | - * @deprecated As of release 2.2.0. Replaced by {@link #alterTable(RawStore, Warehouse, String, |
39 | | - * String, String, Table, EnvironmentContext, IHMSHandler, String)} |
40 | | - * |
41 | | - * handles alter table, the changes could be cascaded to partitions if applicable |
42 | | - * |
43 | | - * @param msdb |
44 | | - * object to get metadata |
45 | | - * @param wh |
46 | | - * Hive Warehouse where table data is stored |
47 | | - * @param catName |
48 | | - * catalog of the table being altered |
49 | | - * @param dbname |
50 | | - * database of the table being altered |
51 | | - * @param name |
52 | | - * original name of the table being altered. same as |
53 | | - * <i>newTable.tableName</i> if alter op is not a rename. |
54 | | - * @param newTable |
55 | | - * new table object |
56 | | - * @param envContext |
57 | | - * environment context variable |
58 | | - * @throws InvalidOperationException |
59 | | - * thrown if the newTable object is invalid |
60 | | - * @throws MetaException |
61 | | - * thrown if there is any other error |
62 | | - */ |
63 | | - @Deprecated |
64 | | - default void alterTable(RawStore msdb, Warehouse wh, String catName, String dbname, |
65 | | - String name, Table newTable, EnvironmentContext envContext) |
66 | | - throws InvalidOperationException, MetaException { |
67 | | - alterTable(msdb, wh, catName, dbname, name, newTable, envContext, null, null); |
68 | | - } |
69 | | - |
70 | 37 | /** |
71 | 38 | * handles alter table, the changes could be cascaded to partitions if applicable |
72 | 39 | * |
@@ -96,37 +63,6 @@ void alterTable(RawStore msdb, Warehouse wh, String catName, String dbname, |
96 | 63 | IHMSHandler handler, String writeIdList) |
97 | 64 | throws InvalidOperationException, MetaException; |
98 | 65 |
|
99 | | - /** |
100 | | - * @deprecated As of release 2.2.0. Replaced by {@link #alterPartitions(RawStore, Warehouse, String, |
101 | | - * String, String, List, EnvironmentContext, String, long, IHMSHandler)} |
102 | | - * |
103 | | - * handles alter partition |
104 | | - * |
105 | | - * @param msdb |
106 | | - * object to get metadata |
107 | | - * @param wh |
108 | | - * physical warehouse class |
109 | | - * @param dbname |
110 | | - * database of the partition being altered |
111 | | - * @param name |
112 | | - * table of the partition being altered |
113 | | - * @param part_vals |
114 | | - * original values of the partition being altered |
115 | | - * @param new_part |
116 | | - * new partition object |
117 | | - * @return the altered partition |
118 | | - * @throws InvalidOperationException thrown if the operation is invalid |
119 | | - * @throws InvalidObjectException thrown if the new_part object is invalid |
120 | | - * @throws AlreadyExistsException thrown if the new_part object already exists |
121 | | - * @throws MetaException thrown if there is any other error |
122 | | - * @throws NoSuchObjectException thrown if there is no such object |
123 | | - */ |
124 | | - @Deprecated |
125 | | - Partition alterPartition(final RawStore msdb, Warehouse wh, final String dbname, |
126 | | - final String name, final List<String> part_vals, final Partition new_part, |
127 | | - EnvironmentContext environmentContext) |
128 | | - throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException, NoSuchObjectException; |
129 | | - |
130 | 66 | /** |
131 | 67 | * handles alter partition |
132 | 68 | * |
@@ -159,34 +95,6 @@ Partition alterPartition(final RawStore msdb, Warehouse wh, final String catName |
159 | 95 | IHMSHandler handler, String validWriteIds) |
160 | 96 | throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException, NoSuchObjectException; |
161 | 97 |
|
162 | | - /** |
163 | | - * @deprecated As of release 3.0.0. Replaced by {@link #alterPartitions(RawStore, Warehouse, String, |
164 | | - * String, String, List, EnvironmentContext, String, long, IHMSHandler)} |
165 | | - * |
166 | | - * handles alter partitions |
167 | | - * |
168 | | - * @param msdb |
169 | | - * object to get metadata |
170 | | - * @param wh physical warehouse class |
171 | | - * @param dbname |
172 | | - * database of the partition being altered |
173 | | - * @param name |
174 | | - * table of the partition being altered |
175 | | - * @param new_parts |
176 | | - * new partition list |
177 | | - * @param environmentContext environment context variable |
178 | | - * @return the altered partition list |
179 | | - * @throws InvalidOperationException thrown if the operation is invalid |
180 | | - * @throws InvalidObjectException thrown if the new_parts object is invalid |
181 | | - * @throws AlreadyExistsException thrown if the new_part object already exists |
182 | | - * @throws MetaException thrown if there is any other error |
183 | | - */ |
184 | | - @Deprecated |
185 | | - List<Partition> alterPartitions(final RawStore msdb, Warehouse wh, |
186 | | - final String dbname, final String name, final List<Partition> new_parts, |
187 | | - EnvironmentContext environmentContext) |
188 | | - throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException; |
189 | | - |
190 | 98 | /** |
191 | 99 | * handles alter partitions |
192 | 100 | * @param msdb object to get metadata |
|
0 commit comments