public AppendOnlyLogFactory failIfDataFormatVersionNotMatch(int expectedDataVersion) {
    return new AppendOnlyLogFactory(
      pageSize,
      /*ensureDataVersion: */ true, expectedDataVersion,
      failInsteadOfRecovery, eagerlyCheckFileCompatibility, cleanFileIfIncompatible
    );
  }
public AppendOnlyLogFactory failIfDataFormatVersionNotMatch(int expectedDataVersion)