本文整理了Java中org.apache.hadoop.hive.metastore.api.Function.setFunctionType()
方法的一些代码示例,展示了Function.setFunctionType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Function.setFunctionType()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Function
类名称:Function
方法名:setFunctionType
暂无
代码示例来源:origin: apache/hive
@Test(expected = MetaException.class)
public void testCreateFunctionNullFunctionType() throws Exception {
Function function = testFunctions[0];
function.setFunctionName("test_function_2");
function.setFunctionType(null);
client.createFunction(function);
}
代码示例来源:origin: apache/hive
@Test(expected = MetaException.class)
public void testAlterFunctionNullFunctionTypeInNew() throws Exception {
Function newFunction = getNewFunction();
newFunction.setFunctionType(null);
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
unsetFunctionType();
} else {
setFunctionType((FunctionType)value);
代码示例来源:origin: org.spark-project.hive/hive-metastore
unsetFunctionType();
} else {
setFunctionType((FunctionType)value);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
unsetFunctionType();
} else {
setFunctionType((FunctionType)value);
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
unsetFunctionType();
} else {
setFunctionType((FunctionType)value);
内容来源于网络,如有侵权,请联系作者删除!