Yuce Tekol
66650ec1f7
NewExecutor doesn't return an error; renamed NewClient to NewInternalHTTPClient
2017-10-18 17:38:20 +03:00
Yuce Tekol
e201afe241
Replaced all http.Clients with InternalClient; updated InternalClient interface.
2017-10-17 15:53:42 +03:00
Yuce Tekol
48c0dbaee7
Initial client refactoring
2017-10-17 11:35:01 +03:00
Yuce Tekol
2c5a8d9125
Fixed Merge branch 'master' into tls-support-URI
...
# Conflicts:
# cmd/server_test.go
2017-10-12 16:03:32 +03:00
Yuce Tekol
3501732b19
https with signed certificates work
2017-10-08 21:11:19 +03:00
Travis
d62ea053b5
Add support for field != <int> Range query
2017-10-06 11:36:41 -05:00
Travis
07ae881967
Add FieldNotNull for more efficient BETWEEN queries
2017-10-06 11:36:24 -05:00
Travis
41b322d744
update fragment.FieldSum to use roaring IntersectionCount()
2017-09-27 11:54:09 -05:00
Travis
eaefc31b4f
make ImportSetFieldValue a private method and add some error handling
2017-09-27 11:43:11 -05:00
Todd Gruben
0d8c2c10e2
created ImportSetFieldValue to handle import scenerio
2017-09-27 11:43:11 -05:00
Travis
01fa368c6a
Import FieldValues
...
This PR adds the ability to import field values into RangeEnabled frames
using the `pilosa import` command.
Example:
```
pilosa import -i i -f f --field foo sample-vals.csv
```
imports data from sample-vals.csv, which contains data in the format:
```
[ColumnID, Value]
```
Also fixes a bug where `frame.rangeEnabled` was not being set on frame creation.
2017-09-27 11:43:10 -05:00
Travis Turner
917f41e8eb
Merge pull request #847 from travisturner/field-range-between
...
Implements BETWEEN for Range queries.
2017-09-27 11:14:31 -05:00
Travis
ab908227be
remove private function fieldRangeBetween
2017-09-27 11:02:32 -05:00
Matthew Jaffee
f257be9926
FieldSum calls fragment.row which needs write lock
...
remove read lock and call fragment.Row
2017-09-25 15:24:52 -05:00
Matthew Jaffee
c5b6c39c56
read only lock in fragment.FieldSum
2017-09-25 15:20:00 -05:00
Travis
2b88d278bc
Implements BETWEEN for Range queries.
...
The PQL looks like:
```
Range(frame=f, field0 >< [200,610])
```
One thing I noticed while implementing this is that it doesn't seem
like `FieldRange()` is used in either `Frame` or `View`; the Executor
calls `Fragment.FieldRange()` directly. The problem with this is that
the offset logic is calculated in the Frame, but since the Executor
doesn't go through Frame, then the Executor also has to calculate
the offset before calling `Fragment.FieldRange`. We should unify this
logic somewhere. Note, this applies to both `FieldRange` and
`FieldRangeBetween`.
2017-09-25 15:11:04 -05:00
Todd Gruben
1eb2f8d568
reusing containers for memory efficiency
2017-09-07 12:59:09 -05:00
Todd Gruben
a8b070716d
reuse fragment memory
2017-09-06 14:41:14 -05:00
Todd Gruben
1d55d1c2c5
cleanup commented code
2017-09-05 15:41:52 -05:00
Todd Gruben
6f3c5ac51b
wrapped fragment with buffered writer
2017-09-05 13:23:51 -05:00
Michael Baird
62791e7a2f
Merge pull request #785 from raskle/613-delete-view
...
Delete view API
2017-08-28 13:38:07 -05:00
Ben Johnson
ad847f2c8a
Add field Range() support to Executor.
2017-08-24 13:34:57 -06:00
Michael Baird
2dfa689d71
Fragment.Close now returns an error.
...
This required changing the Holder test utility Reopen, since in those cases we needed to close the file before making permission changes that Close() was failing silently on.
2017-08-22 14:52:07 -05:00
Ben Johnson
562fba9de1
Sum() and Average() field queries.
2017-08-22 08:27:52 -06:00
Todd Gruben
5d39bc0b1c
addressing concerns
2017-08-09 15:34:59 -05:00
Todd Gruben
93257af5d2
CountRange was incorrect if rangekey was prior to inital container
2017-08-09 14:06:22 -05:00
Todd Gruben
728308a5bb
Merge branch 'master' into 16bitcontainer
2017-08-08 10:17:44 -05:00
Todd Gruben
51f980f695
replaced counting method on cache load
2017-08-05 17:12:31 -05:00
Ben Johnson
3b1428a84e
Remove IntersectInverse()
2017-08-04 09:48:25 -06:00
Ben Johnson
0bb94fc83d
Implement BSI Field Range internally
...
This commit adds `FieldRange()` to the `Frame`, `View`, and
`Fragment` types. It accepts an operator & a predicate and
returns a bitmap of matching field values.
2017-08-01 14:44:53 -06:00
Linh Vo
326a162094
fixed review
2017-07-24 22:09:31 -05:00
Linh Vo
2cfcf497e1
add tests for none cache
2017-07-21 00:16:37 -05:00
Linh Vo
f68362c40c
implement nopcache
2017-07-20 16:11:13 -05:00
Ben Johnson
800e3844f9
Set & retrieve field values.
...
This commit adds support for set/get field values at the
`Frame`, `View`, and `Fragment` levels.
2017-06-30 12:21:21 -06:00
Alan Bernstein
12e6b22abe
WIP replace fmt prints with logger prints and Stderr with LogOutput
2017-06-23 17:27:57 -05:00
Todd Gruben
bed7b41faf
fixed memory hit on startup
2017-06-23 08:13:57 -05:00
Michael Baird
d43d83ad2f
need to add sample rate to stats
2017-05-30 16:19:18 -05:00
Michael Baird
f0c3fdcdda
Merge remote-tracking branch 'origin/master' into metrics
2017-05-30 15:36:19 -05:00
Ben Johnson
a961473422
Add statsd gauges for row count.
2017-05-30 09:23:51 -06:00
Michael Baird
1c5f374c1a
lower the StatsD sampling rate
2017-05-18 16:40:18 -05:00
Michael Baird
4a051900c0
Add sampling rate to StatsD functions, and fix data dog logging
2017-05-16 10:35:49 -05:00
Michael Baird
bd44949cb5
Merge remote-tracking branch 'origin/master' into metrics
...
Conflicts:
config.go
executor_test.go
server/server.go
2017-05-09 11:31:14 -05:00
Matt Jaffee
11b84cec94
change default cache type to ranked
...
All tests which use MustOpenFragment now explicitly pass a cacheType parameter.
If this parameter is an empty string, it means that whether the test works
should not depend on the cache type of the fragment. Otherwise the test should
explicitly set the cache type it needs rather than relying on the default.
2017-05-02 16:58:03 -05:00
Michael Baird
ee159b455d
Merge remote-tracking branch 'origin/master' into metrics
...
Conflicts:
.gitignore
cluster.go
frame.go
glide.lock
index.go
2017-05-01 10:41:04 -05:00
Travis Turner
a1871388b0
Merge pull request #504 from travisturner/default-row-label
...
change DefaultRowLabel from `id` to `rowID`
2017-04-28 22:06:34 -05:00
Travis
0b5e058579
change DefaultRowLabel from id to rowID
2017-04-28 15:26:30 -05:00
Cody Soyland
3996b56b88
Apply Apache License 2.0
2017-04-28 14:22:03 -05:00
Linh Vo
b450a62816
add entropy statsD
2017-04-25 09:22:30 -05:00
Michael Baird
5a8c165c53
Merge remote-tracking branch 'origin/master' into metrics
...
Conflicts:
cache.go
cluster.go
db.go
executor.go
fragment.go
frame.go
gossip/gossip.go
handler.go
index.go
server.go
server/server.go
2017-04-24 16:35:25 -05:00
Travis
2ad322c2c7
Rename DB to Index
...
Rename `db.go` to `index.go` and `db_test.go` to `index_test.go`
2017-04-23 21:49:27 -05:00