-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkload_classifier_statement.go
More file actions
87 lines (68 loc) · 2.69 KB
/
workload_classifier_statement.go
File metadata and controls
87 lines (68 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Package ast provides AST types for T-SQL parsing.
package ast
// CreateWorkloadClassifierStatement represents a CREATE WORKLOAD CLASSIFIER statement.
type CreateWorkloadClassifierStatement struct {
ClassifierName *Identifier
Options []WorkloadClassifierOption
}
func (s *CreateWorkloadClassifierStatement) statement() {}
func (s *CreateWorkloadClassifierStatement) node() {}
// WorkloadClassifierOption is the interface for workload classifier options.
type WorkloadClassifierOption interface {
node()
workloadClassifierOption()
}
// ClassifierWorkloadGroupOption represents the WORKLOAD_GROUP option.
type ClassifierWorkloadGroupOption struct {
WorkloadGroupName *StringLiteral
OptionType string
}
func (o *ClassifierWorkloadGroupOption) node() {}
func (o *ClassifierWorkloadGroupOption) workloadClassifierOption() {}
// ClassifierMemberNameOption represents the MEMBERNAME option.
type ClassifierMemberNameOption struct {
MemberName *StringLiteral
OptionType string
}
func (o *ClassifierMemberNameOption) node() {}
func (o *ClassifierMemberNameOption) workloadClassifierOption() {}
// ClassifierWlmContextOption represents the WLM_CONTEXT option.
type ClassifierWlmContextOption struct {
WlmContext *StringLiteral
OptionType string
}
func (o *ClassifierWlmContextOption) node() {}
func (o *ClassifierWlmContextOption) workloadClassifierOption() {}
// WlmTimeLiteral represents a time literal for WLM START_TIME/END_TIME options.
type WlmTimeLiteral struct {
TimeString *StringLiteral
}
func (t *WlmTimeLiteral) node() {}
// ClassifierStartTimeOption represents the START_TIME option.
type ClassifierStartTimeOption struct {
Time *WlmTimeLiteral
OptionType string
}
func (o *ClassifierStartTimeOption) node() {}
func (o *ClassifierStartTimeOption) workloadClassifierOption() {}
// ClassifierEndTimeOption represents the END_TIME option.
type ClassifierEndTimeOption struct {
Time *WlmTimeLiteral
OptionType string
}
func (o *ClassifierEndTimeOption) node() {}
func (o *ClassifierEndTimeOption) workloadClassifierOption() {}
// ClassifierWlmLabelOption represents the WLM_LABEL option.
type ClassifierWlmLabelOption struct {
WlmLabel *StringLiteral
OptionType string
}
func (o *ClassifierWlmLabelOption) node() {}
func (o *ClassifierWlmLabelOption) workloadClassifierOption() {}
// ClassifierImportanceOption represents the IMPORTANCE option.
type ClassifierImportanceOption struct {
Importance string
OptionType string
}
func (o *ClassifierImportanceOption) node() {}
func (o *ClassifierImportanceOption) workloadClassifierOption() {}