Question: Please help complete java code. I have already Condition class. package heapdb.query; import heapdb.Tuple; / * * * A condition of the form colName =

Please help complete java code. I have already Condition class. package heapdb.query;
import heapdb.Tuple;
/**
* A condition of the form colName = value.
*
* @author Glenn
*
*/
public class EqCondition extends Condition {
private String colName;
private Object value;
public EqCondition(String colName, Object value){
this.colName = colName;
this.value = value;
}
public String getColumnName(){
return colName;
}
public Object getValue(){
return value;
}
@Override
public Boolean eval(Tuple tuple){
// TODO compare the value of the tuple column to the value variable.
throw new UnsupportedOperationException();
}
@Override
public String toString(){
return colName+"="+value;
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!