Ben Johnson
060254e0d6
Key-to-ID Translation
...
This commit adds id-to-key translation to make it easier for users
to provide non-integer identifiers for rows & columns.
2018-06-15 16:45:05 -06:00
Travis Turner
fe167ea78c
un-export some top-level functions
2018-06-13 16:44:24 -05:00
Travis Turner
2a9b1e9e5b
final Frame to Field rename
2018-06-06 01:27:12 -05:00
Travis Turner
cb7487e34d
change all instances of internal Frame to Field
2018-06-05 23:24:24 -05:00
Travis Turner
3531c128c4
GoRename Frame to Field in index.go
2018-06-05 22:33:48 -05:00
Travis Turner
1d3c4d6fcb
first pass at GoRename Frame to Field in frame.go
2018-06-05 17:52:22 -05:00
Travis Turner
d799967fc6
add Type to frame so support BSI frame type "int"
2018-06-04 14:45:28 -05:00
Matt Jaffee
47f7beaecc
WIP removing inverse
2018-05-25 17:18:38 -05:00
Matt Jaffee
75e8a873b1
remove rangeEnabled option everywhere
2018-05-25 13:09:32 -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
alanbernstein
64ebae3a8a
Merge branch 'master' into wrap-errors-index
2018-05-10 18:57:44 -05:00
Alan Bernstein
a229b0f30d
Make error string more specific
2018-05-10 16:02:40 -05:00
Alan Bernstein
4f300f5c2e
Wrap errors in index
2018-05-10 11:33:14 -05:00
Travis Turner
7f41c0256c
avoid creating a slice of nil timestamps on Import()
2018-04-29 16:40:32 -05:00
Travis Turner
edee152a9b
remove Index.MergeSchemas() method
2018-04-20 13:20:56 -05:00
Travis Turner
e7151eb2a8
Remove Index.TimeQuantum
2018-04-18 08:17:26 -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
Travis Turner
1764d5a9bf
Merge pull request #1180 from travisturner/remove-rowcol-labels
...
Remove rowcol labels
2018-04-03 22:37:59 -05:00
Travis Turner
e3cd03d902
move rowLabel and columnLabel constants to executor.go
2018-04-02 13:05:37 -05:00
Travis Turner
9a2aeac6f8
Clean up logger; make it honor --log-path flag.
...
Add functional options to NewGossipMemberSet.
2018-03-27 08:40:04 -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
Cody Soyland
f9efa6c579
Use type func(string) AttrStore in place of interface AttrStoreGenerator for simplicity
2018-03-23 13:57:29 -05:00
Travis Turner
b66bedd1ef
put BoltDB behind AttrStore interface
2018-03-19 11:30:41 -05:00
Travis Turner
c9886b049b
Merge branch 'master' into cluster-resize working branch.
2017-12-04 22:18:57 -06:00
Travis Turner
5aa905b9a1
Merge pull request #935 from travisturner/cluster-resize-test-setvalue
...
add SetFieldValue() method to TestCluster and use in tests
2017-12-04 17:31:49 -06:00
Travis Turner
a98b862fca
add /cluster/resize/remove-node endpoint
2017-11-27 11:06:02 -06:00
Yuce Tekol
83be24f4d2
Removes column/row labels for input definition. Resolves #810
2017-11-10 18:00:45 +03:00
Travis Turner
e641aa1d8a
Merge branch 'master' into 'cluster-resize'
2017-11-07 15:00:11 -06:00
Travis Turner
7e797efdc2
Allow CacheType to be set for a RangeEnabled frame (to apply to the standard frame)
2017-11-06 14:32:20 -06:00
Cody Soyland
27748259a2
Fix field value import: Use signed int and respect field minimum. Fixes #875
2017-10-31 13:32:26 -05:00
Travis Turner
2bd0677df9
Remove MaxSlice polling.
...
Add Schema to proto.
Update MaxSlices in proto to include both standard and inverse.
Update LocalStatus (shared in gossip) to include MaxSlices and Schema.
Encode InputDefinitions with Index.
TODO:
- make sure InputDefinitions are considered in LocalStatus merge.
- decide what to do about `/slices/max` endpoint. client.backup is using
it.
2017-10-26 23:48:40 -05:00
Travis Turner
cd8542ca30
Remove FrameSchema. Move Fields to the Frame struct.
2017-10-26 11:11:05 -05:00
Charlie Andrews
b6509a3ad7
Add RecalculateCaches to every level in hierarchy
...
This to decouple the implementation of recalculating caches from the
structure of the hierarchy: holder > index > frame > view > fragment.
See [Law of Demeter](https://en.wikipedia.org/wiki/Law_of_Demeter ).
2017-10-11 09:36:32 -05:00
Linh Vo
5435886e7b
Merge branch 'master' of github.com:pilosa/pilosa into handle-get-fields
2017-09-27 13:50:56 -05:00
Travis
c8c2229ca3
remove some code duplication in IndexOptions
2017-09-27 12:35:26 -05:00
Linh Vo
d507251f3c
resolve conflig with master
2017-09-27 12:00:57 -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
Linh Vo
a1a6c7d717
update test
2017-09-26 13:46:00 -05:00
Linh Vo
505363d8ed
get fields
2017-09-26 10:57:22 -05:00
Matthew Jaffee
3aecb61285
more read-only locking for maxslice, timequantum, and Index.Frames
2017-09-25 15:20:17 -05:00
Matthew Jaffee
023dbbcdfd
make index column label and options RLocks
2017-09-25 15:18:46 -05:00
Matthew Jaffee
ce7283ae1b
convert to RWMutex in index, holder, view, and frame
...
use RLock and RUnlock in mapperLocal hotpath
2017-09-25 15:16:40 -05: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
Travis
b91da2d0a4
Merge branch 'master' into input-definition
2017-07-26 14:44:31 -05:00
Linh Vo
326a162094
fixed review
2017-07-24 22:09:31 -05:00
Linh Vo
4aa487daac
check range with CacheTypeNone
2017-07-21 13:28:20 -05:00
Linh Vo
0a22386a58
add action to handle timestamp
2017-07-05 15:30:21 -05:00
Michael Baird
56f8705407
return an error if the definition does not exist
2017-06-29 08:51:29 -05:00
Travis
e4c71ff1ed
refactor some of the input defintion logic to better utilize Encode()
2017-06-28 13:46:41 -05:00