org.teiid.language.Function.setMetadataObject()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(211)

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

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());

相关文章