Class ConfluentSchemaRegistryTableDescriptionSupplier
- java.lang.Object
-
- io.trino.plugin.kafka.schema.confluent.ConfluentSchemaRegistryTableDescriptionSupplier
-
- All Implemented Interfaces:
TableDescriptionSupplier
public class ConfluentSchemaRegistryTableDescriptionSupplier extends Object implements TableDescriptionSupplier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfluentSchemaRegistryTableDescriptionSupplier.Factory
-
Constructor Summary
Constructors Constructor Description ConfluentSchemaRegistryTableDescriptionSupplier(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient schemaRegistryClient, Map<String,SchemaParser> schemaParsers, String defaultSchema, io.airlift.units.Duration subjectsCacheRefreshInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<KafkaTopicDescription>getTopicDescription(ConnectorSession session, SchemaTableName schemaTableName)Set<SchemaTableName>listTables()
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfluentSchemaRegistryTableDescriptionSupplier
public ConfluentSchemaRegistryTableDescriptionSupplier(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient schemaRegistryClient, Map<String,SchemaParser> schemaParsers, String defaultSchema, io.airlift.units.Duration subjectsCacheRefreshInterval)
-
-
Method Detail
-
getTopicDescription
public Optional<KafkaTopicDescription> getTopicDescription(ConnectorSession session, SchemaTableName schemaTableName)
- Specified by:
getTopicDescriptionin interfaceTableDescriptionSupplier
-
listTables
public Set<SchemaTableName> listTables()
- Specified by:
listTablesin interfaceTableDescriptionSupplier
-
-