Question: Complete the TODO in below java code: @Override public boolean delete ( Object key ) { String keyColumnName = schema.getKey ( ) ; if (

Complete the TODO in below java code: @Override
public boolean delete(Object key){
String keyColumnName = schema.getKey();
if (keyColumnName == null)
throw new RuntimeException("Cannot delete when schema does not have a key.");
// TODO
// lookup the row
// if not found, return false
// mark the space free in the bitmap
for (int i =0; i < indexes.length; i++){
if (indexes[i]!= null){
// TODO in lab14.
}
}
throw new UnsupportedOperationException();
}

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!