- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.pinot.common.metadata.ZKMetadataProvider.getTableSchema()
方法的一些代码示例,展示了ZKMetadataProvider.getTableSchema()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKMetadataProvider.getTableSchema()
方法的具体详情如下:
包路径:org.apache.pinot.common.metadata.ZKMetadataProvider
类名称:ZKMetadataProvider
方法名:getTableSchema
[英]Get the schema associated with the given table name.
[中]获取与给定表名关联的架构。
代码示例来源:origin: apache/incubator-pinot
@Nullable
public Schema getTableSchema(@Nonnull String tableName) {
return ZKMetadataProvider.getTableSchema(_propertyStore, tableName);
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void addSegment(@Nonnull File indexDir, @Nonnull IndexLoadingConfig indexLoadingConfig)
throws Exception {
Schema schema = ZKMetadataProvider.getTableSchema(_propertyStore, _tableNameWithType);
addSegment(ImmutableSegmentLoader.load(indexDir, indexLoadingConfig, schema));
}
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void reloadSegment(@Nonnull String tableNameWithType, @Nonnull String segmentName)
throws Exception {
LOGGER.info("Reloading single segment: {} in table: {}", segmentName, tableNameWithType);
SegmentMetadata segmentMetadata = getSegmentMetadata(tableNameWithType, segmentName);
if (segmentMetadata == null) {
return;
}
TableConfig tableConfig = ZKMetadataProvider.getTableConfig(_propertyStore, tableNameWithType);
Preconditions.checkNotNull(tableConfig);
Schema schema = null;
// For OFFLINE table, try to get schema for default columns
if (TableNameBuilder.OFFLINE.tableHasTypeSuffix(tableNameWithType)) {
schema = ZKMetadataProvider.getTableSchema(_propertyStore, tableNameWithType);
}
reloadSegment(tableNameWithType, segmentMetadata, tableConfig, schema);
LOGGER.info("Reloaded single segment: {} in table: {}", segmentName, tableNameWithType);
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void reloadAllSegments(@Nonnull String tableNameWithType)
throws Exception {
LOGGER.info("Reloading all segments in table: {}", tableNameWithType);
TableConfig tableConfig = ZKMetadataProvider.getTableConfig(_propertyStore, tableNameWithType);
Preconditions.checkNotNull(tableConfig);
Schema schema = null;
// For OFFLINE table, try to get schema for default columns
if (TableNameBuilder.OFFLINE.tableHasTypeSuffix(tableNameWithType)) {
schema = ZKMetadataProvider.getTableSchema(_propertyStore, tableNameWithType);
}
for (SegmentMetadata segmentMetadata : getAllSegmentsMetadata(tableNameWithType)) {
reloadSegment(tableNameWithType, segmentMetadata, tableConfig, schema);
}
LOGGER.info("Reloaded all segments in table: {}", tableNameWithType);
}
代码示例来源:origin: apache/incubator-pinot
.getTableSchema(_propertyStore, TableNameBuilder.REALTIME.tableNameWithType(_tableNameWithType));
Preconditions.checkNotNull(schema);
if (!isValid(schema, tableConfig.getIndexingConfig())) {
代码示例来源:origin: apache/incubator-pinot
Schema tableSchema = ZKMetadataProvider.getTableSchema(_propertyStore, tableNameWithType);
if (tableSchema == null) {
LOGGER.info("Table: {}, skip adding inverted index because it does not have a schema", tableNameWithType);
所以,我有以下内容:"SELECT * FROM MyTable;" 当我执行以下操作时,我得到了 TableData,这很有用,但仍然有一些未知的东西? //CommandBehavior.KeyI
本文整理了Java中org.apache.pinot.common.metadata.ZKMetadataProvider.getTableSchema()方法的一些代码示例,展示了ZKMetadat
我是一名优秀的程序员,十分优秀!