def iter_query_indexes(self):
if self._table.range_key is None:<EOL><INDENT>range_key = None<EOL><DEDENT>else:<EOL><INDENT>range_key = self._table.range_key.name<EOL><DEDENT>yield QueryIndex("<STR_LIT>", True, self._table.hash_key.name, range_key)<EOL>for index in self._table.indexes:<EOL><INDENT>yield QueryIndex.from_table_index(self._table, index)<EOL><DEDENT>for index in self._table.global_indexes:<EOL><INDENT>yield QueryIndex.from_table_index(self._table, index)<EOL><DEDENT>
Iterator that constructs :class:`~dql.models.QueryIndex` for all global
and local indexes, and a special one for the default table hash & range
key with the name 'TABLE'