Exemplo n.º 1
0
 public void addQuery(Query q)
 {
     if (!isRootQuery(q)) {
         clusterQueryMapper.Add(q, new List<Query>());
     }
 }
Exemplo n.º 2
0
 /*
 * Check if one query subsumes another
 */
 public Boolean SubsumesOrEqual(Query q2)
 {
     return  SubsumesOrEqual(this.queryTables, q2.queryTables) //table check
             && SubsumesOrEqual(this.queryProjectedAttributes, q2.queryProjectedAttributes) //attribute check
             && (this.querySelectionAttribute.attributeName == null
                 || this.queryPercentSelection >= q2.queryPercentSelection); //selectivity check
 }
Exemplo n.º 3
0
 public bool isRootQuery(Query q)
 {
     return clusterQueryMapper.Keys.Contains(q);
 }