def from_fd(cls, fd, **kwargs): """ Creates iterator result from fd """ result = cls(**kwargs) result.container = elliptics.IteratorResultContainer(fd) return result
def from_info(cls, fd, is_sorted, position, **kwargs): result = cls(**kwargs) result.container = elliptics.IteratorResultContainer( fd, is_sorted, position) return result