public QueryMetadataInterface getSessionMetadata() { if (isSession()) { TempMetadataAdapter tma = new TempMetadataAdapter(new BasicQueryMetadata(), this.tempStore); tma.session = true; return tma; } return this.actualMetadata.getSessionMetadata(); }
public QueryMetadataInterface getSessionMetadata() { if (isSession()) { TempMetadataAdapter tma = new TempMetadataAdapter(new BasicQueryMetadata(), this.tempStore); tma.session = true; return tma; } return this.actualMetadata.getSessionMetadata(); }
public QueryMetadataInterface getSessionMetadata() { if (isSession()) { TempMetadataAdapter tma = new TempMetadataAdapter(new BasicQueryMetadata(), this.tempStore); tma.session = true; return tma; } return this.actualMetadata.getSessionMetadata(); }
@Override protected QueryMetadataInterface createDesignTimeMetadata() { if (isSession()) { return new TempMetadataAdapter(this.actualMetadata.getDesignTimeMetadata(), new TempMetadataStore()); } return new TempMetadataAdapter(this.actualMetadata.getDesignTimeMetadata(), tempStore, materializationTables, queryNodes); }
@Override protected QueryMetadataInterface createDesignTimeMetadata() { if (isSession()) { return new TempMetadataAdapter(this.actualMetadata.getDesignTimeMetadata(), new TempMetadataStore()); } return new TempMetadataAdapter(this.actualMetadata.getDesignTimeMetadata(), tempStore, materializationTables, queryNodes); }
@Override protected QueryMetadataInterface createDesignTimeMetadata() { if (isSession()) { return new TempMetadataAdapter(this.actualMetadata.getDesignTimeMetadata(), new TempMetadataStore()); } return new TempMetadataAdapter(this.actualMetadata.getDesignTimeMetadata(), tempStore, materializationTables, queryNodes); }
public float getCardinality(Object groupID) throws TeiidComponentException, QueryMetadataException{ groupID = getActualMetadataId(groupID); if(groupID instanceof TempMetadataID) { return ((TempMetadataID)groupID).getCardinality(); } if (this.isSession() && groupID instanceof Table) { Table t = (Table)groupID; if (t.getTableType() == Table.Type.TemporaryTable && t.isVirtual()) { TempMetadataID id = this.tempStore.getTempGroupID(t.getName()); if (id != null) { return id.getCardinality(); } } } return this.actualMetadata.getCardinality(groupID); }
public float getCardinality(Object groupID) throws TeiidComponentException, QueryMetadataException{ groupID = getActualMetadataId(groupID); if(groupID instanceof TempMetadataID) { return ((TempMetadataID)groupID).getCardinality(); } if (this.isSession() && groupID instanceof Table) { Table t = (Table)groupID; if (t.getTableType() == Table.Type.TemporaryTable && t.isVirtual()) { TempMetadataID id = this.tempStore.getTempGroupID(t.getName()); if (id != null) { return id.getCardinality(); } } } return this.actualMetadata.getCardinality(groupID); }
public float getCardinality(Object groupID) throws TeiidComponentException, QueryMetadataException{ groupID = getActualMetadataId(groupID); if(groupID instanceof TempMetadataID) { return ((TempMetadataID)groupID).getCardinality(); } if (this.isSession() && groupID instanceof Table) { Table t = (Table)groupID; if (t.getTableType() == Table.Type.TemporaryTable && t.isVirtual()) { TempMetadataID id = this.tempStore.getTempGroupID(t.getName()); if (id != null) { return id.getCardinality(); } } } return this.actualMetadata.getCardinality(groupID); }