MCPcopy
hub / github.com/uber/aresdb / VarRef

Struct VarRef

query/expr/ast.go:182–205  ·  view source on GitHub ↗

VarRef represents a reference to a variable.

Source from the content-addressed store, hash-verified

180
181// VarRef represents a reference to a variable.
182type VarRef struct {
183 Val string
184 ExprType Type
185
186 // The following fields are populated for convenience after the query is
187 // validated against the schema.
188
189 // ID of the table in the query scope (0 for the main table, 1+ for foreign
190 // tables).
191 TableID int
192 // ID of the column in the schema.
193 ColumnID int
194 // Enum dictionary for enum typed column. Can only be accessed while holding
195 // the schema lock.
196 EnumDict map[string]int `json:"-"`
197 // Setting enum reverse dict requires holding the schema lock,
198 // while reading from it does not require holding the schema lock.
199 EnumReverseDict []string `json:"-"`
200
201 DataType memCom.DataType
202
203 // Whether this column is hll column (can run hll directly)
204 IsHLLColumn bool
205}
206
207// Type returns the type.
208func (r *VarRef) Type() Type {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected