本文整理了Java中com.facebook.presto.metadata.Metadata.getTablePropertyManager()
方法的一些代码示例,展示了Metadata.getTablePropertyManager()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Metadata.getTablePropertyManager()
方法的具体详情如下:
包路径:com.facebook.presto.metadata.Metadata
类名称:Metadata
方法名:getTablePropertyManager
暂无
代码示例来源:origin: prestodb/presto
@Inject
public TablePropertiesSystemTable(TransactionManager transactionManager, Metadata metadata)
{
super("table_properties", transactionManager, () -> metadata.getTablePropertyManager().getAllProperties());
}
}
代码示例来源:origin: prestodb/presto
private ConnectorTableMetadata createTableMetadata(QualifiedObjectName table, List<ColumnMetadata> columns, Map<String, Expression> propertyExpressions, List<Expression> parameters, Optional<String> comment)
{
ConnectorId connectorId = metadata.getCatalogHandle(session, table.getCatalogName())
.orElseThrow(() -> new PrestoException(NOT_FOUND, "Catalog does not exist: " + table.getCatalogName()));
Map<String, Object> properties = metadata.getTablePropertyManager().getProperties(
connectorId,
table.getCatalogName(),
propertyExpressions,
session,
metadata,
parameters);
return new ConnectorTableMetadata(table.asSchemaTableName(), columns, properties, comment);
}
代码示例来源:origin: prestodb/presto
Map<String, PropertyMetadata<?>> allTableProperties = metadata.getTablePropertyManager().getAllProperties().get(tableHandle.get().getConnectorId());
List<Property> propertyNodes = buildProperties(objectName, Optional.empty(), INVALID_TABLE_PROPERTY, properties, allTableProperties);
代码示例来源:origin: prestodb/presto
Map<String, Object> properties = metadata.getTablePropertyManager().getProperties(
connectorId,
tableName.getCatalogName(),
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
@Override
public RecordCursor cursor(ConnectorTransactionHandle transactionHandle, ConnectorSession session, TupleDomain<Integer> constraint)
{
Builder table = InMemoryRecordSet.builder(TABLE_PROPERTIES_TABLE);
Map<String, Map<String, PropertyMetadata<?>>> tableProperties = new TreeMap<>(metadata.getTablePropertyManager().getAllTableProperties());
for (Entry<String, Map<String, PropertyMetadata<?>>> entry : tableProperties.entrySet()) {
String catalog = entry.getKey();
Map<String, PropertyMetadata<?>> properties = new TreeMap<>(entry.getValue());
for (PropertyMetadata<?> propertyMetadata : properties.values()) {
table.addRow(
catalog,
propertyMetadata.getName(),
firstNonNull(propertyMetadata.getDefaultValue(), "").toString(),
propertyMetadata.getSqlType().toString(),
propertyMetadata.getDescription());
}
}
return table.build().cursor();
}
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
private TableMetadata createTableMetadata(QualifiedObjectName table, List<ColumnMetadata> columns, Map<String, Expression> propertyExpressions, boolean sampled)
{
String owner = session.getUser();
Map<String, Object> properties = metadata.getTablePropertyManager().getTableProperties(
table.getCatalogName(),
propertyExpressions,
session,
metadata);
ConnectorTableMetadata metadata = new ConnectorTableMetadata(table.asSchemaTableName(), columns, properties, owner, sampled);
// TODO: first argument should actually be connectorId
return new TableMetadata(table.getCatalogName(), metadata);
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
Map<String, Object> properties = metadata.getTablePropertyManager().getTableProperties(
tableName.getCatalogName(),
statement.getProperties(),
内容来源于网络,如有侵权,请联系作者删除!