getEstimatedExtentNid method

double getEstimatedExtentNid(
  1. int nid
)

Estimated full extent for the live nid, measured value when available, defaultExtent otherwise. Hot-path equivalent of getEstimatedExtent that avoids the key-to-nid hash. Caller must guarantee nid is live and within range.

Implementation

double getEstimatedExtentNid(int nid) {
  // Direct nid-indexed read: the store is nid-keyed, so no key
  // resolution (and no string hash) is involved at all.
  return _anim.fullExtentOfNid(nid) ?? defaultExtent;
}