def to_table_data(self):
self._validate_source_data()<EOL>attr_name_set = set()<EOL>for json_record in self._buffer:<EOL><INDENT>attr_name_set = attr_name_set.union(six.viewkeys(json_record))<EOL><DEDENT>headers = sorted(attr_name_set)<EOL>self._loader.inc_table_count()<EOL>yield TableData(<EOL>self._make_table_name(),<EOL>headers,<EOL>self._buffer,<EOL>dp_extractor=self._loader.dp_extractor,<EOL>type_hints=self._extract_type_hints(headers),<EOL>)<EOL>
:raises ValueError:
:raises pytablereader.error.ValidationError: