Commit Graph

119 Commits (744e6a2aec91c40c534118987f5c89d911d0a4dc)

Author SHA1 Message Date
David Norton 2b84113487 issue #1423: wire up show field keys 2015-02-04 10:59:47 -05:00
David Norton a8b86dc29b golint cleanup 2015-02-01 13:47:48 -05:00
Philip O'Toole 35f853a2db Look up field by ID by direct indexing
There is no need to iterate over the entire slice since IDs increase
lock-step with the position in the underlying Field array, so make this
lookup constant-time.
2015-01-30 23:21:05 -08:00
David Norton f827bf324a issue #1412: wire up show tag values 2015-01-29 15:01:25 -05:00
David Norton 3a4d12aa76 wip 2015-01-28 03:45:21 -05:00
David Norton 16eaae5fbd implement SHOW MEASUREMENTS 2015-01-28 00:51:09 -05:00
David Norton b50e4cc514 implement SHOW SERIES 2015-01-28 00:29:14 -05:00
Paul Dix 74e1bb99b6 Fix failures after rebase 2015-01-27 20:29:15 -05:00
Paul Dix f2419caeb5 Wire up field expression evaluation 2015-01-27 20:27:19 -05:00
Paul Dix c2ded241ea WIP: wire up group bys and pretty much the whole shebang 2015-01-27 20:27:19 -05:00
Ben Johnson 1eda0ffcb9 Refactoring query engine. 2015-01-27 20:26:31 -05:00
Ben Johnson d340ffcf3c Expression expansion and reduction. 2015-01-27 20:26:31 -05:00
djherbis ea6a87466e added missing bounds check to SeriesIDs Intersect 2015-01-22 21:22:30 -05:00
Ben Johnson 4a03f09e9d Code review fixes. 2015-01-15 12:03:31 -07:00
Ben Johnson 2f2300f201 Code review fixes. 2015-01-15 10:35:42 -07:00
Ben Johnson 0e2aae61e3 Basic query engine integration. 2015-01-14 16:44:09 -07:00
Ben Johnson 47cd03f3d3 Partial engine integration. 2015-01-13 10:16:43 -07:00
Ben Johnson ff470047ef Code review fixes. 2015-01-12 13:10:26 -07:00
Ben Johnson 5652e12c63 Add write series. 2015-01-10 13:29:43 -07:00
Ben Johnson 6912c1415d Merge branch 'master' of https://github.com/influxdb/influxdb into write-series
Conflicts:
	server.go
2015-01-10 10:03:37 -07:00
Ben Johnson 946007916c Partial write series code. 2015-01-10 08:48:50 -07:00
David Norton c39d012a23 go vet cleanup 2015-01-09 20:08:55 -05:00
Paul Dix 70ad990208 Remove series id to measurement map, put in series object 2015-01-02 14:24:48 -05:00
Paul Dix b6691e035c More style updates 2015-01-02 14:13:45 -05:00
Paul Dix b42def229a Update database style based on feedback 2015-01-02 14:02:02 -05:00
Paul Dix d5548aa136 Refactor Index into database
* Pull database, Measurement, Series, ReplicationPolicy, and Shard into database.go to keep things manageable and clean
* Remove the locks from the index method. The server will handle thread safety for database objects
* Move the Index tests into database_test.go and in the influxdb package because we're not exporting database
2014-12-31 18:55:45 -05:00
Ben Johnson b25ced9b8e Refactor database methods into server. 2014-12-22 23:18:05 -07:00
Paul Dix 639e25e2ce Fix build, cleanup database measurements test. 2014-12-22 07:35:29 -05:00
Paul Dix 5ba05c8b84 Fix wrong lock on create series, rename Series to Measurements for consistency 2014-12-22 07:35:29 -05:00
Paul Dix 4d4b9656c7 Add Fields to Measurement.
* Add Field
* Changes series on meta to measurements for consistency
* Update metastore to store serialized Series object instead of tags
2014-12-22 07:35:29 -05:00
Paul Dix f6948b14c8 Update Database and Metastore to keep series info
* Change database to keep all data under a bucket in bolt
* Subbucket under the database to keep tagbytes to ids
* Subbucket under the database to keep ids to tag values
2014-12-22 07:35:29 -05:00
Paul Dix 6f5643a9ed Remove the old series cruft from database and metastore 2014-12-22 07:35:29 -05:00
Ben Johnson d69691e6c5 Refactor planner. 2014-12-09 08:45:29 -07:00
Ben Johnson c77191b282 Rebuilding engine in influxql. 2014-12-07 22:08:39 -07:00
Ben Johnson d34bc1f57f Add AST string encoding, substatement extraction. 2014-12-06 11:17:58 -07:00
Paul Dix 309d6b90c5 Refactor CreateShardsIfNotExist to take policy name 2014-12-03 15:52:38 -05:00
Paul Dix 40cb058370 Refactor CreateShardIfNotExist
* make createShardIfNotExist non-exported function
* make CreateShardsIfNotExist to create shards for a given block of time. Makes it so we don't need to expose series ids on exported functions.
2014-12-03 15:36:54 -05:00
Paul Dix 3190840f4b gofmt 2014-12-03 11:32:53 -05:00
Paul Dix 83c06ea5b7 Make ShardBySeriesTimestamp not exported 2014-12-03 10:38:32 -05:00
Paul Dix ec96fe2eb9 Change getSeriesId to seriesID to be idomatic 2014-12-03 10:32:39 -05:00
Paul Dix bbc2d2e477 Update CreateShardIfNotExists to check for shard first 2014-12-03 10:12:20 -05:00
Paul Dix 20098bbd5a Update CreateSeriesIfNotExist to check for existence 2014-12-03 10:10:27 -05:00
Paul Dix bae2ce8150 Update write series
* don't block for replication when writing
* update db.CreateShardIfNotExists to return the shard
2014-12-03 07:27:34 -05:00
Paul Dix 2f362e557d Make writeSeries create shards if necessary and write data through. 2014-11-30 18:00:50 -05:00
Paul Dix c008594b0d Finish up creating new series.
* setSeriesId changed to createSeriesIfNotExists
* changed tagsToBytes implementation to be more compact and accunt for maps not having keys in sorted order
* remove maxFieldId from database and use a sequence on the bucket for the db in the series bucket instead
2014-11-28 19:50:02 -05:00
Paul Dix 8d9a063cc2 Implement setting of new series id 2014-11-28 14:14:04 -05:00
Paul Dix d08bc0297d WIP: Implement writes series data on database
* Add setSeriesId to raft, metastore
* Add methods to get seriesIds

