| 1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition; 2 3 import java.util.*; 4 import com.daffodilwoods.daffodildb.server.sql99.common.*; 5 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*; 6 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.*; 7 import com.daffodilwoods.daffodildb.server.sql99.expression.rowvalueexpression.*; 8 import com.daffodilwoods.daffodildb.server.sql99.utils.*; 9 import com.daffodilwoods.database.resource.*; 10 21 public class JoinPredicate extends PredicateAbstract implements predicate { 22 25 private booleanvalueexpression condition; 26 27 public JoinPredicate(booleanvalueexpression condition0) { 28 condition = condition0; 29 } 30 36 public boolean checkForSubQuery() throws DException { 37 return condition.checkForSubQuery(); 38 } 39 45 public _QualifiedBVE getQualifiedBVE(TableDetails[] tableDetails) throws DException { 46 throw new DException("DSE565", new Object [] {"getQualifiedBVE()"}); 47 } 48 49 public void getTablesIncluded(ArrayList aList) throws DException { 50 throw new DException("DSE565", new Object [] {"getTablesIncluded(ArrayList aList)"}); 51 } 52 public void setColumnPredicates(_AllColumnPredicates allColumnPredicates) throws DException { 53 throw new DException("DSE565", new Object [] {"execute()"}); 54 } 55 56 public ParameterInfo[] getParameterInfo() throws DException { 57 throw new DException("DSE565", new Object [] {"getParameterInfo()"}); 58 } 59 public com.daffodilwoods.daffodildb.server.sql99.utils._Reference[] checkSemantic(com.daffodilwoods.daffodildb.server.serversystem._ServerSession parent) throws DException { 60 throw new DException("DSE565", new Object [] {"checkSemantic(queryspecification parent)"}); 61 } 62 66 67 public double getCost(long rowCount, boolean index) throws DException { 68 return condition.getCost(rowCount, index); 69 } 70 71 public Object run(Object object) throws DException { 72 return condition.run(object); 73 } 74 75 public String toString() { 76 return condition.toString(); 77 } 78 84 public booleanvalueexpression getCondition() throws DException { 85 return condition; 86 } 87 88 93 public AbstractRowValueExpression[] getChilds() { 94 AbstractRowValueExpression[] childs = new AbstractRowValueExpression[] { (AbstractRowValueExpression) condition}; 95 return childs; 96 } 97 98 public void setDefaultValues(_VariableValueOperations variableValueOperations) throws DException { 99 } 100 101 108 public long getEstimatedRows(long noOfRows) throws DException { 109 return condition.getEstimatedRows(noOfRows); 110 } 111 112 113 118 public int getPredicateType() throws DException { 119 return OperatorConstants.JOINCOMPARISONPREDICATE; 120 } 121 } 122 | Popular Tags |