Esempio 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
Esempio 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
Esempio 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
Esempio 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