diff --git a/README.md b/README.md index d641c902c95c3d0d322a765215a7f14212248d88..44347358a21f8132d2974f7da083836c03fc99a7 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,9 @@ Then copy your resulting wheel and install it via pip on the target system. * added support for storing metadata as minijson * this will be enabled by default is minijson is importable * fixed minor compiler warnings +* `TimeSeries.iterate_range` will accept a parameter called + `direct_bytes` for compatibility with `VarlenSeries`. + It's value is ignored. ## v0.5.4 diff --git a/setup.cfg b/setup.cfg index 3fde48a995a33e7366d5d911ccc28b274fbbd4d0..6266526cc38b423e2698506789abbe985506e53f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ # coding: utf-8 [metadata] name = tempsdb -version = 0.6a2 +version = 0.6a3 long-description = file: README.md long-description-content-type = text/markdown; charset=UTF-8 license_files = LICENSE diff --git a/tempsdb/series.pxd b/tempsdb/series.pxd index 98da3b16bd2f443e9bd29042d38cdf29570442df..539062a6f2d6fe4d6d4d0cfe69c4e969fe1be3a5 100644 --- a/tempsdb/series.pxd +++ b/tempsdb/series.pxd @@ -37,7 +37,8 @@ cdef class TimeSeries: cpdef int append_padded(self, unsigned long long timestamp, bytes data) except -1 cpdef int sync(self) except -1 cpdef int close_chunks(self) except -1 - cpdef Iterator iterate_range(self, unsigned long long start, unsigned long long stop) + cpdef Iterator iterate_range(self, unsigned long long start, unsigned long long stop, + bint direct_bytes=*) cdef unsigned int get_index_of_chunk_for(self, unsigned long long timestamp) cpdef int trim(self, unsigned long long timestamp) except -1 cpdef unsigned long open_chunks_mmap_size(self) diff --git a/tempsdb/series.pyx b/tempsdb/series.pyx index 7fad4e459d9aaf528420849fe8ea2b327a4c6352..3c60ab2ff9447fe86db08c8a6ca7fb43072a8d26 100644 --- a/tempsdb/series.pyx +++ b/tempsdb/series.pyx @@ -309,12 +309,14 @@ cdef class TimeSeries: except IndexError: return len(self.chunks)-1 - cpdef Iterator iterate_range(self, unsigned long long start, unsigned long long stop): + cpdef Iterator iterate_range(self, unsigned long long start, unsigned long long stop, + bint direct_bytes=True): """ Return an iterator through collected data with given timestamps. :param start: timestamp to start at :param stop: timestamp to stop at + :param direct_bytes: for compatibility with VarlenSeries. Ignored. :return: an iterator with the data :raises ValueError: start larger than stop """