Matt Jaffee
620226d6ef
simplify comparisons to bool constants
2018-05-15 11:00:09 -05:00
Matt Jaffee
a10750009b
remove decodeColumnAttrSet(s) (unused)
2018-05-14 19:29:29 -05:00
Matt Jaffee
616545cd5c
remove input definition, add install-stringer to Makefile
...
also removes one line of unreachable code in cluster.go (unrelated)
2018-05-14 17:14:20 -05:00
Matthew Jaffee
876ed56e30
move pilosa.Config to pilosa/server.Config
...
step 1 of #1203
The Config object is really just a specification of the options to pilosa
server, so it makes sense to have it in that package.
2018-04-19 14:51:42 -05:00
Travis Turner
590b7c30ab
Merge pull request #1207 from travisturner/security-manager-to-api
...
Remove SecurityManager. Implement api restrictions in api package.
2018-04-18 07:30:28 -05:00
Travis Turner
e60d11a23e
change references from "function" to "method"
2018-04-17 17:07:41 -05:00
Travis Turner
5468065213
improve apiFunc error handling. change slice to map in function validation.
2018-04-17 13:01:36 -05:00
Matthew Jaffee
fe0ba6280f
deprecate RangeEnabled, but leave in API
...
the RangeEnabled option now has no effect, but it still exists in the API. A few
tests still use it to ensure this. This would only be considered a breaking
change if someone was relying on Pilosa to enforce the RangeEnabled: false
option to prevent fields being created in certain frames. This seems unlikely.
2018-04-16 16:08:04 -05:00
Matthew Jaffee
04f5d5875c
api docs, rename funcs, refactor usage of internal
...
All exported funcs in api.go are now documented
Several poorly named methods of API and Cluster were renamed. Particularly, the
word Fragment was often changed to Slice in cases where it was really a slice
being specified and not a fragment.
several methods which received or returned internal data structures have been
refactored to be more opaque.
Deprecation logging was added to input definition methods.
2018-04-12 11:28:35 -05:00
Matthew Jaffee
07610560df
Merge branch 'master' into 1151-http-refactor
2018-04-10 08:10:25 -05:00
Matthew Jaffee
f8cb579187
get tests passing
2018-04-09 14:29:43 -05:00
Yuce Tekol
8336784d57
More API updates; removed Cluster, Holder, etc from Handler
2018-04-03 15:01:36 -07:00
Travis Turner
ce4fb3c4d3
remove references to rowLabel and columnLabel
2018-04-03 10:36:48 -05:00
Travis Turner
b2b0fd081a
Remove ColumnLabel support
2018-03-26 15:35:56 -05:00
Travis Turner
2a8172b2a3
Remove RowLabel support
2018-03-26 14:48:56 -05:00
Travis Turner
9085c03ce8
Changes configuration cluster.type (string) to cluster.disabled (bool)
2018-02-08 12:40:46 -06:00
Travis Turner
216ba7a41e
Use NodeID instead of URI for node identification
2018-02-02 15:58:46 -06:00
Travis Turner
a8871ada6a
Convert Host to URI.
...
Fix all compile errors.
2017-10-25 11:52:55 -05:00
Travis
f1e3ac90d4
Determine cluster membership via gossip.
...
Handle resize cluster events.
Add Toplogy support.
Refactor FrameOptions.
Add tests.
2017-10-25 00:27:30 -05:00
Yuce Tekol
5760d89742
Initial TLS support
2017-10-02 15:53:50 +03: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
Ben Johnson
8bd1ab31f5
Add field HTTP API.
2017-09-07 11:45:20 -06:00
Travis
2d3548afac
Adjust error tests to work on go v1.8
2017-08-07 08:25:35 -05:00
Travis
c4a4f0dcc4
don't normalize bind address after all, just have it use defaults when necessary
2017-08-07 08:25:35 -05:00
Travis
fcb311389e
added pilosa.NormalizeAddress() to address variations in the bind configuration
2017-08-07 08:25:35 -05:00
Travis
a3b1b2ee1a
DefaultClusterType = ClusterGossip
...
This commit removes the `httpbroadcast` NodeSet, sets the default cluster type
to `gossip`, and uses the `static` cluster type for most test cases.
2017-08-07 08:25:35 -05: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
Travis
b91da2d0a4
Merge branch 'master' into input-definition
2017-07-26 14:44:31 -05:00
Travis
b6896482b9
move InternalPort config option out from under cluster and up to the root of Config
2017-07-24 17:28:23 -05:00
Michael Baird
1569c932ff
Merge branch 'master' into input-definition
2017-07-18 14:51:15 -05:00
Ben Johnson
c55a405ac5
Merge pull request #721 from benbjohnson/618-pql-field-values
...
Add PQL support for field values.
2017-07-18 12:39:46 -06:00
Michael Baird
69e1372d4a
clarified configuration error message on internal port mismatch.
2017-07-12 13:17:36 -05:00
Michael Baird
4b53ec1f9c
const cluster types, and more validation tests
2017-07-11 14:17:06 -05:00
Michael Baird
9c561f4e4b
string in slice, and contains substring in slice
2017-07-11 11:30:57 -05:00
Ben Johnson
adc6296040
Add PQL support for field values.
...
This commit adds support in the PQL language to set field values.
2017-07-10 17:35:23 -06:00
Michael Baird
32b46932e1
remove redundant errors from conflict
2017-07-03 10:32:20 -05:00
Michael Baird
7be458bfa6
Merge remote-tracking branch 'upstream/master' into input-definition
...
Conflicts:
pilosa.go
2017-07-03 10:31:58 -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
Michael Baird
fb7e1091b5
field definitions require an action
2017-06-29 13:16:05 -05:00
Michael Baird
7abab7b795
Error ErrInputDefinitionValueMap
2017-06-29 11:23:36 -05:00
Michael Baird
6028b50b06
Validate incoming input definitions through the InputDefinitionInfo Validate rather than through Encode and piecemeal throughout the code.
2017-06-28 16:33:42 -05:00
Linh Vo
f701f9d273
handle actions in JSONparser
2017-06-27 16:28:17 -05:00
Linh Vo
1407a25008
fix reviews, more input definition tests
2017-06-27 12:36:02 -05:00
Linh Vo
7a3baed3ac
resolve proto conflict
2017-06-22 15:20:18 -05:00
Ben Johnson
0107ddffea
BSI range-encoding schema support.
2017-06-21 08:53:30 -06:00
Linh Vo
c80bedb402
create input-definiton
2017-06-08 14:23:46 -05:00
Yuce Tekol
15853fb448
Fix name, label validation off by one error; added tests
2017-05-25 15:49:55 +03:00
Ben Johnson
d93ad0530a
Merge pull request #503 from benbjohnson/prevent-matching-labels
...
Prevent row labels that match the column label.
2017-05-03 11:20:37 -06:00
Ben Johnson
e3d6f96657
Add max-writes-per-requests limit.
...
A configurable limit has been added to restrict the number of
mutating calls in a `pql.Query`. This is to prevents requests from
timing out from large queries.
The default is set to 5000 writes per request and is configurable
through the configuration file and the command line flags.
2017-05-03 08:53:20 -06:00
Travis
b0fa067ffc
remove the ability to start an Index, Frame, ColumnLabel, or RowLabel with a number
2017-04-29 16:49:23 -05:00