Commit graph

66 commits

Author SHA1 Message Date
Ben Johnson
7048aa519b clean up ids 2015-09-03 15:50:08 -06:00
Ben Johnson
45fd4fc992 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
73631de9e8 vet 2015-08-20 13:46:39 -06:00
Ben Johnson
802970bd80 Convert tests to standard library testing.
This commit converts the goconvey tests to use the
standard library testing format. The query pkg has
not be converted yet because it is more difficult
to convert.
2015-08-15 20:39:38 -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
8ce29cc316 added back in hashring 2015-03-20 03:00:03 +00:00
Todd Gruben
d31d289520 protection during fragment creation 2015-03-18 19:29:39 +00:00
Todd Gruben
377d850534 added new logging setup 2015-02-05 21:09:07 +00:00
Todd Gruben
7d59066c3f moved setbit to out of pql cql 2015-01-20 19:53:50 +00:00
travisturner
aef7799dbb remove fragments hashring from FrameSliceIntersect 2015-01-19 09:29:17 -06:00
Todd Gruben
e4dcf867c3 added check for invalid database and sanity check for executor 2014-12-03 18:00:13 +00:00
travisturner
d6510791ca only run cat step on slices that exist (as opposed to 0-n slices) 2014-09-15 14:58:54 -05:00
Todd Gruben
d2c701303a added bits decorator to query request 2014-09-05 18:54:20 +00:00
Todd Gruben
d7be05b216 initial compile of hole filling 2014-08-08 19:33:23 +00:00
travisturner
62a9961a15 add parser/planner support for the index.Difference method 2014-07-25 16:36:02 -05:00
travisturner
368729d014 allow frame in pql when doing a top-n query (i.e. run top-n against this frame) 2014-07-22 17:00:57 -05:00
travisturner
f0a3ad15de adjusted the error handling around auto fragment creation logic 2014-06-25 11:27:04 -05:00
Todd Gruben
833b3d6592 fixed crashing for missing fragment issue 2014-06-24 09:54:10 -05:00
Todd Gruben
b3b8c3bc4f more logging in topology 2014-06-23 17:23:41 -05:00
Todd Gruben
3c9a45a0a7 adjusted cassandra config; locked down fragment setup and renable autoaloc 2014-06-19 16:36:39 -05:00
Todd Gruben
1b89d79c0a auto allocate .001 2014-06-18 15:09:31 -05:00
Todd Gruben
4a2c3e73d0 converted to main cql driver 2014-06-17 13:06:56 -05:00
Todd Gruben
35f718bf33 first pass at auto frament allocation 2014-06-16 16:00:59 -05:00
Todd Gruben
6bd28a59ef added some more logging looking for hashring bug 2014-05-05 10:39:57 -05:00
Todd Gruben
b90166ee4f added better logging for hashring errors 2014-05-05 10:24:49 -05:00
Todd Gruben
a2b5396fa4 added logging to diagnose hashring issues 2014-04-21 10:28:30 -05:00
travisturner
5819768eb3 catch missing frame error 2014-04-08 10:17:52 -05:00
travisturner
20359fc3cb log missing FrameSliceIntersect 2014-04-08 09:15:08 -05:00
travisturner
a339e6ba11 convert filter arg from int to uint64 so it matches the IDS arg type from lexer 2014-04-07 11:07:10 -05:00
travisturner
ad2186a44c Merge branch 'query-refactor' into tlt
Conflicts:
	commands/pilosa-nexter/nexter.go
	query/parser.go
	query/planner_test.go
2014-04-02 10:22:16 -05:00
Todd Gruben
ef56ef6af3 added filter(category) to data model 2014-04-01 15:42:35 -05:00
Cody Soyland
f375ad9de5 WIP: lexer/parser refactor/enhancements. 2014-03-04 17:13:57 -06:00
Cody Soyland
d4dd91973c Add websocket listener for messaging layer. 2014-02-11 18:29:11 -06:00
Todd Gruben
df8dc3d927 added basic persitant for brands;general fragments 2014-01-28 15:32:12 -06:00
Todd Gruben
21988f19ec removed the Fatal logger 2014-01-23 14:16:27 -06:00
Todd Gruben
0106a20696 corrected error for post to non-existant fragment 2014-01-23 13:16:06 -06:00
Todd Gruben
3d1caa37b1 add batch loader 2014-01-17 19:18:59 -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
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
Cody Soyland
0a50f18eca Use HoldResult interface to route responses from dispatch. Added standalone ping function. 2014-01-06 16:20:31 -06:00
Cody Soyland
11d964339c Basic ping working. 2014-01-03 18:14:04 -06:00
travisturner
0679ed17a2 convert UUID to use "tux21b.org/v1/gocql/uuid" 2014-01-03 17:47:22 -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
d7a3ecd70a query parser and planner (PQL string > lex > tokens > parser > query > planner > query plan) 2013-12-27 11:20:45 -06:00
travisturner
9ee028290b convert fragment_uuid to fragment_id in code other than index 2013-12-27 11:17:38 -06:00
Cody Soyland
2df5b961f5 Updated ProcessMapper, flatten() fix, etc 2013-12-19 16:33:28 -06:00