(self)
Returns a generator of all (ID, encoded value) pairs in the matcher.

        What this method returns for a matcher that has already read some
        postings (whether it only yields the remaining postings or all postings
        from the beginning) is undefined, so it's best to only use this method
        on fresh matchers.
Returns a generator of all (ID, encoded value) pairs in the matcher.
Returns a generator of all ( ID encoded value ) pairs in the matcher .
def all_items(self):
        """Returns a generator of all (ID, encoded value) pairs in the matcher.

        What this method returns for a matcher that has already read some
        postings (whether it only yields the remaining postings or all postings
        from the beginning) is undefined, so it's best to only use this method
        on fresh matchers.
        """

        i = 0
        m = self
        while self.is_active():
            yield (m.id(), m.value())
            m.next()
            i += 1
            if i == 10:
                m = m.replace()
                i = 0
def all_items ( self ) : i = 0 m = self while self . is_active ( ) : yield ( m . id ( ) , m . value ( ) ) m . next ( ) i += 1 if i == 10 : m = m . replace ( ) i = 0