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); }
updated = info.getUpdateTime()==-1?null:new Timestamp(info.getUpdateTime()); if (id != null) { cardinaltity = (int)Math.min(Integer.MAX_VALUE, id.getCardinality());
updated = info.getUpdateTime()==-1?null:new Timestamp(info.getUpdateTime()); if (id != null) { cardinaltity = (int)Math.min(Integer.MAX_VALUE, id.getCardinality());
updated = info.getUpdateTime()==-1?null:new Timestamp(info.getUpdateTime()); if (id != null) { cardinaltity = (int)Math.min(Integer.MAX_VALUE, id.getCardinality());