Commit graph

96 commits

Author SHA1 Message Date
Yuce Tekol
83be24f4d2
Removes column/row labels for input definition. Resolves #810 2017-11-10 18:00:45 +03: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
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
Michael Baird
7cbe679640 handle input nil bit 2017-06-27 16:30:59 -05:00
Linh Vo
8653154dee merge handleAction 2017-06-27 16:29:10 -05:00
Linh Vo
57d035260d update JSONparser 2017-06-27 16:28:42 -05:00
Linh Vo
f701f9d273 handle actions in JSONparser 2017-06-27 16:28:17 -05:00
Linh Vo
13da696927 JSON parser 2017-06-27 16:20:51 -05:00
Linh Vo
1407a25008 fix reviews, more input definition tests 2017-06-27 12:36:02 -05:00
Travis
904552b289
adjusted some of the InputDefinition comments 2017-06-26 17:39:58 -05:00
Linh Vo
7a3baed3ac resolve proto conflict 2017-06-22 15:20:18 -05:00
Linh Vo
9fd1de8f29 handle nil rowID 2017-06-21 14:38:04 -05:00
Ben Johnson
0107ddffea
BSI range-encoding schema support. 2017-06-21 08:53:30 -06:00
Linh Vo
568320ec6d fix reviews and add more test 2017-06-19 11:37:01 -05:00
Michael Baird
64b51f3bc3 Use the internal.inputdefinition object for broadcasting to other nodes. Create encoding methods to translate the JSON request to create a definition. 2017-06-15 23:45:19 -05:00
Linh Vo
e72e3dc436 more handle tests 2017-06-15 00:39:21 -05:00
Linh Vo
2d3f244a7b couple more tests 2017-06-13 13:56:08 -05:00
Linh Vo
ea53216ff2 expose input definition frames, fields 2017-06-12 23:43:03 -05:00
Linh Vo
1c2adda8e9 create frames with input-definition's creation 2017-06-12 16:23:40 -05:00
Linh Vo
a62ec47eec load input-definition when startup servers 2017-06-12 15:04:27 -05:00
Linh Vo
fdacca3147 save inputdefinition as protobuf to file 2017-06-12 00:11:20 -05:00
Linh Vo
7c28e2c3f3 InputFrame struct 2017-06-09 10:27:11 -05:00
Linh Vo
8ca7c3b229 create input-defintion file 2017-06-08 15:48:00 -05:00
Linh Vo
c80bedb402 create input-definiton 2017-06-08 14:23:46 -05:00
Michael Baird
c41f695e74 more metrics tests 2017-05-18 16:36:22 -05:00
Michael Baird
60cd24b368 set maxSlice StatsD gauge on get max slice 2017-05-16 14:00:54 -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
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
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
692d997cab
add labelRegexp to validate row and column labels 2017-04-29 15:01:18 -05:00
Cody Soyland
3996b56b88 Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
Ben Johnson
0276c13cea
Prevent row labels that match the column label. 2017-04-28 12:59:39 -06:00
Travis
7246e1e00d
Broadcast CreateSliceMessage when a new max slice is created 2017-04-27 11:44:13 -05:00