-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2745 from influxdb/pd-shard-metadata-to-protobuf
Update metadata storage in the shard to use protobuf for serialization.
- Loading branch information
Showing
4 changed files
with
225 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package internal; | ||
|
||
//======================================================================== | ||
// | ||
// Metadata | ||
// | ||
//======================================================================== | ||
|
||
message Series { | ||
required string Key = 1; | ||
repeated Tag Tags = 2; | ||
} | ||
|
||
message Tag { | ||
required string Key = 1; | ||
required string Value = 2; | ||
} | ||
|
||
message MeasurementFields { | ||
repeated Field Fields = 1; | ||
} | ||
|
||
message Field { | ||
required int32 ID = 1; | ||
required string Name = 2; | ||
required string Type = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters