|
40 | 40 | import org.apache.kafka.server.config.ServerLogConfigs;
|
41 | 41 | import org.apache.kafka.server.config.ServerTopicConfigSynonyms;
|
42 | 42 | import org.apache.kafka.server.record.BrokerCompressionType;
|
43 |
| -import org.apache.kafka.server.record.TableTopicType; |
| 43 | +import org.apache.kafka.server.record.TableTopicSchemaType; |
44 | 44 |
|
45 | 45 | import java.util.Collections;
|
46 | 46 | import java.util.HashMap;
|
@@ -337,7 +337,7 @@ public Optional<String> serverConfigName(String configName) {
|
337 | 337 | .define(TopicConfig.TABLE_TOPIC_ENABLE_CONFIG, BOOLEAN, false, null, MEDIUM, TopicConfig.TABLE_TOPIC_ENABLE_DOC)
|
338 | 338 | .define(TopicConfig.TABLE_TOPIC_COMMIT_INTERVAL_CONFIG, LONG, TimeUnit.MINUTES.toMillis(5), between(1, TimeUnit.MINUTES.toMillis(15)), MEDIUM, TopicConfig.TABLE_TOPIC_COMMIT_INTERVAL_DOC)
|
339 | 339 | .define(TopicConfig.TABLE_TOPIC_NAMESPACE_CONFIG, STRING, null, null, MEDIUM, TopicConfig.TABLE_TOPIC_NAMESPACE_DOC)
|
340 |
| - .define(TopicConfig.TABLE_TOPIC_TYPE_CONFIG, STRING, null, in(TableTopicType.names().toArray(new String[0])), MEDIUM, TopicConfig.TABLE_TOPIC_TYPE_DOC) |
| 340 | + .define(TopicConfig.TABLE_TOPIC_SCHEMA_TYPE_CONFIG, STRING, TableTopicSchemaType.SCHEMALESS.name, in(TableTopicSchemaType.names().toArray(new String[0])), MEDIUM, TopicConfig.TABLE_TOPIC_SCHEMA_TYPE_DOC) |
341 | 341 | // AutoMQ inject end
|
342 | 342 | .define(TopicConfig.REMOTE_LOG_DISABLE_POLICY_CONFIG, STRING, TopicConfig.REMOTE_LOG_DISABLE_POLICY_RETAIN,
|
343 | 343 | in(TopicConfig.REMOTE_LOG_DISABLE_POLICY_RETAIN, TopicConfig.REMOTE_LOG_DISABLE_POLICY_DELETE),
|
@@ -392,7 +392,7 @@ public Optional<String> serverConfigName(String configName) {
|
392 | 392 | public final boolean tableTopicEnable;
|
393 | 393 | public final long tableTopicCommitInterval;
|
394 | 394 | public final String tableTopicNamespace;
|
395 |
| - public final TableTopicType tableTopicType; |
| 395 | + public final TableTopicSchemaType tableTopicSchemaType; |
396 | 396 | // AutoMQ inject end
|
397 | 397 |
|
398 | 398 | private final int maxMessageSize;
|
@@ -449,7 +449,7 @@ public LogConfig(Map<?, ?> props, Set<String> overriddenConfigs) {
|
449 | 449 | this.tableTopicEnable = getBoolean(TopicConfig.TABLE_TOPIC_ENABLE_CONFIG);
|
450 | 450 | this.tableTopicCommitInterval = getLong(TopicConfig.TABLE_TOPIC_COMMIT_INTERVAL_CONFIG);
|
451 | 451 | this.tableTopicNamespace = getString(TopicConfig.TABLE_TOPIC_NAMESPACE_CONFIG);
|
452 |
| - this.tableTopicType = TableTopicType.forName(getString(TopicConfig.TABLE_TOPIC_TYPE_CONFIG)); |
| 452 | + this.tableTopicSchemaType = TableTopicSchemaType.forName(getString(TopicConfig.TABLE_TOPIC_SCHEMA_TYPE_CONFIG)); |
453 | 453 | // AutoMQ inject end
|
454 | 454 |
|
455 | 455 | remoteLogConfig = new RemoteLogConfig(this);
|
|
0 commit comments