Refine search
private IMetaStoreClient getMSC() throws HiveException { try { return hive.getMSC(); } catch (MetaException ex) { throw new HiveException(ex); } }
public boolean grantPrivileges(PrivilegeBag privileges) throws HiveException { try { return getMSC().grant_privileges(privileges); } catch (Exception e) { throw new HiveException(e); } }
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); } }
public void createFunction(Function func) throws HiveException { try { getMSC().createFunction(func); } catch (TException te) { throw new HiveException(te); } }
public List<String> getFunctions(String dbName, String pattern) throws HiveException { try { return getMSC().getFunctions(dbName, pattern); } catch (TException te) { throw new HiveException(te); } }
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); } }
public void addPrimaryKey(List<SQLPrimaryKey> primaryKeyCols) throws HiveException, NoSuchObjectException { try { getMSC().addPrimaryKey(primaryKeyCols); } catch (Exception e) { throw new HiveException(e); } }
public void putFileMetadata(List<Long> fileIds, List<ByteBuffer> metadata) throws HiveException { try { getMSC().putFileMetadata(fileIds, metadata); } catch (TException e) { throw new HiveException(e); } }
public void addNotNullConstraint(List<SQLNotNullConstraint> notNullConstraintCols) throws HiveException, NoSuchObjectException { try { getMSC().addNotNullConstraint(notNullConstraintCols); } catch (Exception e) { throw new HiveException(e); } }
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); } }
public void alterFunction(String dbName, String funcName, Function newFunction) throws HiveException { try { getMSC().alterFunction(dbName, funcName, newFunction); } catch (TException te) { throw new HiveException(te); } }
public void setMetaConf(String propName, String propValue) throws HiveException { try { getMSC().setMetaConf(propName, propValue); } catch (TException te) { throw new HiveException(te); } }
public String getMetaConf(String propName) throws HiveException { try { return getMSC().getMetaConf(propName); } catch (TException te) { throw new HiveException(te); } }
public Iterable<Map.Entry<Long, ByteBuffer>> getFileMetadata( List<Long> fileIds) throws HiveException { try { return getMSC().getFileMetadata(fileIds); } catch (TException e) { throw new HiveException(e); } }
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); } }
public void clearFileMetadata(List<Long> fileIds) throws HiveException { try { getMSC().clearFileMetadata(fileIds); } catch (TException e) { throw new HiveException(e); } }
public void addDefaultConstraint(List<SQLDefaultConstraint> defaultConstraints) throws HiveException, NoSuchObjectException { try { getMSC().addDefaultConstraint(defaultConstraints); } catch (Exception e) { throw new HiveException(e); } }
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); } }
public List<Role> listRoles(String userName, PrincipalType principalType) throws HiveException { try { return getMSC().list_roles(userName, principalType); } catch (Exception e) { throw new HiveException(e); } }
public Function getFunction(String dbName, String funcName) throws HiveException { try { return getMSC().getFunction(dbName, funcName); } catch (TException te) { throw new HiveException(te); } }