本文整理了Java中org.apache.hadoop.hive.metastore.api.Table.setOwner()
方法的一些代码示例,展示了Table.setOwner()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setOwner()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Table
类名称:Table
方法名:setOwner
暂无
代码示例来源:origin: apache/hive
/**
* @param owner
* @see org.apache.hadoop.hive.metastore.api.Table#setOwner(java.lang.String)
*/
public void setOwner(String owner) {
tTable.setOwner(owner);
}
代码示例来源:origin: apache/hive
newTbl1.setOwner("role1");
newTbl1.setOwnerType(PrincipalType.ROLE);
代码示例来源:origin: apache/drill
/**
* @param owner
* @see org.apache.hadoop.hive.metastore.api.Table#setOwner(java.lang.String)
*/
public void setOwner(String owner) {
tTable.setOwner(owner);
}
代码示例来源:origin: apache/hive
tbl.setOwner(tblOwner);
tbl.setOwnerType(PrincipalType.ROLE);
objectStore.alterTable(DEFAULT_CATALOG_NAME, dbName, tblName, tbl, null);
代码示例来源:origin: prestodb/presto
public static org.apache.hadoop.hive.metastore.api.Table toMetastoreApiTable(Table table, PrincipalPrivileges privileges)
{
org.apache.hadoop.hive.metastore.api.Table result = new org.apache.hadoop.hive.metastore.api.Table();
result.setDbName(table.getDatabaseName());
result.setTableName(table.getTableName());
result.setOwner(table.getOwner());
result.setTableType(table.getTableType());
result.setParameters(table.getParameters());
result.setPartitionKeys(table.getPartitionColumns().stream().map(ThriftMetastoreUtil::toMetastoreApiFieldSchema).collect(toList()));
result.setSd(makeStorageDescriptor(table.getTableName(), table.getDataColumns(), table.getStorage()));
result.setPrivileges(toMetastoreApiPrincipalPrivilegeSet(table.getOwner(), privileges));
result.setViewOriginalText(table.getViewOriginalText().orElse(null));
result.setViewExpandedText(table.getViewExpandedText().orElse(null));
return result;
}
代码示例来源:origin: apache/hive
unsetOwner();
} else {
setOwner((String)value);
代码示例来源:origin: apache/incubator-gobblin
table.setOwner(hiveTable.getOwner().get());
代码示例来源:origin: apache/hive
t.setDbName(databaseName);
t.setTableName(tableName);
t.setOwner(SessionState.getUserFromAuthenticator());
代码示例来源:origin: apache/drill
t.setDbName(databaseName);
t.setTableName(tableName);
t.setOwner(SessionState.getUserFromAuthenticator());
代码示例来源:origin: apache/hive
try {
newTable.setOwner(owner == null? getConf().getUser() : owner);
代码示例来源:origin: apache/hive
table.setTableName(tableName);
table.setDbName(dbName);
table.setOwner("me");
table.setSd(newStorageDescriptor(getLocation(tableName, null), sortCols));
List<FieldSchema> partKeys = new ArrayList<FieldSchema>(1);
代码示例来源:origin: apache/hive
Table build() {
StorageDescriptor sd = new StorageDescriptor();
if (columns == null) {
sd.setCols(Collections.emptyList());
} else {
sd.setCols(columns);
}
SerDeInfo serdeInfo = new SerDeInfo();
serdeInfo.setSerializationLib(serde);
serdeInfo.setName(tableName);
sd.setSerdeInfo(serdeInfo);
sd.setInputFormat(inputFormat);
sd.setOutputFormat(outputFormat);
if (location != null) {
sd.setLocation(location);
}
Table table = new Table();
table.setDbName(dbName);
table.setTableName(tableName);
table.setSd(sd);
table.setParameters(parameters);
table.setOwner(owner);
if (partitionKeys != null) {
table.setPartitionKeys(partitionKeys);
}
table.setTableType(tableType.toString());
return table;
}
}
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
/**
* @param owner
* @see org.apache.hadoop.hive.metastore.api.Table#setOwner(java.lang.String)
*/
public void setOwner(String owner) {
tTable.setOwner(owner);
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
/**
* @param owner
* @see org.apache.hadoop.hive.metastore.api.Table#setOwner(java.lang.String)
*/
public void setOwner(String owner) {
tTable.setOwner(owner);
}
代码示例来源:origin: com.linkedin.gobblin/gobblin-hive-registration
table.setOwner(hiveTable.getOwner().get());
代码示例来源:origin: org.apache.gobblin/gobblin-hive-registration
table.setOwner(hiveTable.getOwner().get());
代码示例来源:origin: prestosql/presto
public static org.apache.hadoop.hive.metastore.api.Table toMetastoreApiTable(Table table, PrincipalPrivileges privileges)
{
org.apache.hadoop.hive.metastore.api.Table result = new org.apache.hadoop.hive.metastore.api.Table();
result.setDbName(table.getDatabaseName());
result.setTableName(table.getTableName());
result.setOwner(table.getOwner());
result.setTableType(table.getTableType());
result.setParameters(table.getParameters());
result.setPartitionKeys(table.getPartitionColumns().stream().map(ThriftMetastoreUtil::toMetastoreApiFieldSchema).collect(toList()));
result.setSd(makeStorageDescriptor(table.getTableName(), table.getDataColumns(), table.getStorage()));
result.setPrivileges(toMetastoreApiPrincipalPrivilegeSet(privileges));
result.setViewOriginalText(table.getViewOriginalText().orElse(null));
result.setViewExpandedText(table.getViewExpandedText().orElse(null));
return result;
}
代码示例来源:origin: com.github.hyukjinkwon.hcatalog/hive-webhcat-java-client
try {
newTable.setOwner(owner == null? getConf().getUser() : owner);
代码示例来源:origin: org.spark-project.hive.hcatalog/hive-webhcat-java-client
try {
newTable.setOwner(owner == null? getConf().getUser() : owner);
代码示例来源:origin: uk.co.nichesolutions.presto/presto-hive
table.setDbName(schemaName);
table.setTableName(tableName);
table.setOwner(tableOwner);
table.setTableType(TableType.MANAGED_TABLE.toString());
table.setParameters(ImmutableMap.of());
内容来源于网络,如有侵权,请联系作者删除!