Exemplo n.º 1
0
 def next(self):
     """Get the next data from iterator, turn it into a Record object and return."""
     d = PostgresIter.next(self)
     data = d[1]
     data = data.replace('\\000\\001', nonTextToken)
     data = data.replace('\\012', '\n')
     rec = self.store._process_data(self.session, d[0], data)
     return rec
Exemplo n.º 2
0
 def next(self):
     """Get the next data from iterator, turn it into a Record object and return."""
     d = PostgresIter.next(self)
     data = d[1]
     data = data.replace('\\000\\001', nonTextToken)
     data = data.replace('\\012', '\n')
     rec = self.store._process_data(self.session, d[0], data)
     return rec
Exemplo n.º 3
0
    def next(self):
        """Get the next data from iterator.

        Turn the data into a Document object and return.
        """
        d = PostgresIter.next(self)
        data = d[1]
        doc = self.store._process_data(self.session, d[0], data)
        return doc
Exemplo n.º 4
0
    def next(self):
        """Get the next data from iterator.

        Turn the data into a Document object and return.
        """
        d = PostgresIter.next(self)
        data = d[1]
        doc = self.store._process_data(self.session, d[0], data)
        return doc