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