mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
This commit adds the ability to set string, integer, and boolean values on bitmaps and profiles within Pilosa. Bitmap attributes are automatically returned when making a `Bitmap()` call. Profile attributes must be requested by setting `profile=true` in the URL. The function names have also been renamed to initial caps so that the PQL query language can support math operations in the future.
60 lines
1.1 KiB
Protocol Buffer
60 lines
1.1 KiB
Protocol Buffer
package internal;
|
|
|
|
message Bitmap {
|
|
repeated Chunk Chunks = 1;
|
|
repeated Attr Attrs = 2;
|
|
}
|
|
|
|
message Chunk {
|
|
required uint64 Key = 1;
|
|
repeated uint64 Value = 2;
|
|
}
|
|
|
|
message Pair {
|
|
required uint64 Key = 1;
|
|
required uint64 Count = 2;
|
|
}
|
|
|
|
message Bit {
|
|
required uint64 BitmapID = 1;
|
|
required uint64 ProfileID = 2;
|
|
}
|
|
|
|
message Profile {
|
|
required uint64 ID = 1;
|
|
repeated Attr Attrs = 2;
|
|
}
|
|
|
|
message Attr {
|
|
required string Key = 1;
|
|
optional string StringValue = 2;
|
|
optional int64 IntValue = 3;
|
|
optional bool BoolValue = 4;
|
|
}
|
|
|
|
message QueryRequest {
|
|
required string DB = 1;
|
|
required string Query = 2;
|
|
repeated uint64 Slices = 3;
|
|
optional bool Profiles = 4;
|
|
}
|
|
|
|
message QueryResponse {
|
|
optional string Err = 1;
|
|
optional Bitmap Bitmap = 2;
|
|
optional uint64 N = 3;
|
|
repeated Pair Pairs = 4;
|
|
repeated Profile Profiles = 5;
|
|
}
|
|
|
|
message ImportRequest {
|
|
required string DB = 1;
|
|
required string Frame = 2;
|
|
required uint64 Slice = 3;
|
|
repeated uint64 BitmapIDs = 4;
|
|
repeated uint64 ProfileIDs = 5;
|
|
}
|
|
|
|
message ImportResponse {
|
|
optional string Err = 1;
|
|
}
|