Package org.teiid.query.function

Examples of org.teiid.query.function.SystemFunctionManager


      if (udfFile != null) {
        String schema = FileUtils.getFilenameWithoutExtension(udfFile.getPath());
        methods = FunctionMetadataReader.loadFunctionMethods(udfFile.openStream());
        trees = Arrays.asList(new FunctionTree(schema, new UDFSource(methods), true));
      }
      SystemFunctionManager sfm = new SystemFunctionManager();
      vdbmetadata = new TransformationMetadata(null, new CompositeMetadataStore(Arrays.asList(getSystem(), imf.getMetadataStore(getSystem().getDatatypes()))), imf.getEntriesPlusVisibilities(), sfm.getSystemFunctions(), trees);
      VDB_CACHE.put(vdbURL, vdbmetadata);
      return vdbmetadata;
    } catch (URISyntaxException e) {
      throw new IOException(e);
    } catch (JAXBException e) {
View Full Code Here


  public void setUDF(final Collection<FunctionMethod> methods) {
    this.metadata = new BasicQueryMetadataWrapper(this.metadata) {
      @Override
      public FunctionLibrary getFunctionLibrary() {
        SystemFunctionManager sfm = new SystemFunctionManager();
        return new FunctionLibrary(sfm.getSystemFunctions(), new FunctionTree("foo", new UDFSource(methods)))//$NON-NLS-1$
      }
    };
  }
View Full Code Here

 
  public FakeServer() {
    this.logon = new LogonImpl(sessionService, null);
   
    this.repo.setSystemStore(VDBMetadataFactory.getSystem());
    this.repo.setSystemFunctionManager(new SystemFunctionManager());
    this.repo.odbcEnabled();
    this.repo.start();
   
        this.sessionService.setVDBRepository(repo);
        this.dqp.setBufferService(new FakeBufferService());
View Full Code Here

TOP

Related Classes of org.teiid.query.function.SystemFunctionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.