returnedValue = removedTuple.getKey();
}
}
catch ( IOException e )
{
throw new BTreeOperationException( e );
}
if ( valueBtree.getNbElems() == 1 )
{
try
{
valueArray = ( V[] ) Array.newInstance( valueSerializer.getType(), 1 );
valueArray[0] = valueBtree.browse().next().getKey();
nbArrayElems = 1;
valueBtree.close();
valueBtree = null;
}
catch ( EndOfFileExceededException e )
{
throw new BTreeOperationException( e );
}
catch ( IOException e )
{
throw new BTreeOperationException( e );
}
catch ( KeyNotFoundException knfe )
{
throw new BTreeOperationException( knfe );
}
}
return returnedValue;
}