influxdb/influxdb — pull request #425 by flier (2014-04-09 08:52:16+00:00)
Title: Influxdb drop series base on time

support to drop series base on time, including HTTP api and test cases

```
test> select * from test
┌───────────────┬─────────────────┬───────┐
│ time │ sequence_number │ value │
├───────────────┼─────────────────┼───────┤
│ 1397032990435 │ 120001 │ 0 │
│ 1397032990075 │ 110001 │ 0 │
│ 1397032989661 │ 100001 │ 0 │
│ 1397019015174 │ 60001 │ 0 │
│ 1397019014236 │ 50001 │ 0 │
│ 1397019013549 │ 40001 │ 0 │
│ 1397018528430 │ 30001 │ 0 │
│ 1397018368603 │ 20001 │ 0 │
│ 1397018364117 │ 10001 │ 0 │
│ 10000 │ 220001 │ 0 │
│ 10000 │ 210001 │ 0 │
│ 10000 │ 200001 │ 0 │
└───────────────┴─────────────────┴───────┘
Query took 3 ms
test> drop series test before 1w within 3m
test> select * from test
┌───────────────┬─────────────────┬───────┐
│ time │ sequence_number │ value │
├───────────────┼─────────────────┼───────┤
│ 1397019015174 │ 60001 │ 0 │
│ 1397019014236 │ 50001 │ 0 │
│ 1397019013549 │ 40001 │ 0 │
│ 1397018528430 │ 30001 │ 0 │
│ 1397018368603 │ 20001 │ 0 │
│ 1397018364117 │ 10001 │ 0 │
└───────────────┴─────────────────┴───────┘
Query took 3 ms
```