WL#7168: API for estimates for how much of table and index data that is in memory buffer

Affects: Server-Prototype Only   —   Status: Complete

For storage engines that cache parts of the database in a main memory
buffer, the time to read data from a table or index will be very
dependent on whether the data is already in the memory buffer or has
to be read from disk.

In order to take this into account, the code for computing cost
estimates for data access needs to know whether data is in memory or will
be read from disk. This worklog will extend the handler with a new API
for providing estimates for where table and index data is stored. It
will also contain a default implementation that will be used if the
storage engine does not provide this information.

Separate worklogs should be created for the individual storage engines
to provide the estimates and for making them available to the handler.
The estimates will be used by the cost estimation functions that will
be implemented as part of improving the optimizer cost model.