Question: Complete the TODO in below java code: @Override public boolean insert ( Tuple rec ) { / / check primary key if ( schema .
Complete the TODO in below java code: @Override
public boolean insertTuple rec
check primary key
if schemagetKeynull
Tuple t lookuprecgetKey;
if t null
return false; duplicate primary key
TODO
find empty space for row
write the tuple to the file
set space occupied in the bitmap
for int i ; i indexes.length; i
if indexesi null
TODO in lab
return true;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
