FieldMapper maps the telemetry field key to the table field name.
| 21 | |
| 22 | // FieldMapper maps the telemetry field key to the table field name. |
| 23 | type FieldMapper interface { |
| 24 | // FieldFor returns the field name for the given key. |
| 25 | FieldFor(ctx context.Context, tsStart, tsEnd uint64, key *telemetrytypes.TelemetryFieldKey) (string, error) |
| 26 | // ColumnFor returns the column for the given key. |
| 27 | ColumnFor(ctx context.Context, tsStart, tsEnd uint64, key *telemetrytypes.TelemetryFieldKey) ([]*schema.Column, error) |
| 28 | // ColumnExpressionFor returns the column expression for the given key. |
| 29 | ColumnExpressionFor(ctx context.Context, tsStart, tsEnd uint64, key *telemetrytypes.TelemetryFieldKey, keys map[string][]*telemetrytypes.TelemetryFieldKey) (string, error) |
| 30 | } |
| 31 | |
| 32 | // ConditionBuilder builds the condition for the filter. |
| 33 | type ConditionBuilder interface { |
no outgoing calls
no test coverage detected