common/schema: namespace column members by subsystem

Otherwise, it will be a mess once we introduce IPFIX/sFlow specific fields
This commit is contained in:
Vincent Bernat
2023-01-07 19:47:28 +01:00
parent 56d7ef10f0
commit e88d2a2974
10 changed files with 187 additions and 184 deletions

View File

@@ -15,7 +15,7 @@ type Schema struct {
// For ClickHouse. This is the set of primary keys (order is important and
// may not follow column order).
PrimaryKeys []string
ClickHousePrimaryKeys []string
}
// Column represents a column of data.
@@ -29,14 +29,14 @@ type Column struct {
// retrieved from the protobuf. `TransformFrom' and `TransformTo' work in
// pairs. The first one is the set of column in the raw table while the
// second one is how to transform it for the main table.
Type string
Codec string
Alias string
NotSortingKey bool
GenerateFrom string
TransformFrom []Column
TransformTo string
ClickHouseType string
ClickHouseCodec string
ClickHouseAlias string
ClickHouseNotSortingKey bool
ClickHouseGenerateFrom string
ClickHouseTransformFrom []Column
ClickHouseTransformTo string
// For the console.
NotSelectable bool
ConsoleNotDimension bool
}