Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tempsdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
tempsdb
Commits
704ce18e
Commit
704ce18e
authored
4 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
add close_chunks
parent
8f696d6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
setup.py
+1
-1
1 addition, 1 deletion
setup.py
tempsdb/varlen.pxd
+1
-0
1 addition, 0 deletions
tempsdb/varlen.pxd
tempsdb/varlen.pyx
+9
-0
9 additions, 0 deletions
tempsdb/varlen.pyx
with
12 additions
and
2 deletions
README.md
+
1
−
1
View file @
704ce18e
...
@@ -54,7 +54,7 @@ Then copy your resulting wheel and install it via pip on the target system.
...
@@ -54,7 +54,7 @@ Then copy your resulting wheel and install it via pip on the target system.
## v0.5.1
## v0.5.1
*
_TBA_
*
added
`VarlenSeries.close_chunks`
## v0.5
## v0.5
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
704ce18e
...
@@ -23,7 +23,7 @@ if 'CI' in os.environ:
...
@@ -23,7 +23,7 @@ if 'CI' in os.environ:
setup
(
name
=
'
tempsdb
'
,
setup
(
name
=
'
tempsdb
'
,
version
=
'
0.5.1a
1
'
,
version
=
'
0.5.1a
2
'
,
packages
=
[
'
tempsdb
'
],
packages
=
[
'
tempsdb
'
],
install_requires
=
[
'
satella>=2.14.24
'
,
'
ujson
'
,
'
indexed_gzip
'
],
install_requires
=
[
'
satella>=2.14.24
'
,
'
ujson
'
,
'
indexed_gzip
'
],
ext_modules
=
build
([
Multibuild
(
'
tempsdb
'
,
find_pyx
(
'
tempsdb
'
),
**
ext_kwargs
),
],
ext_modules
=
build
([
Multibuild
(
'
tempsdb
'
,
find_pyx
(
'
tempsdb
'
),
**
ext_kwargs
),
],
...
...
This diff is collapsed.
Click to expand it.
tempsdb/varlen.pxd
+
1
−
0
View file @
704ce18e
...
@@ -24,6 +24,7 @@ cdef class VarlenSeries:
...
@@ -24,6 +24,7 @@ cdef class VarlenSeries:
cdef
int
get_length_for
(
self
,
int
index
)
cdef
int
get_length_for
(
self
,
int
index
)
cpdef
int
trim
(
self
,
unsigned
long
long
timestamp
)
except
-
1
cpdef
int
trim
(
self
,
unsigned
long
long
timestamp
)
except
-
1
cdef
int
add_series
(
self
)
except
-
1
cdef
int
add_series
(
self
)
except
-
1
cpdef
int
close_chunks
(
self
)
except
-
1
cdef
void
register_memory_pressure_manager
(
self
,
object
mpm
)
cdef
void
register_memory_pressure_manager
(
self
,
object
mpm
)
cpdef
int
append
(
self
,
unsigned
long
long
timestamp
,
bytes
data
)
except
-
1
cpdef
int
append
(
self
,
unsigned
long
long
timestamp
,
bytes
data
)
except
-
1
cpdef
long
long
get_maximum_length
(
self
)
except
-
1
cpdef
long
long
get_maximum_length
(
self
)
except
-
1
...
...
This diff is collapsed.
Click to expand it.
tempsdb/varlen.pyx
+
9
−
0
View file @
704ce18e
...
@@ -429,6 +429,15 @@ cdef class VarlenSeries:
...
@@ -429,6 +429,15 @@ cdef class VarlenSeries:
for
series
in
self
.
series
:
for
series
in
self
.
series
:
series
.
register_memory_pressure_manager
(
mpm
)
series
.
register_memory_pressure_manager
(
mpm
)
cpdef
int
close_chunks
(
self
)
except
-
1
:
"""
Close unnecessary chunks
"""
cdef
TimeSeries
series
for
series
in
self
.
series
:
series
.
close_chunks
()
return
0
cpdef
VarlenIterator
iterate_range
(
self
,
unsigned
long
long
start
,
unsigned
long
long
stop
,
cpdef
VarlenIterator
iterate_range
(
self
,
unsigned
long
long
start
,
unsigned
long
long
stop
,
bint
direct_bytes
=
False
):
bint
direct_bytes
=
False
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment