1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition; 2 3 import com.daffodilwoods.daffodildb.server.sql99.common.*; 4 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*; 5 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.*; 6 import com.daffodilwoods.database.resource.*; 7 8 20 21 public class BVEAggregatePlan implements ExecutionPlanConstants, _BVEAggregatePlan { 22 26 private booleanvalueexpression aggregateCondition; 27 28 public BVEAggregatePlan() { 29 } 30 31 public BVEAggregatePlan(booleanvalueexpression aggregateCondition) { 32 this.aggregateCondition = aggregateCondition; 33 } 34 39 public void setAggregateCondition(booleanvalueexpression aggregateCondition) throws DException { 40 this.aggregateCondition = aggregateCondition; 41 } 42 public booleanvalueexpression getAggregateCondition() throws DException { 43 return this.aggregateCondition; 44 } 45 50 public int getType() throws DException { 51 return BVEConstants.BVEAGGREGATEPLAN; 52 } 53 public booleanvalueexpression getRemainingCondition() throws com.daffodilwoods.database.resource.DException { 54 return null; 55 } 56 57 public _AllTablesJoinRelation getAllTableJoinRelation() throws com.daffodilwoods.database.resource.DException { 58 return null; 59 } 60 61 public _BVESingleTablePlan[] getBVESingleTablePlans() throws com.daffodilwoods.database.resource.DException { 62 return null; 63 } 64 65 public void setBVESingleTablePlans(_BVESingleTablePlan[] bveSingleTablePlans) throws DException { 66 throw new UnsupportedOperationException (); 67 } 68 69 public void setRemainingCondition(booleanvalueexpression remainingCondition) throws DException { 70 throw new UnsupportedOperationException (); 71 } 72 73 public TableDetails[] getTableDetails() throws DException { 74 throw new java.lang.UnsupportedOperationException ("Method getTableNames() not yet implemented."); 75 } 76 77 84 public void addAggregateCondition(booleanvalueexpression aggregateCondition) throws DException { 85 this.aggregateCondition = BVEPlanMerger.addAndConditions(this.aggregateCondition, aggregateCondition); 86 } 87 88 public String toString() { 89 String str = "BVEAGGREGATEPLAN"; 90 if (aggregateCondition != null) { 91 str += "[" + aggregateCondition + "]"; 92 } 93 return str; 94 } 95 96 97 } 98 | Popular Tags |