public static class SqlPlanBaselineSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SqlPlanBaselineSummary.Builder |
accepted(SqlPlanBaselineSummary.Accepted accepted)
Indicates whether the plan baseline is accepted (
YES ) or not (NO ). |
SqlPlanBaselineSummary.Builder |
adaptive(SqlPlanBaselineSummary.Adaptive adaptive)
Indicates whether a plan that is automatically captured by SQL plan management is marked
adaptive or not.
|
SqlPlanBaselineSummary.Builder |
autoPurge(SqlPlanBaselineSummary.AutoPurge autoPurge)
Indicates whether the plan baseline is auto-purged (
YES ) or not (NO ). |
SqlPlanBaselineSummary |
build() |
SqlPlanBaselineSummary.Builder |
copy(SqlPlanBaselineSummary model) |
SqlPlanBaselineSummary.Builder |
enabled(SqlPlanBaselineSummary.Enabled enabled)
Indicates whether the plan baseline is enabled (
YES ) or disabled (NO ). |
SqlPlanBaselineSummary.Builder |
fixed(SqlPlanBaselineSummary.Fixed fixed)
Indicates whether the plan baseline is fixed (
YES ) or not (NO ). |
SqlPlanBaselineSummary.Builder |
origin(SqlPlanBaselineOrigin origin)
The origin of the SQL plan baseline.
|
SqlPlanBaselineSummary.Builder |
planName(String planName)
The unique plan identifier.
|
SqlPlanBaselineSummary.Builder |
reproduced(SqlPlanBaselineSummary.Reproduced reproduced)
Indicates whether the optimizer was able to reproduce the plan (
YES ) or not
(NO ). |
SqlPlanBaselineSummary.Builder |
sqlHandle(String sqlHandle)
The unique SQL identifier.
|
SqlPlanBaselineSummary.Builder |
sqlText(String sqlText)
The SQL text (truncated to the first 50 characters).
|
SqlPlanBaselineSummary.Builder |
timeCreated(Date timeCreated)
The date and time when the plan baseline was created.
|
SqlPlanBaselineSummary.Builder |
timeLastExecuted(Date timeLastExecuted)
The date and time when the plan baseline was last executed.
|
SqlPlanBaselineSummary.Builder |
timeLastModified(Date timeLastModified)
The date and time when the plan baseline was last modified.
|
public SqlPlanBaselineSummary.Builder planName(String planName)
The unique plan identifier.
planName
- the value to setpublic SqlPlanBaselineSummary.Builder sqlHandle(String sqlHandle)
The unique SQL identifier.
sqlHandle
- the value to setpublic SqlPlanBaselineSummary.Builder sqlText(String sqlText)
The SQL text (truncated to the first 50 characters).
sqlText
- the value to setpublic SqlPlanBaselineSummary.Builder origin(SqlPlanBaselineOrigin origin)
The origin of the SQL plan baseline.
origin
- the value to setpublic SqlPlanBaselineSummary.Builder timeCreated(Date timeCreated)
The date and time when the plan baseline was created.
timeCreated
- the value to setpublic SqlPlanBaselineSummary.Builder timeLastModified(Date timeLastModified)
The date and time when the plan baseline was last modified.
timeLastModified
- the value to setpublic SqlPlanBaselineSummary.Builder timeLastExecuted(Date timeLastExecuted)
The date and time when the plan baseline was last executed.
*Note:** For performance reasons, database does not update this value immediately after each execution of the plan baseline. Therefore, the plan baseline may have been executed more recently than this value indicates.
timeLastExecuted
- the value to setpublic SqlPlanBaselineSummary.Builder enabled(SqlPlanBaselineSummary.Enabled enabled)
Indicates whether the plan baseline is enabled (YES
) or disabled (NO
).
enabled
- the value to setpublic SqlPlanBaselineSummary.Builder accepted(SqlPlanBaselineSummary.Accepted accepted)
Indicates whether the plan baseline is accepted (YES
) or not (NO
).
accepted
- the value to setpublic SqlPlanBaselineSummary.Builder fixed(SqlPlanBaselineSummary.Fixed fixed)
Indicates whether the plan baseline is fixed (YES
) or not (NO
).
fixed
- the value to setpublic SqlPlanBaselineSummary.Builder reproduced(SqlPlanBaselineSummary.Reproduced reproduced)
Indicates whether the optimizer was able to reproduce the plan (YES
) or not
(NO
). The value is set to YES
when a plan is initially added to the plan
baseline.
reproduced
- the value to setpublic SqlPlanBaselineSummary.Builder autoPurge(SqlPlanBaselineSummary.AutoPurge autoPurge)
Indicates whether the plan baseline is auto-purged (YES
) or not (NO
).
autoPurge
- the value to setpublic SqlPlanBaselineSummary.Builder adaptive(SqlPlanBaselineSummary.Adaptive adaptive)
Indicates whether a plan that is automatically captured by SQL plan management is marked adaptive or not.
When a new adaptive plan is found for a SQL statement that has an existing SQL plan
baseline, that new plan will be added to the SQL plan baseline as an unaccepted plan, and
the ADAPTIVE
property will be marked YES
. When this new plan is verified
(either manually or via the auto evolve task), the plan will be test executed and the
final plan determined at execution will become an accepted plan if its performance is
better than the existing plan baseline. At this point, the value of the ADAPTIVE
property is set to NO
since the plan is no longer adaptive, but resolved.
adaptive
- the value to setpublic SqlPlanBaselineSummary build()
public SqlPlanBaselineSummary.Builder copy(SqlPlanBaselineSummary model)
Copyright © 2016–2024. All rights reserved.