private GlobalTableStore getGlobalStore(final CommandContext context, TempMetadataID matTableId) { GlobalTableStore globalStore = context.getGlobalTableStore(); if (matTableId.getCacheHint() == null || matTableId.getCacheHint().getScope() == null || Scope.VDB.compareTo(matTableId.getCacheHint().getScope()) <= 0) { return globalStore; } throw new AssertionError("session scoping not supported"); //$NON-NLS-1$ }
private GlobalTableStore getGlobalStore(final CommandContext context, TempMetadataID matTableId) { GlobalTableStore globalStore = context.getGlobalTableStore(); if (matTableId.getCacheHint() == null || matTableId.getCacheHint().getScope() == null || Scope.VDB.compareTo(matTableId.getCacheHint().getScope()) <= 0) { return globalStore; } throw new AssertionError("session scoping not supported"); //$NON-NLS-1$ }
private GlobalTableStore getGlobalStore(final CommandContext context, TempMetadataID matTableId) { GlobalTableStore globalStore = context.getGlobalTableStore(); if (matTableId.getCacheHint() == null || matTableId.getCacheHint().getScope() == null || Scope.VDB.compareTo(matTableId.getCacheHint().getScope()) <= 0) { return globalStore; } return context.getSessionScopedStore(true); }
public CacheHint clone() { CacheHint copy = new CacheHint(); copy.setInvalidation(this.getInvalidation()); copy.setPrefersMemory(this.getPrefersMemory()); copy.setReadAll(this.getReadAll()); copy.setScope(this.getScope()); copy.setTtl(this.getTtl()); copy.setUpdatable(this.getUpdatable()); copy.setMinRows(this.getMinRows()); return copy; }
public CacheHint clone() { CacheHint copy = new CacheHint(); copy.setInvalidation(this.getInvalidation()); copy.setPrefersMemory(this.getPrefersMemory()); copy.setReadAll(this.getReadAll()); copy.setScope(this.getScope()); copy.setTtl(this.getTtl()); copy.setUpdatable(this.getUpdatable()); copy.setMinRows(this.getMinRows()); return copy; }
public CacheHint clone() { CacheHint copy = new CacheHint(); copy.setInvalidation(this.getInvalidation()); copy.setPrefersMemory(this.getPrefersMemory()); copy.setReadAll(this.getReadAll()); copy.setScope(this.getScope()); copy.setTtl(this.getTtl()); copy.setUpdatable(this.getUpdatable()); copy.setMinRows(this.getMinRows()); return copy; }
if (cacheHint != null && cacheHint.getScope() != null && cacheHint.getScope() != org.teiid.translator.CacheDirective.Scope.VDB) { log(report, model, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31116, t.getFullName())); t.setProperty(MaterializationMetadataRepository.MATVIEW_PREFER_MEMORY, String.valueOf(cacheHint.getPrefersMemory())); if (cacheHint.getScope() != null && t.getProperty(MaterializationMetadataRepository.MATVIEW_SHARE_SCOPE, false) == null) { log(report, model, Severity.WARNING, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31252, t.getName(), cacheHint.getScope().name())); t.setProperty(MaterializationMetadataRepository.MATVIEW_SHARE_SCOPE, MaterializationMetadataRepository.Scope.IMPORTED.name());
if (cacheHint != null && cacheHint.getScope() != null && cacheHint.getScope() != org.teiid.translator.CacheDirective.Scope.VDB) { log(report, model, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31116, t.getFullName())); t.setProperty(MaterializationMetadataRepository.MATVIEW_PREFER_MEMORY, String.valueOf(cacheHint.getPrefersMemory())); if (cacheHint.getScope() != null && t.getProperty(MaterializationMetadataRepository.MATVIEW_SHARE_SCOPE, false) == null) { log(report, model, Severity.WARNING, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31252, t.getName(), cacheHint.getScope().name())); t.setProperty(MaterializationMetadataRepository.MATVIEW_SHARE_SCOPE, MaterializationMetadataRepository.Scope.IMPORTED.name());
t.setProperty(MaterializationMetadataRepository.MATVIEW_PREFER_MEMORY, String.valueOf(cacheHint.getPrefersMemory())); if (cacheHint.getScope() != null && t.getProperty(MaterializationMetadataRepository.MATVIEW_SHARE_SCOPE, false) == null) { log(report, model, Severity.WARNING, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31252, t.getName(), cacheHint.getScope().name())); t.setProperty(MaterializationMetadataRepository.MATVIEW_SHARE_SCOPE, MaterializationMetadataRepository.Scope.IMPORTED.name());