Search in sources :

Example 6 with DeployVDBParameter

use of org.teiid.jdbc.FakeServer.DeployVDBParameter in project teiid by teiid.

the class TestReplication method deployMatViewVDB.

private void deployMatViewVDB(FakeServer server) throws Exception {
    HashMap<String, Collection<FunctionMethod>> udfs = new HashMap<String, Collection<FunctionMethod>>();
    udfs.put("funcs", Arrays.asList(new FunctionMethod("pause", null, null, PushDown.CANNOT_PUSHDOWN, TestMatViews.class.getName(), "pause", null, new FunctionParameter("return", DataTypeManager.DefaultDataTypes.INTEGER), true, Determinism.NONDETERMINISTIC)));
    server.deployVDB(MATVIEWS, UnitTestUtil.getTestDataPath() + "/matviews.vdb", new DeployVDBParameter(udfs, null));
}
Also used : DeployVDBParameter(org.teiid.jdbc.FakeServer.DeployVDBParameter) HashMap(java.util.HashMap) Collection(java.util.Collection) FunctionMethod(org.teiid.metadata.FunctionMethod) FunctionParameter(org.teiid.metadata.FunctionParameter)

Aggregations

DeployVDBParameter (org.teiid.jdbc.FakeServer.DeployVDBParameter)6 Collection (java.util.Collection)3 HashMap (java.util.HashMap)3 FunctionMethod (org.teiid.metadata.FunctionMethod)3 FunctionParameter (org.teiid.metadata.FunctionParameter)3 Before (org.junit.Before)2 Test (org.junit.Test)2 VDBImportMetadata (org.teiid.adminapi.impl.VDBImportMetadata)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 BeforeClass (org.junit.BeforeClass)1 ConnectorManager (org.teiid.dqp.internal.datamgr.ConnectorManager)1 ConnectorManagerRepository (org.teiid.dqp.internal.datamgr.ConnectorManagerRepository)1 FakeServer (org.teiid.jdbc.FakeServer)1 Command (org.teiid.language.Command)1 RuntimeMetadata (org.teiid.metadata.RuntimeMetadata)1 DataNotAvailableException (org.teiid.translator.DataNotAvailableException)1 Execution (org.teiid.translator.Execution)1 ExecutionContext (org.teiid.translator.ExecutionContext)1 ExecutionFactory (org.teiid.translator.ExecutionFactory)1