22
22
import com .netflix .metacat .common .server .connectors .model .PartitionListRequest ;
23
23
import com .netflix .metacat .common .server .connectors .model .PartitionsSaveRequest ;
24
24
import com .netflix .metacat .common .server .connectors .model .PartitionsSaveResponse ;
25
+ import com .netflix .metacat .common .server .connectors .model .TableInfo ;
25
26
26
27
import java .util .List ;
27
28
import java .util .Map ;
@@ -39,14 +40,15 @@ public interface ConnectorPartitionService extends ConnectorBaseService<Partitio
39
40
* @param context The Metacat request context
40
41
* @param table table handle to get partition for
41
42
* @param partitionsRequest The metadata for what kind of partitions to get from the table
43
+ * @param tableInfo Table info object
42
44
* @return filtered list of partitions
43
45
* @throws UnsupportedOperationException If the connector doesn't implement this method
44
46
*/
45
47
default List <PartitionInfo > getPartitions (
46
48
final ConnectorRequestContext context ,
47
49
final QualifiedName table ,
48
- final PartitionListRequest partitionsRequest
49
- ) {
50
+ final PartitionListRequest partitionsRequest ,
51
+ final TableInfo tableInfo ) {
50
52
throw new UnsupportedOperationException (ConnectorBaseService .UNSUPPORTED_MESSAGE );
51
53
}
52
54
@@ -73,12 +75,14 @@ default PartitionsSaveResponse savePartitions(
73
75
* @param context The Metacat request context
74
76
* @param tableName table name
75
77
* @param partitionNames list of partition names
78
+ * @param tableInfo table info object
76
79
* @throws UnsupportedOperationException If the connector doesn't implement this method
77
80
*/
78
81
default void deletePartitions (
79
82
final ConnectorRequestContext context ,
80
83
final QualifiedName tableName ,
81
- final List <String > partitionNames
84
+ final List <String > partitionNames ,
85
+ final TableInfo tableInfo
82
86
) {
83
87
throw new UnsupportedOperationException (ConnectorBaseService .UNSUPPORTED_MESSAGE );
84
88
}
@@ -88,12 +92,14 @@ default void deletePartitions(
88
92
*
89
93
* @param context The Metacat request context
90
94
* @param table table handle
95
+ * @param tableInfo table info object
91
96
* @return Number of partitions
92
97
* @throws UnsupportedOperationException If the connector doesn't implement this method
93
98
*/
94
99
default int getPartitionCount (
95
100
final ConnectorRequestContext context ,
96
- final QualifiedName table
101
+ final QualifiedName table ,
102
+ final TableInfo tableInfo
97
103
) {
98
104
throw new UnsupportedOperationException (ConnectorBaseService .UNSUPPORTED_MESSAGE );
99
105
}
@@ -121,14 +127,15 @@ default Map<String, List<QualifiedName>> getPartitionNames(
121
127
* @param context The Metacat request context
122
128
* @param table table handle to get partition for
123
129
* @param partitionsRequest The metadata for what kind of partitions to get from the table
130
+ * @param tableInfo table info object
124
131
* @return filtered list of partition names
125
132
* @throws UnsupportedOperationException If the connector doesn't implement this method
126
133
*/
127
134
default List <String > getPartitionKeys (
128
135
final ConnectorRequestContext context ,
129
136
final QualifiedName table ,
130
- final PartitionListRequest partitionsRequest
131
- ) {
137
+ final PartitionListRequest partitionsRequest ,
138
+ final TableInfo tableInfo ) {
132
139
throw new UnsupportedOperationException (ConnectorBaseService .UNSUPPORTED_MESSAGE );
133
140
}
134
141
@@ -138,13 +145,15 @@ default List<String> getPartitionKeys(
138
145
* @param context The Metacat request context
139
146
* @param table table handle to get partition for
140
147
* @param partitionsRequest The metadata for what kind of partitions to get from the table
148
+ * @param tableInfo table info object
141
149
* @return filtered list of partition uris
142
150
* @throws UnsupportedOperationException If the connector doesn't implement this method
143
151
*/
144
152
default List <String > getPartitionUris (
145
153
final ConnectorRequestContext context ,
146
154
final QualifiedName table ,
147
- final PartitionListRequest partitionsRequest
155
+ final PartitionListRequest partitionsRequest ,
156
+ final TableInfo tableInfo
148
157
) {
149
158
throw new UnsupportedOperationException (ConnectorBaseService .UNSUPPORTED_MESSAGE );
150
159
}
0 commit comments