Documentation ¶
Overview ¶
Package optimization provides command optimizations that are used by the compiler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptHalfJoin ¶
OptHalfJoin reduces Joins that are of the form Join(any,nil) or Join(nil,any) to just any. The result is a command and a flag that determines whether the command has been optimized. If that flag is false, then a nil command is returned, and the command, that was passed in, should be used further. Otherwise, proceed to work with the returned command. The input command will not be modified.
Types ¶
type Optimization ¶
Optimization defines a process that optimizes an input command and outputs a modified, optimized version of that command, if the optimization is applicable to the input command. If not, ok=false will be returned.