@Override public TransformationMetadata getDesignTimeMetadata() { TransformationMetadata tm = new TransformationMetadata(store, functionLibrary); tm.groupInfoCache = this.groupInfoCache; tm.metadataCache = this.metadataCache; tm.partialNameToFullNameCache = this.partialNameToFullNameCache; tm.procedureCache = this.procedureCache; tm.scriptEngineManager = this.scriptEngineManager; tm.importedModels = this.importedModels; tm.allowedLanguages = this.allowedLanguages; tm.widenComparisonToString = this.widenComparisonToString; return tm; }
@Override public TransformationMetadata getDesignTimeMetadata() { TransformationMetadata tm = new TransformationMetadata(store, functionLibrary); tm.groupInfoCache = this.groupInfoCache; tm.metadataCache = this.metadataCache; tm.partialNameToFullNameCache = this.partialNameToFullNameCache; tm.procedureCache = this.procedureCache; tm.scriptEngineManager = this.scriptEngineManager; tm.importedModels = this.importedModels; tm.allowedLanguages = this.allowedLanguages; tm.widenComparisonToString = this.widenComparisonToString; tm.longRanks = this.longRanks; return tm; }
@Override public TransformationMetadata getDesignTimeMetadata() { TransformationMetadata tm = new TransformationMetadata(store, functionLibrary); tm.groupInfoCache = this.groupInfoCache; tm.metadataCache = this.metadataCache; tm.partialNameToFullNameCache = this.partialNameToFullNameCache; tm.procedureCache = this.procedureCache; tm.scriptEngineManager = this.scriptEngineManager; tm.importedModels = this.importedModels; tm.allowedLanguages = this.allowedLanguages; tm.widenComparisonToString = this.widenComparisonToString; tm.longRanks = this.longRanks; return tm; }
TransformationMetadata metadata = new TransformationMetadata(vdb, compositeStore, visibilityMap, systemFunctions, udfs); metadata.setAllowENV(allowEnv); metadata.setLongRanks(AggregateSymbol.LONG_RANKS);
@Before public void setUp() { MetadataStore metadataStore = new MetadataStore(); CompositeMetadataStore store = new CompositeMetadataStore(metadataStore); VDBMetaData vdbMetaData = new VDBMetaData(); vdbMetaData.setName("foo"); //$NON-NLS-1$ vdbMetaData.setVersion(1); Map<String, VDBResources.Resource> vdbEntries = new LinkedHashMap<String, VDBResources.Resource>(); vdbEntries.put(MY_RESOURCE_PATH, new VDBResources.Resource(root.getChild("foo"))); metadataFactory = new RuntimeMetadataImpl(new TransformationMetadata(vdbMetaData, store, vdbEntries, null, null)); }
systemStore.addDataTypes(typeMap); loadSchema(vdb, p, "SYSADMIN", parser).mergeInto(systemStore); //$NON-NLS-1$ TransformationMetadata tm = new TransformationMetadata(vdb, new CompositeMetadataStore(systemStore), null, systemFunctionManager.getSystemFunctions(), null); vdb.addAttchment(QueryMetadataInterface.class, tm); MetadataValidator validator = new MetadataValidator(this.typeMap, parser);
systemStore.addDataTypes(typeMap); loadSchema(vdb, p, "SYSADMIN", parser).mergeInto(systemStore); //$NON-NLS-1$ TransformationMetadata tm = new TransformationMetadata(vdb, new CompositeMetadataStore(systemStore), null, systemFunctionManager.getSystemFunctions(), null); vdb.addAttchment(QueryMetadataInterface.class, tm); MetadataValidator validator = new MetadataValidator(this.typeMap, parser);
@Override protected TransformationMetadata getTransformationMetadata() { Database database = getCurrentDatabase(); CompositeMetadataStore store = new CompositeMetadataStore(database.getMetadataStore()); //grants are already stored on the VDBMetaData store.getGrants().clear(); return new TransformationMetadata(DatabaseUtil.convert(database), store, null, null, null); } };
systemStore.addDataTypes(typeMap); loadSchema(vdb, p, "SYSADMIN", parser).mergeInto(systemStore); //$NON-NLS-1$ TransformationMetadata tm = new TransformationMetadata(vdb, new CompositeMetadataStore(systemStore), null, systemFunctionManager.getSystemFunctions(), null); vdb.addAttchment(QueryMetadataInterface.class, tm); MetadataValidator validator = new MetadataValidator(this.typeMap, parser);
private void buildTransformationMetadata() { TransformationMetadata metadata = new TransformationMetadata(this.vdb, new CompositeMetadataStore(this.store), null, SFM.getSystemFunctions(), null); this.vdb.addAttchment(QueryMetadataInterface.class, metadata); this.vdb.addAttchment(TransformationMetadata.class, metadata); }
public static TransformationMetadata createTransformationMetadata(CompositeMetadataStore store, String vdbName, Properties vdbProperties, FunctionTree... functionModels) { VDBMetaData vdbMetaData = new VDBMetaData(); vdbMetaData.setName(vdbName); //$NON-NLS-1$ vdbMetaData.setVersion(1); if (vdbProperties != null) { vdbMetaData.setProperties(vdbProperties); } List<FunctionTree> udfs = new ArrayList<FunctionTree>(); udfs.addAll(Arrays.asList(functionModels)); for (Schema schema : store.getSchemas().values()) { vdbMetaData.addModel(RealMetadataFactory.createModel(schema.getName(), schema.isPhysical())); if (!schema.getFunctions().isEmpty()) { udfs.add(new FunctionTree(schema.getName(), new UDFSource(schema.getFunctions().values()), true)); } if (!schema.getProcedures().isEmpty()) { FunctionTree ft = FunctionTree.getFunctionProcedures(schema); if (ft != null) { udfs.add(ft); } } } TransformationMetadata metadata = new TransformationMetadata(vdbMetaData, store, null, SFM.getSystemFunctions(), udfs); vdbMetaData.addAttchment(TransformationMetadata.class, metadata); vdbMetaData.addAttchment(QueryMetadataInterface.class, metadata); return metadata; }
vdbmetadata = new TransformationMetadata(vdb, new CompositeMetadataStore(Arrays.asList(SystemMetadata.getInstance().getSystemStore(), imf.store)), imf.resources.getEntriesPlusVisibilities(), sfm.getSystemFunctions(), trees); VDB_CACHE.put(vdbURL, vdbmetadata); return vdbmetadata;
vdb.addModel(model2); TransformationMetadata tm = new TransformationMetadata(vdb, cms, null, RealMetadataFactory.SFM.getSystemFunctions(), null); Collection result = tm.getGroupsForPartialName("y"); //$NON-NLS-1$ assertEquals(2, result.size()); tm = new TransformationMetadata(vdb, cms, null, RealMetadataFactory.SFM.getSystemFunctions(), null); result = tm.getGroupsForPartialName("y"); //$NON-NLS-1$ assertEquals(1, result.size());
vdb.addModel(buildModel("y")); return new TransformationMetadata(vdb, cms, resources, RealMetadataFactory.SFM.getSystemFunctions(), null);
this.detectChangeEvents = detectChangeEvents; MetadataStore ms = SystemMetadata.getInstance().getSystemStore(); TransformationMetadata tm = new TransformationMetadata(null, new CompositeMetadataStore(ms), null, null, null); String name = SystemTables.SCHEMAS.name(); List<ElementSymbol> columns = getColumns(tm, name);
TransformationMetadata tm = new TransformationMetadata(null, cms, null, null, null); BasicSourceCapabilities bsc = new BasicSourceCapabilities(); bsc.setCapabilitySupport(Capability.CRITERIA_IN, true);
TransformationMetadata qmi = new TransformationMetadata(DatabaseUtil.convert(db), cms, null, null, null);
TransformationMetadata qmi = new TransformationMetadata(DatabaseUtil.convert(db), cms, null, null, null);
TransformationMetadata qmi = new TransformationMetadata(DatabaseUtil.convert(db), cms, null, null, null);
final Database database = DatabaseUtil.convert(vdb, vdbMetadataStore); CompositeMetadataStore compositeStore = new CompositeMetadataStore(vdbMetadataStore); final TransformationMetadata metadata = new TransformationMetadata(vdb, compositeStore, null, getVDBRepository().getSystemFunctionManager().getSystemFunctions(), null);