add a RetainStrategy which can be used to mark rows to be retained