0
0

changed Stored row Values to also use protobuf

This commit is contained in:
Marty Schoch 2015-08-17 09:48:40 -04:00
parent 8d8a05a842
commit 1187436e46
2 changed files with 18 additions and 2 deletions

View File

@ -114,7 +114,6 @@ The following pseudo-structure will be used to explain changes to the internal s
inFlightDocIds = {}
deletedDocIdNumbers = {}
}
- Garbage Collector Thread is started
- Old Doc Number Lookup Thread is started
- Index marked open
@ -334,7 +333,13 @@ Stored rows record the original values used to produce the index. At the row en
| Key | Value |
|---------------------------|-------------------------|
|```'s' <doc id utf8> 0xff <doc number uint64> <field id uint16>```|```<document value []byte>```|
|```'s' <doc id utf8> 0xff <doc number uint64> <field id uint16>```|```<StoredValue protobuf>```|
message StoredValue {
bytes raw = 1; // raw bytes
}
NOTE: we currently encode stored values as raw bytes, however we have other proposals in flight to do something better than this. By using protobuf here as well, we can support existing functionality through the raw field, but allow for more strongly typed information in the future.
#### Internal

View File

@ -0,0 +1,11 @@
message VersionValue {
required uint64 version = 1;
}
message FieldValue {
required string name = 1;
}
message DictionaryValue {
uint64 count = 1; // number of documents using this term in this field
}