本文整理了Java中org.apache.hadoop.hive.metastore.api.Function.setDbName()
方法的一些代码示例,展示了Function.setDbName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Function.setDbName()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Function
类名称:Function
方法名:setDbName
暂无
代码示例来源:origin: apache/hive
@Test(expected = MetaException.class)
public void testCreateFunctionNullDatabaseName() throws Exception {
Function function = testFunctions[0];
function.setDbName(null);
client.createFunction(function);
}
代码示例来源:origin: apache/hive
@Test(expected = NoSuchObjectException.class)
public void testCreateFunctionNoSuchDatabase() throws Exception {
Function function = testFunctions[0];
function.setDbName("no_such_database");
client.createFunction(function);
}
代码示例来源:origin: apache/hive
@Test(expected = MetaException.class)
public void testAlterFunctionNullDatabaseNameInNew() throws Exception {
Function newFunction = getNewFunction();
newFunction.setDbName(null);
client.alterFunction(DEFAULT_DATABASE, "test_function_to_find_2", newFunction);
}
代码示例来源:origin: apache/hive
@Test(expected = MetaException.class)
public void testAlterFunctionNoSuchDatabaseInNew() throws Exception {
Function newFunction = getNewFunction();
newFunction.setDbName("no_such_database");
client.alterFunction(DEFAULT_DATABASE, "test_function_to_find_2", newFunction);
}
代码示例来源:origin: apache/hive
@Test
public void testCreateFunctionDefaultValues() throws Exception {
Function function = new Function();
function.setDbName(OTHER_DATABASE);
function.setFunctionName("test_function");
function.setClassName(TEST_FUNCTION_CLASS);
function.setOwnerType(PrincipalType.USER);
function.setFunctionType(FunctionType.JAVA);
client.createFunction(function);
Function createdFunction = client.getFunction(function.getDbName(),
function.getFunctionName());
Assert.assertNull("Comparing OwnerName", createdFunction.getOwnerName());
Assert.assertEquals("Comparing ResourceUris", 0, createdFunction.getResourceUris().size());
// The create time is set
Assert.assertNotEquals("Comparing CreateTime", 0, createdFunction.getCreateTime());
}
代码示例来源:origin: apache/hive
unsetDbName();
} else {
setDbName((String)value);
代码示例来源:origin: org.spark-project.hive/hive-metastore
unsetDbName();
} else {
setDbName((String)value);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
unsetDbName();
} else {
setDbName((String)value);
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
unsetDbName();
} else {
setDbName((String)value);
内容来源于网络,如有侵权,请联系作者删除!