本文整理了Java中org.teiid.language.Function.setMetadataObject()
方法的一些代码示例,展示了Function.setMetadataObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Function.setMetadataObject()
方法的具体详情如下:
包路径:org.teiid.language.Function
类名称:Function
方法名:setMetadataObject
暂无
代码示例来源:origin: org.teiid.connectors/translator-odata
@Override
public List<?> translate(Function function) {
function.setName(SourceSystemFunctions.ADD_OP);
Expression param1 = function.getParameters().get(0);
Expression param2 = function.getParameters().get(1);
Function indexOf = new Function("indexof", Arrays.asList(param2, param1), TypeFacility.RUNTIME_TYPES.INTEGER); //$NON-NLS-1$
indexOf.setMetadataObject(function.getMetadataObject());
function.getParameters().set(0, indexOf);
function.getParameters().set(1, new Literal(1, TypeFacility.RUNTIME_TYPES.INTEGER));
return null;
}
});
代码示例来源:origin: org.teiid.connectors/translator-odata4
@Override
public List<?> translate(Function function) {
function.setName(SourceSystemFunctions.ADD_OP);
Expression param1 = function.getParameters().get(0);
Expression param2 = function.getParameters().get(1);
Function indexOf = new Function("indexof", Arrays.asList(param2, param1), TypeFacility.RUNTIME_TYPES.INTEGER); //$NON-NLS-1$
indexOf.setMetadataObject(function.getMetadataObject());
function.getParameters().set(0, indexOf);
function.getParameters().set(1, new Literal(1, TypeFacility.RUNTIME_TYPES.INTEGER));
return null;
}
});
代码示例来源:origin: org.teiid/teiid-engine
result.setMetadataObject(function.getFunctionDescriptor().getMethod());
代码示例来源:origin: teiid/teiid
result.setMetadataObject(function.getFunctionDescriptor().getMethod());
代码示例来源:origin: org.jboss.teiid/teiid-engine
result.setMetadataObject(function.getFunctionDescriptor().getMethod());
内容来源于网络,如有侵权,请联系作者删除!