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
df48845a
Commit
df48845a
authored
4 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
added get_all_series
parent
2b26774d
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
-0
1 addition, 0 deletions
README.md
setup.py
+1
-1
1 addition, 1 deletion
setup.py
tempsdb/database.pxd
+1
-0
1 addition, 0 deletions
tempsdb/database.pxd
tempsdb/database.pyx
+11
-0
11 additions, 0 deletions
tempsdb/database.pyx
with
14 additions
and
1 deletion
README.md
+
1
−
0
View file @
df48845a
...
@@ -17,6 +17,7 @@ So no variable encoding for you!
...
@@ -17,6 +17,7 @@ So no variable encoding for you!
## v0.2
## v0.2
*
added
`get_open_series`
*
added
`get_open_series`
*
added
`get_all_series`
## v0.1
## v0.1
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
df48845a
...
@@ -21,7 +21,7 @@ def find_pyx(*path) -> tp.List[str]:
...
@@ -21,7 +21,7 @@ def find_pyx(*path) -> tp.List[str]:
#
#
setup
(
name
=
'
tempsdb
'
,
setup
(
name
=
'
tempsdb
'
,
version
=
'
0.2_a
2
'
,
version
=
'
0.2_a
3
'
,
packages
=
[
'
tempsdb
'
],
packages
=
[
'
tempsdb
'
],
install_requires
=
[
'
satella>=2.14.21
'
,
'
ujson
'
],
install_requires
=
[
'
satella>=2.14.21
'
,
'
ujson
'
],
ext_modules
=
build
([
Multibuild
(
'
tempsdb
'
,
find_pyx
(
'
tempsdb
'
)),
],
ext_modules
=
build
([
Multibuild
(
'
tempsdb
'
,
find_pyx
(
'
tempsdb
'
)),
],
...
...
This diff is collapsed.
Click to expand it.
tempsdb/database.pxd
+
1
−
0
View file @
df48845a
...
@@ -15,6 +15,7 @@ cdef class Database:
...
@@ -15,6 +15,7 @@ cdef class Database:
unsigned
long
entries_per_chunk
,
unsigned
long
entries_per_chunk
,
int
page_size
=*
)
int
page_size
=*
)
cpdef
list
get_open_series
(
self
)
cpdef
list
get_open_series
(
self
)
cpdef
list
get_all_series
(
self
)
cpdef
Database
create_database
(
str
path
)
cpdef
Database
create_database
(
str
path
)
This diff is collapsed.
Click to expand it.
tempsdb/database.pyx
+
11
−
0
View file @
df48845a
...
@@ -75,6 +75,17 @@ cdef class Database:
...
@@ -75,6 +75,17 @@ cdef class Database:
result
.
register_memory_pressure_manager
(
self
.
mpm
)
result
.
register_memory_pressure_manager
(
self
.
mpm
)
return
result
return
result
cpdef
list
get_all_series
(
self
):
"""
Stream all series available within this database
.. versionadded:: 0.2
:return: a list of series names
:rtype: tp.List[str]
"""
return
os
.
listdir
(
self
.
path
)
cpdef
TimeSeries
create_series
(
self
,
str
name
,
int
block_size
,
cpdef
TimeSeries
create_series
(
self
,
str
name
,
int
block_size
,
unsigned
long
entries_per_chunk
,
unsigned
long
entries_per_chunk
,
int
page_size
=
4096
):
int
page_size
=
4096
):
...
...
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