Project

General

Profile

1
import uuid
2
from eu.dnetlib.exporter.dataciteExporter import *
3

    
4
class ScrollResult():
5

    
6
    def generate_scroll(self, timestamp=None, page_size=None, only_active=True ):
7
        self.id = uuid.uuid4()
8
        self.timestamp = None
9
        if timestamp:
10
            self.timestamp = int(timestamp)
11
        self.isActive = only_active        
12
        self.scroll_generator = scan_index(timestamp=self.timestamp,active=self.isActive, scroll_id=self.id, page_size= page_size)
13

    
14
    
15
    def next_page(self):
16
        return next(self.scroll_generator)
17

    
18

    
19

    
(1-1/3)