Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheKey ¶
type CacheKey struct {
TemplateID TemplateID
ArgKey string
}
func NewCacheKey ¶
func NewCacheKey(templateID TemplateID, args []ArgValue) CacheKey
type FeatureMap ¶
type Prediction ¶
type Prediction struct {
TemplateID TemplateID
Probability float64
Confidence float64
ContextOrder int
Source string
BorrowedFrom TemplateID
StructuralSimilarity float64
StructuralOverlap []string
}
type QueryEvent ¶
type StructuralNeighbor ¶
type StructuralNeighbor struct {
TemplateID TemplateID
Similarity float64
Overlap []string
}
type Template ¶
type Template struct {
ID TemplateID
Name string
CanonicalSQL string
ExecutableSQL string
ExecutableSQLReady bool
Fingerprint string
FingerprintHash uint64
Operation Operation
Cacheable bool
ArgNames []string
ReadTables []string
WriteTables []string
TableDependenciesKnown bool
StructuralFeatures FeatureMap
StructuralFeaturesKnown bool
ResultBytes int
DBLatency time.Duration
ExpectedRows int
EstimatedCost time.Duration
}
type TemplateID ¶
type TemplateID uint64
Click to show internal directories.
Click to hide internal directories.