org.apache.hadoop.hive.ql.metadata.Hive.getMSC()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(201)

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

Hive.getMSC介绍

暂无

代码示例

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

private IMetaStoreClient getMSC() throws HiveException {
 try {
  return hive.getMSC();
 } catch (MetaException ex) {
  throw new HiveException(ex);
 }
}

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

public boolean grantPrivileges(PrivilegeBag privileges)
  throws HiveException {
 try {
  return getMSC().grant_privileges(privileges);
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public boolean grantRole(String roleName, String userName,
  PrincipalType principalType, String grantor, PrincipalType grantorType,
  boolean grantOption) throws HiveException {
 try {
  return getMSC().grant_role(roleName, userName, principalType, grantor,
   grantorType, grantOption);
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public void createFunction(Function func) throws HiveException {
 try {
  getMSC().createFunction(func);
 } catch (TException te) {
  throw new HiveException(te);
 }
}

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

public List<String> getFunctions(String dbName, String pattern) throws HiveException {
 try {
  return getMSC().getFunctions(dbName, pattern);
 } catch (TException te) {
  throw new HiveException(te);
 }
}

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

public void dropConstraint(String dbName, String tableName, String constraintName)
 throws HiveException, NoSuchObjectException {
 try {
  getMSC().dropConstraint(dbName, tableName, constraintName);
 } catch (NoSuchObjectException e) {
  throw e;
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public void addPrimaryKey(List<SQLPrimaryKey> primaryKeyCols)
 throws HiveException, NoSuchObjectException {
 try {
  getMSC().addPrimaryKey(primaryKeyCols);
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public void putFileMetadata(List<Long> fileIds, List<ByteBuffer> metadata) throws HiveException {
 try {
  getMSC().putFileMetadata(fileIds, metadata);
 } catch (TException e) {
  throw new HiveException(e);
 }
}

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

public void addNotNullConstraint(List<SQLNotNullConstraint> notNullConstraintCols)
 throws HiveException, NoSuchObjectException {
 try {
  getMSC().addNotNullConstraint(notNullConstraintCols);
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public boolean dropPartition(String dbName, String tableName, List<String> partVals, PartitionDropOptions options)
  throws HiveException {
 try {
  return getMSC().dropPartition(dbName, tableName, partVals, options);
 } catch (NoSuchObjectException e) {
  throw new HiveException("Partition or table doesn't exist.", e);
 } catch (Exception e) {
  throw new HiveException(e.getMessage(), e);
 }
}

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

public void alterFunction(String dbName, String funcName, Function newFunction)
  throws HiveException {
 try {
  getMSC().alterFunction(dbName, funcName, newFunction);
 } catch (TException te) {
  throw new HiveException(te);
 }
}

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

public void setMetaConf(String propName, String propValue) throws HiveException {
 try {
  getMSC().setMetaConf(propName, propValue);
 } catch (TException te) {
  throw new HiveException(te);
 }
}

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

public String getMetaConf(String propName) throws HiveException {
 try {
  return getMSC().getMetaConf(propName);
 } catch (TException te) {
  throw new HiveException(te);
 }
}

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

public Iterable<Map.Entry<Long, ByteBuffer>> getFileMetadata(
  List<Long> fileIds) throws HiveException {
 try {
  return getMSC().getFileMetadata(fileIds);
 } catch (TException e) {
  throw new HiveException(e);
 }
}

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

public Iterable<Map.Entry<Long, MetadataPpdResult>> getFileMetadataByExpr(
  List<Long> fileIds, ByteBuffer sarg, boolean doGetFooters) throws HiveException {
 try {
  return getMSC().getFileMetadataBySarg(fileIds, sarg, doGetFooters);
 } catch (TException e) {
  throw new HiveException(e);
 }
}

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

public void clearFileMetadata(List<Long> fileIds) throws HiveException {
 try {
  getMSC().clearFileMetadata(fileIds);
 } catch (TException e) {
  throw new HiveException(e);
 }
}

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

public void addDefaultConstraint(List<SQLDefaultConstraint> defaultConstraints)
  throws HiveException, NoSuchObjectException {
 try {
  getMSC().addDefaultConstraint(defaultConstraints);
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public boolean revokeRole(String roleName, String userName,
  PrincipalType principalType, boolean grantOption)  throws HiveException {
 try {
  return getMSC().revoke_role(roleName, userName, principalType, grantOption);
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public List<Role> listRoles(String userName,  PrincipalType principalType)
  throws HiveException {
 try {
  return getMSC().list_roles(userName, principalType);
 } catch (Exception e) {
  throw new HiveException(e);
 }
}

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

public Function getFunction(String dbName, String funcName) throws HiveException {
 try {
  return getMSC().getFunction(dbName, funcName);
 } catch (TException te) {
  throw new HiveException(te);
 }
}

相关文章

微信公众号

最新文章

更多

Hive类方法