private void writeAddressRangeRecords(DBHandle dbh, String tableName, AddressSetView set)
			throws IOException {
		if (!set.isEmpty()) {
			Table table = dbh.createTable(tableName, STORED_ADDRESS_RANGE_SCHEMA);
			DBRecord rec = STORED_ADDRESS_RANGE_SCHEMA.createRecord(0);
			int key = 1;
			for (KeyRange range : addrMap.getKeyRanges(set, false, false)) {
				rec.setKey(key++);
				rec.setLongValue(0, range.minKey);
				rec.setLongValue(1, range.maxKey);
				table.putRecord(rec);
			}
		}
	}
Construct a new ProgramChangeSet.
@param addrMap the address map.
@param numUndos the number of undo change sets to track.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramDBChangeSet.java