Ben Johnson
343dd23ee7
refactor map functions to use list of values
...
This commit changes `tsdb.mapFunc` to use `tsdb.MapInput` instead
of an iterator. This will make it easier and faster to pass blocks
of values from the new storage engine into the engine.
2015-09-29 14:00:33 -06:00
Cory LaNou
842b36f30f
godoc
2015-09-23 15:52:44 -05:00
Cory LaNou
715e3d8d3c
add comment to clarify
2015-09-23 15:49:17 -05:00
Cory LaNou
d6ee542083
SelectFilterFields -> SelectWhereFields
2015-09-23 15:47:12 -05:00
Cory LaNou
b2474c9abf
reduce arguments to MapTopBottom
2015-09-23 15:44:36 -05:00
Cory LaNou
104c049a53
fix typo
2015-09-23 15:26:13 -05:00
Cory LaNou
81ad1f87a4
refactor MapTopBottom signature
2015-09-23 10:53:21 -05:00
Cory LaNou
7c3a542e13
revert signatures for mean/sum map funcs
2015-09-23 10:32:00 -05:00
Cory LaNou
6b19e3dd9c
minor refactorings
2015-09-23 09:47:24 -05:00
Cory LaNou
b1becfbcfc
more tests, simplify mapFunc signatures
2015-09-23 09:27:19 -05:00
Cory LaNou
78bc740434
full support for min/max/first/last
2015-09-23 09:03:57 -05:00
Ben Johnson
8e27cf1fd8
Merge remote-tracking branch 'upstream/master' into refactor-select-mapper
...
Conflicts:
tsdb/store.go
2015-09-22 13:58:24 -06:00
dgnorton
410eb4ece4
Merge pull request #3852 from influxdb/dmq-show-tag-keys
...
convert SHOW TAG KEYS to distributed query
2015-09-22 15:28:08 -04:00
Ben Johnson
96715d7d90
rename Cursor.Seek() to Cursor.SeekTo()
2015-09-22 13:23:16 -06:00
Ben Johnson
56cb2fae5d
fix integration tests
2015-09-22 13:10:13 -06:00
Ben Johnson
649663ca15
fix tests
2015-09-22 13:10:13 -06:00
Ben Johnson
b213ddad78
refactor cursor
2015-09-22 13:10:12 -06:00
Ben Johnson
a5269e9cc7
rename direction to ascending.
2015-09-22 13:09:26 -06:00
Ben Johnson
1b8b625787
refactor SelectMapper
2015-09-22 13:09:26 -06:00
Ben Johnson
0883182798
simplify select mapper stmt
2015-09-22 12:27:14 -06:00
Nathaniel Cook
79e6e3e07a
Merge pull request #4196 from influxdb/export_iterator
...
export tsdb.Iterator
2015-09-22 11:09:08 -06:00
Philip O'Toole
d96119cc01
Correct MapperValueAsJSON comment
...
[ci skip]
2015-09-22 09:49:57 -07:00
Nathaniel Cook
007508bde0
export tsdb.Iterator
2015-09-22 10:29:49 -06:00
Philip O'Toole
e43ad09f44
Perform custom unmarshal during unit tests
2015-09-22 00:24:43 -07:00
Philip O'Toole
56193be05c
Simple tests work
2015-09-21 22:50:29 -07:00
Philip O'Toole
07c9d40b87
Merge pull request #4179 from mark-rushakoff/sorted-measurements-by-tag-filters
...
Sort DatabaseIndex.measurementsByTagFilters result
2015-09-21 11:19:37 -07:00
David Norton
e176d2c0dd
make SHOW TAG KEYS support (S)LIMIT & (S)OFFSET
2015-09-21 13:05:53 -04:00
David Norton
8e236532e8
delete unused executeShowTagKeysStatement func
2015-09-21 11:32:13 -04:00
David Norton
8bd2408320
convert SHOW TAG KEYS to distributed query
2015-09-21 11:30:51 -04:00
Daniel Morsing
57b211a538
Merge branch 'master' into bottom
...
resolve changelog conflict
2015-09-21 12:31:29 +00:00
Mark Rushakoff
85275e7d59
Sort DatabaseIndex.measurementsByTagFilters result
...
Fixes #4118
2015-09-20 14:37:27 -07:00
Daniel Morsing
5b24841973
rename topReduceOut
...
Also, gofmt
2015-09-18 15:04:09 +00:00
Daniel Morsing
b07c36288d
Merge pull request #4130 from influxdb/topopt
...
optimize top queries
2015-09-18 14:40:57 +00:00
Daniel Morsing
b5fc2a96b1
Implement bottom
...
After the rework of the ordering for top, this was just a matter
of adding a flag telling the minheap which way the values should
be sorted.
2015-09-18 14:39:46 +00:00
Daniel Morsing
ce1dc840ef
Better documentation for typeCompare.
2015-09-18 13:11:46 +00:00
Philip O'Toole
f9bfb2fcc5
Merge pull request #4142 from influxdb/nil_partition
...
If partition is nil return on Close immediately
2015-09-17 16:37:37 -07:00
Cory LaNou
72f6f7d268
Merge pull request #4134 from influxdb/issue-3447
...
Refactor Points and Rows to dedicated packages
2015-09-17 15:27:48 -05:00
Daniel Morsing
d9e4b3b851
split comparison into 2 stages, one for type and one for value
...
Also, fix it so that heap inserts sort on tags as well.
This change makes it easier to implement bottom and also fixes the test that the previous change broke.
2015-09-17 14:59:02 +00:00
Philip O'Toole
f73bc6ff19
Merge pull request #4140 from influxdb/engine_config
...
Make engine configurable
2015-09-16 21:17:43 -07:00
Philip O'Toole
5e991f1703
If partition is nil return on Close immediately
2015-09-16 19:38:02 -07:00
Philip O'Toole
7b1a4e6700
Control whether each query should be logged
...
Fixes issue #4138
2015-09-16 19:26:23 -07:00
Philip O'Toole
e4fde993f1
Make engine configurable
2015-09-16 19:09:25 -07:00
Cory LaNou
ba830be3b9
actually move influxql.Row* -> models.Row*
2015-09-16 16:32:50 -05:00
Cory LaNou
d19a510ad2
refactor Points and Rows to dedicated packages
2015-09-16 15:33:08 -05:00
Cameron Sparr
6d4319d244
Add function to tsdb.point to get line-protocol string in the correct units
2015-09-16 10:53:59 -07:00
Daniel Morsing
59307b8b78
optimize top queries
...
Instead of rounding up the points, sorting and then slicing, keep a
heap that allows us to quickly see if the point needs to be in the
set. This cuts a top query on a dataset of 8 million points from 35
seconds to 11 seconds.
2015-09-16 17:02:44 +00:00
Cory LaNou
5395ac7634
Period in field name that matches measurement fails. Fixes #3457
2015-09-15 16:26:39 -05:00
Daniel Morsing
51b22f180f
simplify the sorting for top/distinct.
...
Instead of using closures and 2 different sort routines, have an
interface compare method that makes it easy to switch directions
for comparisons.
Note that this changes the sort order of distinct to match that of
top. While it is a change, I don't think it will break any code. The
important thing for distinct is just that the ordering is absolute,
not what the order is.
2015-09-15 15:03:31 +00:00
Philip O'Toole
93f1fcb38c
Merge pull request #4073 from influxdb/wal_stat_fixes
...
WAL statistics fixes
2015-09-14 07:10:26 -07:00
Daniel Morsing
eb65f50593
gofmt
2015-09-11 14:41:59 +00:00