|
30 | 30 | import io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient; |
31 | 31 | import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient; |
32 | 32 | import io.confluent.kafka.schemaregistry.client.rest.entities.Schema; |
33 | | -import io.confluent.kafka.schemaregistry.client.rest.entities.SchemaReference; |
34 | 33 | import io.confluent.kafka.schemaregistry.protobuf.ProtobufSchemaProvider; |
35 | 34 | import io.trino.decoder.DispatchingRowDecoderFactory; |
36 | 35 | import io.trino.decoder.RowDecoderFactory; |
|
60 | 59 |
|
61 | 60 | import java.util.List; |
62 | 61 | import java.util.Map; |
63 | | -import java.util.Optional; |
64 | 62 | import java.util.Set; |
65 | 63 | import java.util.concurrent.atomic.AtomicReference; |
66 | 64 | import java.util.function.Supplier; |
@@ -192,43 +190,13 @@ public String schemaType() |
192 | 190 | return "PROTOBUF"; |
193 | 191 | } |
194 | 192 |
|
195 | | - @Override |
196 | | - public Optional<ParsedSchema> parseSchema(Schema schema, boolean isNew) |
197 | | - { |
198 | | - return SchemaProvider.super.parseSchema(schema, isNew); |
199 | | - } |
200 | | - |
201 | | - @Override |
202 | | - public Optional<ParsedSchema> parseSchema(Schema schema, boolean isNew, boolean normalize) |
203 | | - { |
204 | | - return SchemaProvider.super.parseSchema(schema, isNew, normalize); |
205 | | - } |
206 | | - |
207 | 193 | @Override |
208 | 194 | public void configure(Map<String, ?> configuration) |
209 | 195 | { |
210 | 196 | Map<String, ?> oldConfiguration = this.configuration.getAndSet(ImmutableMap.copyOf(configuration)); |
211 | 197 | checkState(oldConfiguration == null, "ProtobufSchemaProvider is already configured"); |
212 | 198 | } |
213 | 199 |
|
214 | | - @Override |
215 | | - public Optional<ParsedSchema> parseSchema(String schema, List<SchemaReference> references, boolean isNew) |
216 | | - { |
217 | | - return delegate.get().parseSchema(schema, references, isNew); |
218 | | - } |
219 | | - |
220 | | - @Override |
221 | | - public Optional<ParsedSchema> parseSchema(String schemaString, List<SchemaReference> references, boolean isNew, boolean normalize) |
222 | | - { |
223 | | - return SchemaProvider.super.parseSchema(schemaString, references, isNew, normalize); |
224 | | - } |
225 | | - |
226 | | - @Override |
227 | | - public Optional<ParsedSchema> parseSchema(String schemaString, List<SchemaReference> references) |
228 | | - { |
229 | | - return SchemaProvider.super.parseSchema(schemaString, references); |
230 | | - } |
231 | | - |
232 | 200 | @Override |
233 | 201 | public ParsedSchema parseSchemaOrElseThrow(Schema schema, boolean isNew, boolean normalize) |
234 | 202 | { |
|
0 commit comments