gpt4 book ai didi

org.apache.pinot.common.metadata.ZKMetadataProvider.getTableSchema()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 06:10:49 27 4
gpt4 key购买 nike

本文整理了Java中org.apache.pinot.common.metadata.ZKMetadataProvider.getTableSchema()方法的一些代码示例,展示了ZKMetadataProvider.getTableSchema()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKMetadataProvider.getTableSchema()方法的具体详情如下:
包路径:org.apache.pinot.common.metadata.ZKMetadataProvider
类名称:ZKMetadataProvider
方法名:getTableSchema

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);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com