Commit Graph

46 Commits (b6691e035c9c851cf319f390f6a26e8db6ebe860)

Author SHA1 Message Date
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