The Generator formulates the AMP processing steps based on the optimized parse tree plan it receives as the output of the Optimizer. These steps are called plastic steps, contain column and row information, but no data parcel values, and are later transformed into concrete steps by OptApply.
Plastic Steps and Concrete Steps
- Plastic Steps
- Plastic steps are the output of the Generator. Except for any hard-coded literal values that may be used, the plastic steps contain column and row information, but do not have any data parcel values associated with them. Plastic steps can be cached for potential reuse.
- Concrete Steps
- Concrete steps are the output of OptApply. They are context- and data-laden AMP directives that contain user- and session-specific information in addition to data parcels.
Generator Processes
The Generator performs the following processes:
- The Generator receives the optimized parse tree from the Optimizer and uses it to build plastic steps.
- Each step is created with a step header containing fixed information about the step and the component of the step, which is the actual context-free AMP directive.
- The plastic steps are cached, as determined by the request caching logic.
- The plastic steps are then sent to OptApply.