[ci skip]
2014-11-26 11:26:18 -05:00
David Norton 3478866fcb Wire up GET /db/:db/users/:user and use Matcher
In addition to wiring up the endpoint, this commit also changes the
user endpoints to use two []*Matcher for readFrom and writeTo instead
of a single []string for permissions.
2014-11-26 11:02:17 -05:00
David Norton f34ed511c0 Wire up POST /db/:db/users 2014-11-26 09:36:43 -05:00
David Norton 5872f8ac27 Make var names consistent for RetentionPolicy 2014-11-26 08:41:34 -05:00
David Norton b8c6b5773a Use append instead of index 2014-11-26 08:41:33 -05:00
David Norton 136324a4be Fix CreateShardIfNotExists and spelling error 2014-11-26 08:41:33 -05:00
David Norton c251de96ed Wire up /db/:db/retention_policies 2014-11-26 08:41:33 -05:00
David Norton 82d147e9c4 Wire up /db/:db/shards 2014-11-26 08:41:33 -05:00
David Norton 0137f58f88 Use shards map instead of looping 2014-11-26 08:41:33 -05:00
Paul Dix 291360d42b Fix impl and test for setting default retention policy 2014-11-18 19:41:50 -05:00
Paul Dix 00e87488bd Minor edits to replace shard space with retention 2014-11-18 19:03:21 -05:00
Paul Dix 8788314e4d Add set default retention policy 2014-11-18 18:59:37 -05:00
Paul Dix 87f5ea1f6a Refactor ShardSpace to RetentionPolicy
* Remove regex since they will be written to or queried explicitly
* Rename retention to duration
* Remove duration
2014-11-18 17:57:10 -05:00
Ben Johnson 4858f58877 Change writeSeriesData() interface. 2014-11-18 08:03:26 -07:00
Ben Johnson 8c4bcfafb6 Change Database.WriteSeries() to accept multiple values. 2014-11-17 17:38:08 -07:00
Ben Johnson 0cc1818eaa Remove protobufs. 2014-11-17 17:23:21 -07:00
Ben Johnson 37ee2ac23c Remove engine, parser, and Makefile. 2014-11-17 15:54:35 -07:00
Ben Johnson f52c85a8a1 Query engine and parser integration into root pkg. 2014-11-09 19:55:53 -07:00
Ben Johnson b78d4f1329 Add basic query code into the database. 2014-11-06 20:18:36 -05:00
Ben Johnson c138aaaf58 Integrating query into shards. 2014-11-06 01:03:35 -05:00
Ben Johnson dcef4baeb1 Add bolt-backed metastore. 2014-11-05 00:32:17 -05:00
Ben Johnson 922931500f Intermediate commit. 2014-11-03 23:25:33 -05:00
Ben Johnson 31f981e804 Refactoring common, cluster, and protobuf. 2014-10-31 19:31:19 -06:00