Writes index into the reverse-index slot for nid. nid must be live. Does not touch the order buffer.
index
nid
void setIndexByNid(int nid, int index) { _indexByNid[nid] = index; }