public Object getMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException { return actualMetadata.getMaterialization(groupID); }
public Object getMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException { return actualMetadata.getMaterialization(groupID); }
public Object getMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException { return actualMetadata.getMaterialization(groupID); }
/** * @see org.teiid.query.metadata.QueryMetadataInterface#getMaterialization(java.lang.Object) * @since 4.2 */ public Object getMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException { // check if any dynamic materialization tables are defined if (this.materializationTables != null) { Object result = this.materializationTables.get(groupID); if (result != null) { return result; } } if(groupID instanceof TempMetadataID && !(actualMetadata instanceof TempMetadataAdapter)) { return null; } return this.actualMetadata.getMaterialization(groupID); }
/** * @see org.teiid.query.metadata.QueryMetadataInterface#getMaterialization(java.lang.Object) * @since 4.2 */ public Object getMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException { // check if any dynamic materialization tables are defined if (this.materializationTables != null) { Object result = this.materializationTables.get(groupID); if (result != null) { return result; } } if(groupID instanceof TempMetadataID && !(actualMetadata instanceof TempMetadataAdapter)) { return null; } return this.actualMetadata.getMaterialization(groupID); }
/** * @see org.teiid.query.metadata.QueryMetadataInterface#getMaterialization(java.lang.Object) * @since 4.2 */ public Object getMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException { // check if any dynamic materialization tables are defined if (this.materializationTables != null) { Object result = this.materializationTables.get(groupID); if (result != null) { return result; } } if(groupID instanceof TempMetadataID && !(actualMetadata instanceof TempMetadataAdapter)) { return null; } return this.actualMetadata.getMaterialization(groupID); }
private Object validateMatView(QueryMetadataInterface metadata, String viewName) throws TeiidComponentException, TeiidProcessingException { try { Object groupID = metadata.getGroupID(viewName); if (!metadata.hasMaterialization(groupID) || metadata.getMaterialization(groupID) != null) { throw new QueryProcessingException(QueryPlugin.Event.TEIID30233, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30233, viewName)); } return groupID; } catch (QueryMetadataException e) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30234, e); } }
private Object validateMatView(QueryMetadataInterface metadata, String viewName) throws TeiidComponentException, TeiidProcessingException { try { Object groupID = metadata.getGroupID(viewName); if (!metadata.hasMaterialization(groupID) || metadata.getMaterialization(groupID) != null) { throw new QueryProcessingException(QueryPlugin.Event.TEIID30233, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30233, viewName)); } return groupID; } catch (QueryMetadataException e) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30234, e); } }
private Object validateMatView(QueryMetadataInterface metadata, String viewName) throws TeiidComponentException, TeiidProcessingException { try { Object groupID = metadata.getGroupID(viewName); if (!metadata.hasMaterialization(groupID) || metadata.getMaterialization(groupID) != null) { throw new QueryProcessingException(QueryPlugin.Event.TEIID30233, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30233, viewName)); } return groupID; } catch (QueryMetadataException e) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30234, e); } }
public Query createMatViewQuery(Object viewMatadataId, Object matMetadataId, String matTableName, List<? extends Expression> select, boolean isGlobal) throws QueryMetadataException, TeiidComponentException { Query query = new Query(); query.setSelect(new Select(select)); GroupSymbol gs = new GroupSymbol(matTableName); gs.setGlobalTable(isGlobal); gs.setMetadataID(matMetadataId); query.setFrom(new From(Arrays.asList(new UnaryFromClause(gs)))); boolean allow = false; if (!(viewMatadataId instanceof TempMetadataID)) { allow = Boolean.parseBoolean(metadata.getExtensionProperty(viewMatadataId, MaterializationMetadataRepository.ALLOW_MATVIEW_MANAGEMENT, false)); allow &= metadata.getMaterialization(viewMatadataId) != null; } if (allow) { String onErrorAction = metadata.getExtensionProperty(viewMatadataId, MaterializationMetadataRepository.MATVIEW_ONERROR_ACTION, false); if (onErrorAction == null || !ErrorAction.IGNORE.name().equalsIgnoreCase(onErrorAction)) { gs.setCheckMatStatus(viewMatadataId); } } return query; }
public Query createMatViewQuery(Object viewMatadataId, Object matMetadataId, String matTableName, List<? extends Expression> select, boolean isGlobal) throws QueryMetadataException, TeiidComponentException { Query query = new Query(); query.setSelect(new Select(select)); GroupSymbol gs = new GroupSymbol(matTableName); gs.setGlobalTable(isGlobal); gs.setMetadataID(matMetadataId); query.setFrom(new From(Arrays.asList(new UnaryFromClause(gs)))); boolean allow = false; if (!(viewMatadataId instanceof TempMetadataID)) { allow = Boolean.parseBoolean(metadata.getExtensionProperty(viewMatadataId, MaterializationMetadataRepository.ALLOW_MATVIEW_MANAGEMENT, false)); allow &= metadata.getMaterialization(viewMatadataId) != null; } if (allow) { String onErrorAction = metadata.getExtensionProperty(viewMatadataId, MaterializationMetadataRepository.MATVIEW_ONERROR_ACTION, false); if (onErrorAction == null || !ErrorAction.IGNORE.name().equalsIgnoreCase(onErrorAction)) { gs.setCheckMatStatus(viewMatadataId); } } return query; }
public Query createMatViewQuery(Object viewMatadataId, Object matMetadataId, String matTableName, List<? extends Expression> select, boolean isGlobal) throws QueryMetadataException, TeiidComponentException { Query query = new Query(); query.setSelect(new Select(select)); GroupSymbol gs = new GroupSymbol(matTableName); gs.setGlobalTable(isGlobal); gs.setMetadataID(matMetadataId); query.setFrom(new From(Arrays.asList(new UnaryFromClause(gs)))); boolean allow = false; if (!(viewMatadataId instanceof TempMetadataID)) { allow = Boolean.parseBoolean(metadata.getExtensionProperty(viewMatadataId, MaterializationMetadataRepository.ALLOW_MATVIEW_MANAGEMENT, false)); allow &= metadata.getMaterialization(viewMatadataId) != null; } if (allow) { String onErrorAction = metadata.getExtensionProperty(viewMatadataId, MaterializationMetadataRepository.MATVIEW_ONERROR_ACTION, false); if (onErrorAction == null || !ErrorAction.IGNORE.name().equalsIgnoreCase(onErrorAction)) { gs.setCheckMatStatus(viewMatadataId); } } return query; }
Object matMetadataId = metadata.getMaterialization(metadataID); String matTableName = null; CacheHint hint = null;
Object matMetadataId = metadata.getMaterialization(metadataID); String matTableName = null; CacheHint hint = null;
Object matMetadataId = metadata.getMaterialization(metadataID); String matTableName = null; CacheHint hint = null;
DeclareStatement ds = new DeclareStatement(val, DataTypeManager.DefaultDataTypes.INTEGER, rowCount); block.addStatement(ds); Object target = metadata.getMaterialization(insert.getGroup().getMetadataID()); if (target != null) { GroupSymbol newGroup = new GroupSymbol(metadata.getFullName(target));
DeclareStatement ds = new DeclareStatement(val, DataTypeManager.DefaultDataTypes.INTEGER, rowCount); block.addStatement(ds); Object target = metadata.getMaterialization(insert.getGroup().getMetadataID()); if (target != null) { GroupSymbol newGroup = new GroupSymbol(metadata.getFullName(target));
DeclareStatement ds = new DeclareStatement(val, DataTypeManager.DefaultDataTypes.INTEGER, rowCount); block.addStatement(ds); Object target = metadata.getMaterialization(insert.getGroup().getMetadataID()); if (target != null) { GroupSymbol newGroup = new GroupSymbol(metadata.getFullName(target));
block.addStatement(ds); final Object gid = update.getGroup().getMetadataID(); Object target = metadata.getMaterialization(gid); if (target != null) { final GroupSymbol newGroup = new GroupSymbol(metadata.getFullName(target));
block.addStatement(ds); final Object gid = update.getGroup().getMetadataID(); Object target = metadata.getMaterialization(gid); if (target != null) { final GroupSymbol newGroup = new GroupSymbol(metadata.getFullName(target));