Commit graph

46 commits

Author SHA1 Message Date
Ben Johnson
503e5c95be flatten util into pilosa
This commit moves ID-related types and functions to the top
level package and moves remaining statsd wrapper into a `statsd`
package.
2015-09-03 14:43:34 -06:00
Ben Johnson
3c832591df move index package to root package
This commit moves the index package to the root. Because pilosa
is an index at its core, it's redundant to have an index
subpackage. It also provides better naming such as `pilosa.Bitmap`
instead of `index.Bitmap`.
2015-08-31 16:54:53 -06:00
Ben Johnson
73631de9e8 vet 2015-08-20 13:46:39 -06:00
Ben Johnson
2f1e3b6078 Refactor config & service
This commit refactors the config into a `main.Config` object instead
of a global singleton. The `core.Service` is also refactored into
the `main` package and individual pieces of the service are wired
together by the `pilosa` binary.

These two changes are required to begin to decouple packages from
one another and allow them to be individually unit tested. Previously
most top-level objects in the system could access any other top-level
object through the `core.Service` which effectively made `Service` a
singleton in the system. Each top-level object now has inline interfaces
for their dependencies so that can be set at runtime by the `main`
package or can be mocked by a test package.
2015-08-12 15:34:23 -06:00
travisturner
33dd34107a Remove commented code
Some commented test code was left in case these are tests that
need to be implemented.
2015-08-07 17:29:57 -05:00
Ben Johnson
b06ecf3320 Update import path
This commit updates the import path from:

```
pilosa/*
```

to:

```
github.com/umbel/pilosa/*
```

This follows standard Go convention and makes the project "go gettable".

The README was also updated to reflect the changes.
2015-08-05 22:50:38 -06:00
Todd Gruben
2524ff2a51 refactor setbit/clearbit 2015-03-04 20:41:37 +00:00
Todd Gruben
170fe96661 added new logging technique 2015-02-09 22:26:45 +00:00
Todd Gruben
377d850534 added new logging setup 2015-02-05 21:09:07 +00:00
Todd Gruben
5b3f1707cd Merge branch 'working' 2014-12-24 18:49:57 +00:00
travisturner
e174a804cc handle a square-bracketed list of queries (for plugins) 2014-12-23 16:10:26 -06:00
Todd Gruben
3189f40da1 added some connection cleanup code for tcp/transport and support for local connections 2014-12-18 21:46:47 +00:00
Todd Gruben
e4dcf867c3 added check for invalid database and sanity check for executor 2014-12-03 18:00:13 +00:00
Todd Gruben
0225f6e798 added more logging and a panic detector to try and figure out why process dieing 2014-11-26 10:27:53 +00:00
Todd Gruben
d2c701303a added bits decorator to query request 2014-09-05 18:54:20 +00:00
Todd Gruben
cd6e4d07e8 added stash keyword 2014-08-29 16:29:21 +00:00
Todd Gruben
74f47e32ee range pass1 2014-08-11 19:47:25 +00:00
Todd Gruben
d7be05b216 initial compile of hole filling 2014-08-08 19:33:23 +00:00
travisturner
a55c6cb2f3 removed some debugging 2014-07-26 14:31:56 -05:00
travisturner
62a9961a15 add parser/planner support for the index.Difference method 2014-07-25 16:36:02 -05:00
Todd Gruben
4825ffa633 made hold retrival async from exector 2014-07-21 21:12:00 +00:00
travisturner
f0a3ad15de adjusted the error handling around auto fragment creation logic 2014-06-25 11:27:04 -05:00
Todd Gruben
1b89d79c0a auto allocate .001 2014-06-18 15:09:31 -05:00
travisturner
6230d820a1 bubble query-planner errors up to final Hold.Set (remove panics) 2014-04-08 23:32:01 -05:00
Cody Soyland
483f4d22ca Beginning of better error handling. 2014-04-08 16:18:17 -05:00
travisturner
6d8f3c7b86 get new query-refactor (query args, ect) to work with the filter added to the Bitmap struct 2014-04-02 11:10:50 -05:00
travisturner
fd2a212d30 remove some spews 2014-02-05 20:04:11 -06:00
travisturner
85f8034d9f add in Top-N logic 2014-02-03 23:13:40 -06:00
travisturner
c1188aa57b handle missing query parameters. add config.default_db support 2014-01-14 15:54:17 -06:00
travisturner
52f1b3661e rename QueryList to PqlList for clarity 2014-01-13 11:16:23 -06:00
travisturner
66f3aeb21c add support for macros, with Otto javascript to insert filters into macro 2014-01-10 17:51:19 -06:00
travisturner
e3b417539a removed some of the slice range copy 2014-01-10 14:32:21 -06:00
travisturner
c1edbb9382 preparation for macro support. clean up the RunQuery logic 2014-01-10 13:24:53 -06:00
travisturner
73d45b7c6a move QueryStepHandlers out of executor code, into core.query.go 2014-01-09 10:17:55 -06:00
travisturner
a500044b40 add in base classes for QueryStep, QueryResult 2014-01-09 10:02:40 -06:00
travisturner
bc62bc47e9 PortableQueryStep interface to help transfer query-steps across processes 2014-01-08 15:08:54 -06:00
travisturner
b2c9b1860d Union/Intersect Query & Result support 2014-01-08 12:11:02 -06:00
travisturner
71c782ae6a create Get/Count QueryResult as a db.HoldResult to return results. added ResultData() method to HoldResult interface 2014-01-08 11:15:17 -06:00
travisturner
524b1e36b9 create CatQueryResult as a db.HoldResult to return results 2014-01-07 18:44:51 -06:00
travisturner
fc5eb909ae remove some debugging lines 2014-01-07 17:43:57 -06:00
travisturner
266f772c17 got some basic cat/count/bitmap-handles working 2014-01-07 12:23:01 -06:00
travisturner
6968507296 resolved merge conflicts 2014-01-07 08:37:40 -06:00
travisturner
763a649f1a make profile_id uint64. handle Get/Set/Cat QuerySteps 2014-01-06 20:18:41 -06:00
travisturner
06cfd62025 remove some comments 2014-01-03 17:17:50 -06:00
travisturner
7fc18eca93 a basic executor and QueryStep handler 2014-01-03 15:14:51 -06:00
travisturner
bbabae12ef stub out the service.Executor process 2013-12-31 13:45:55 -06:00