org.apache.hadoop.hive.metastore.api.Function.setCatName()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(102)

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

Function.setCatName介绍

暂无

代码示例

代码示例来源:origin: apache/hive

@Override
public void createFunction(Function func) throws TException {
 if (func == null) {
  throw new MetaException("Function cannot be null.");
 }
 if (!func.isSetCatName()) {
  func.setCatName(getDefaultCatalog(conf));
 }
 client.create_function(func);
}

代码示例来源:origin: apache/hive

public Function build(Configuration conf) throws MetaException {
 try {
  if (owner != null) {
   owner = SecurityUtils.getUser();
  }
 } catch (IOException e) {
  throw MetaStoreUtils.newMetaException(e);
 }
 if (catName == null) catName = MetaStoreUtils.getDefaultCatalog(conf);
 Function f = new Function(funcName, dbName, className, owner, ownerType, createTime, funcType,
   resourceUris);
 f.setCatName(catName);
 return f;
}

代码示例来源:origin: apache/hive

private Function convertToFunction(MFunction mfunc) {
 if (mfunc == null) {
  return null;
 }
 Function func = new Function(mfunc.getFunctionName(),
   mfunc.getDatabase().getName(),
   mfunc.getClassName(),
   mfunc.getOwnerName(),
   PrincipalType.valueOf(mfunc.getOwnerType()),
   mfunc.getCreateTime(),
   FunctionType.findByValue(mfunc.getFunctionType()),
   convertToResourceUriList(mfunc.getResourceUris()));
 func.setCatName(mfunc.getDatabase().getCatalogName());
 return func;
}

代码示例来源:origin: apache/hive

unsetCatName();
} else {
 setCatName((String)value);

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

private Function convertToFunction(MFunction mfunc) {
 if (mfunc == null) {
  return null;
 }
 Function func = new Function(mfunc.getFunctionName(),
   mfunc.getDatabase().getName(),
   mfunc.getClassName(),
   mfunc.getOwnerName(),
   PrincipalType.valueOf(mfunc.getOwnerType()),
   mfunc.getCreateTime(),
   FunctionType.findByValue(mfunc.getFunctionType()),
   convertToResourceUriList(mfunc.getResourceUris()));
 func.setCatName(mfunc.getDatabase().getCatalogName());
 return func;
}

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

unsetCatName();
} else {
 setCatName((String)value);

相关文章

微信公众号

最新文章

更多