mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
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.
83 lines
1.3 KiB
Protocol Buffer
83 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package internal;
|
|
|
|
message Bitmap {
|
|
repeated uint64 Bits = 1;
|
|
repeated Attr Attrs = 2;
|
|
}
|
|
|
|
message Pair {
|
|
uint64 Key = 1;
|
|
uint64 Count = 2;
|
|
}
|
|
|
|
message SumCount {
|
|
int64 Sum = 1;
|
|
int64 Count = 2;
|
|
}
|
|
|
|
message Bit {
|
|
uint64 RowID = 1;
|
|
uint64 ColumnID = 2;
|
|
int64 Timestamp = 3;
|
|
}
|
|
|
|
message ColumnAttrSet {
|
|
uint64 ID = 1;
|
|
repeated Attr Attrs = 2;
|
|
}
|
|
|
|
message Attr {
|
|
string Key = 1;
|
|
uint64 Type = 2;
|
|
string StringValue = 3;
|
|
int64 IntValue = 4;
|
|
bool BoolValue = 5;
|
|
double FloatValue = 6;
|
|
}
|
|
|
|
message AttrMap {
|
|
repeated Attr Attrs = 1;
|
|
}
|
|
|
|
message QueryRequest {
|
|
string Query = 1;
|
|
repeated uint64 Slices = 2;
|
|
bool ColumnAttrs = 3;
|
|
bool Remote = 5;
|
|
bool ExcludeAttrs = 6;
|
|
bool ExcludeBits = 7;
|
|
}
|
|
|
|
message QueryResponse {
|
|
string Err = 1;
|
|
repeated QueryResult Results = 2;
|
|
repeated ColumnAttrSet ColumnAttrSets = 3;
|
|
}
|
|
|
|
message QueryResult {
|
|
Bitmap Bitmap = 1;
|
|
uint64 N = 2;
|
|
repeated Pair Pairs = 3;
|
|
SumCount SumCount = 5;
|
|
bool Changed = 4;
|
|
}
|
|
|
|
message ImportRequest {
|
|
string Index = 1;
|
|
string Frame = 2;
|
|
uint64 Slice = 3;
|
|
repeated uint64 RowIDs = 4;
|
|
repeated uint64 ColumnIDs = 5;
|
|
repeated int64 Timestamps = 6;
|
|
}
|
|
|
|
message ImportValueRequest {
|
|
string Index = 1;
|
|
string Frame = 2;
|
|
uint64 Slice = 3;
|
|
string Field = 4;
|
|
repeated uint64 ColumnIDs = 5;
|
|
repeated uint64 Values = 6;
|
|
}
|