public MetadataFactory getTempMetadataFactory() { if (this.metadataFactory == null) { this.metadataFactory = new MetadataFactory("temp", 1, "temp", SystemMetadata.getInstance().getRuntimeTypeMap(), null, null); //$NON-NLS-1$ //$NON-NLS-2$ } return this.metadataFactory; }
this.repo.setSystemFunctionManager(SystemMetadata.getInstance().getSystemFunctionManager()); this.repo.start();
CompositeMetadataStore cms = new CompositeMetadataStore(Arrays.asList(RealMetadataFactory.example1Store(), SystemMetadata.getInstance().getSystemStore())); TransformationMetadata tm = new TransformationMetadata(null, cms, null, null, null); BasicSourceCapabilities bsc = new BasicSourceCapabilities();
if (v != null) { Matcher matcher = udtPattern.matcher(v); List<Datatype> datatypes = SystemMetadata.getInstance().getDataTypes(); Datatype match = null; if (matcher.matches()) {
SystemFunctionManager sfm = SystemMetadata.getInstance().getSystemFunctionManager(); 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;
addAliasType(DataTypeManager.DataTypeAliases.BIGINT); addAliasType(DataTypeManager.DataTypeAliases.DECIMAL); addAliasType(DataTypeManager.DataTypeAliases.REAL); addAliasType(DataTypeManager.DataTypeAliases.SMALLINT); addAliasType(DataTypeManager.DataTypeAliases.TINYINT); addAliasType(DataTypeManager.DataTypeAliases.VARCHAR); for (String name : DataTypeManager.getAllDataTypeNames()) { if (!name.equals(DefaultDataTypes.NULL)) { this.systemFunctionManager = new SystemFunctionManager(typeMap); QueryParser parser = new QueryParser(); systemStore = loadSchema(vdb, p, "SYS", parser).asMetadataStore(); //$NON-NLS-1$ 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);
this.bufferManager = bufferMgr; this.detectChangeEvents = detectChangeEvents; MetadataStore ms = SystemMetadata.getInstance().getSystemStore(); TransformationMetadata tm = new TransformationMetadata(null, new CompositeMetadataStore(ms), null, null, null); String name = SystemTables.SCHEMAS.name();
if (v != null) { Matcher matcher = udtPattern.matcher(v); List<Datatype> datatypes = SystemMetadata.getInstance().getDataTypes(); Datatype match = null; if (matcher.matches()) {
addAliasType(DataTypeManager.DataTypeAliases.BIGINT); addAliasType(DataTypeManager.DataTypeAliases.DECIMAL); addAliasType(DataTypeManager.DataTypeAliases.REAL); addAliasType(DataTypeManager.DataTypeAliases.SMALLINT); addAliasType(DataTypeManager.DataTypeAliases.TINYINT); addAliasType(DataTypeManager.DataTypeAliases.VARCHAR); for (String name : DataTypeManager.getAllDataTypeNames()) { if (!name.equals(DefaultDataTypes.NULL)) { this.systemFunctionManager = new SystemFunctionManager(typeMap); QueryParser parser = new QueryParser(); systemStore = loadSchema(vdb, p, "SYS", parser).asMetadataStore(); //$NON-NLS-1$ 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);
public static final void validateFunctionMethods(Collection<FunctionMethod> methods, ValidatorReport report, Map<String, Datatype> runtimeTypeMap) { if (runtimeTypeMap == null) { runtimeTypeMap = SystemMetadata.getInstance().getRuntimeTypeMap(); } if(methods != null) { for (FunctionMethod method : methods) { validateFunctionMethod(method, report, runtimeTypeMap); } } }
this.bufferManager = bufferMgr; this.detectChangeEvents = detectChangeEvents; MetadataStore ms = SystemMetadata.getInstance().getSystemStore(); TransformationMetadata tm = new TransformationMetadata(null, new CompositeMetadataStore(ms), null, null, null); String name = SystemTables.SCHEMAS.name();
public static IndexVDB loadMetadata(String vdbName, URL url) throws IOException, MalformedURLException { VirtualFile root; try { root = PureZipFileSystem.mount(url); } catch (URISyntaxException e) { throw new IOException(e); } IndexVDB result = new IndexVDB(); result.resources = new VDBResources(root, null); IndexMetadataRepository store = new IndexMetadataRepository(); result.store = store.load(SystemMetadata.getInstance().getDataTypes(), result.resources); return result; } }
public void addUDF(String schema, Collection<FunctionMethod> methods) { if (methods == null || methods.isEmpty()) { return; } this.functions.add(new FunctionTree(schema, new UDFSource(methods))); SystemFunctionManager sfm = SystemMetadata.getInstance().getSystemFunctionManager(); functionLibrary = new FunctionLibrary(sfm.getSystemFunctions(), this.functions.toArray(new FunctionTree[this.functions.size()])); }
addAliasType(DataTypeManager.DataTypeAliases.BIGINT); addAliasType(DataTypeManager.DataTypeAliases.DECIMAL); addAliasType(DataTypeManager.DataTypeAliases.REAL); addAliasType(DataTypeManager.DataTypeAliases.SMALLINT); addAliasType(DataTypeManager.DataTypeAliases.TINYINT); addAliasType(DataTypeManager.DataTypeAliases.VARCHAR); for (String name : DataTypeManager.getAllDataTypeNames()) { if (!name.equals(DefaultDataTypes.NULL)) { this.systemFunctionManager = new SystemFunctionManager(typeMap); QueryParser parser = new QueryParser(); systemStore = loadSchema(vdb, p, "SYS", parser).asMetadataStore(); //$NON-NLS-1$ 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);
public MetadataFactory getTempMetadataFactory() { if (this.metadataFactory == null) { this.metadataFactory = new MetadataFactory("temp", 1, "temp", SystemMetadata.getInstance().getRuntimeTypeMap(), null, null); //$NON-NLS-1$ //$NON-NLS-2$ } return this.metadataFactory; }
this.bufferManager = bufferMgr; this.detectChangeEvents = detectChangeEvents; MetadataStore ms = SystemMetadata.getInstance().getSystemStore(); TransformationMetadata tm = new TransformationMetadata(null, new CompositeMetadataStore(ms), null, null, null); String name = SystemTables.SCHEMAS.name();
if (v != null) { Matcher matcher = udtPattern.matcher(v); List<Datatype> datatypes = SystemMetadata.getInstance().getDataTypes(); Datatype match = null; if (matcher.matches()) {
public static final void validateFunctionMethods(Collection<FunctionMethod> methods, ValidatorReport report, Map<String, Datatype> runtimeTypeMap) { if (runtimeTypeMap == null) { runtimeTypeMap = SystemMetadata.getInstance().getRuntimeTypeMap(); } if(methods != null) { for (FunctionMethod method : methods) { validateFunctionMethod(method, report, runtimeTypeMap); } } }
public static final void validateFunctionMethods(Collection<FunctionMethod> methods, ValidatorReport report, Map<String, Datatype> runtimeTypeMap) { if (runtimeTypeMap == null) { runtimeTypeMap = SystemMetadata.getInstance().getRuntimeTypeMap(); } if(methods != null) { for (FunctionMethod method : methods) { validateFunctionMethod(method, report, runtimeTypeMap); } } }
public MetadataFactory getTempMetadataFactory() { if (this.metadataFactory == null) { this.metadataFactory = new MetadataFactory("temp", 1, "temp", SystemMetadata.getInstance().getRuntimeTypeMap(), null, null); //$NON-NLS-1$ //$NON-NLS-2$ } return this.metadataFactory; }