Although currently these two hooks are only used to implement debugging assertions introduced by the Spark Replay Debugger, their semantics are quite general.  For example, developers can use them to debug their own RDD classes.  That's why I left them `public`.