public static class SqlPlanLine.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SqlPlanLine.Builder |
accessPredicates(String accessPredicates)
Access predicates
Example:
"\\"RESOURCE_ID\\"=:1 AND \\"QUERY_ID\\"=:2" |
SqlPlanLine |
build() |
SqlPlanLine.Builder |
bytes(Long bytes)
Bytes
Example:
150 |
SqlPlanLine.Builder |
cardinality(Long cardinality)
Cardinality
Example:
1 |
SqlPlanLine.Builder |
copy(SqlPlanLine model) |
SqlPlanLine.Builder |
cost(Long cost)
Cost
Example:
1 |
SqlPlanLine.Builder |
cpuCost(Long cpuCost)
CPU cost
Example:
7321 |
SqlPlanLine.Builder |
depth(Long depth)
Depth
Example:
3 |
SqlPlanLine.Builder |
distribution(String distribution)
Distribution
Example:
"QC (RANDOM)" |
SqlPlanLine.Builder |
elapsedTimeInSec(Float elapsedTimeInSec)
Total elapsed time
Example:
1.2 |
SqlPlanLine.Builder |
filterPredicates(String filterPredicates)
Filter predicates
Example:
"(INTERNAL_FUNCTION(\\"J\\".\\"DATABASE_ROLE\\") OR (\\"J\\".\\"DATABASE_ROLE\\" IS NULL AND SYS_CONTEXT('userenv','database_role')='PRIMARY'))" |
SqlPlanLine.Builder |
identifier(Long identifier)
Identifier
Example:
3 |
SqlPlanLine.Builder |
ioCost(Long ioCost)
IO cost
Example:
1 |
SqlPlanLine.Builder |
objectAlias(String objectAlias)
Object Alias
Example:
"PLAN_LINES@SEL$1" |
SqlPlanLine.Builder |
objectInstance(Long objectInstance)
Object Instance
Example:
37472 |
SqlPlanLine.Builder |
objectName(String objectName)
Object Name
Example:
"PLAN_LINES_PK" |
SqlPlanLine.Builder |
objectNode(String objectNode)
Object Node
Example:
"Q4000" |
SqlPlanLine.Builder |
objectOwner(String objectOwner)
Object Owner
Example:
"TENANT_A#SCHEMA" |
SqlPlanLine.Builder |
objectType(String objectType)
Object Type
Example:
"INDEX (UNIQUE)" |
SqlPlanLine.Builder |
operation(String operation)
Operation
Example:
"SELECT STATEMENT" |
SqlPlanLine.Builder |
optimizer(String optimizer)
Optimizer
Example:
"CLUSTER" |
SqlPlanLine.Builder |
options(String options)
Options
Example:
"RANGE SCAN" |
SqlPlanLine.Builder |
other(String other)
Other
Example:
|
SqlPlanLine.Builder |
otherTag(String otherTag)
Other Tag
Example:
"PARALLEL_COMBINED_WITH_PARENT" |
SqlPlanLine.Builder |
otherXML(String otherXML)
Other SQL
Example:
"<other_xml><info type=\\"db_version\\">18.0.0.0</info><info type=\\"parse_schema\\"><![CDATA[\\"SYS\\"]]></info><info type=\\"plan_hash_full\\">483892784</info><info type=\\"plan_hash\\">2709293936</info><info type=\\"plan_hash_2\\">483892784</info><outline_data><hint><![CDATA[IGNORE_OPTIM_EMBEDDED_HINTS]]></hint><hint><![CDATA[OPTIMIZER_FEATURES_ENABLE('18.1.0')]]></hint><hint><![CDATA[DB_VERSION('18.1.0')]]></hint><hint><![CDATA[OPT_PARAM('_b_tree_bitmap_plans' 'false')]]></hint><hint><![CDATA[OPT_PARAM('_optim_peek_user_binds' 'false')]]></hint><hint><![CDATA[OPT_PARAM('result_cache_mode' 'FORCE')]]></hint><hint><![CDATA[OPT_PARAM('_fix_control' '20648883:0 27745220:1 30001331:1 30142527:1 30539126:1')]]></hint><hint><![CDATA[OUTLINE_LEAF(@\\"SEL$1\\")]]></hint><hint><![CDATA[INDEX(@\\"SEL$1\\" \\"USER$\\"@\\"SEL$1\\" \\"I_USER#\\")]]></hint></outline_data></other_xml>" |
SqlPlanLine.Builder |
parentIdentifier(Long parentIdentifier)
Parent Identifier
Example:
2 |
SqlPlanLine.Builder |
partitionIdentifier(Long partitionIdentifier)
Partition identifier
Example:
8 |
SqlPlanLine.Builder |
partitionStart(String partitionStart)
Partition start
Example:
1 |
SqlPlanLine.Builder |
partitionStop(String partitionStop)
Partition stop
Example:
2 |
SqlPlanLine.Builder |
planHash(Long planHash)
Plan hash value for the SQL Execution Plan
|
SqlPlanLine.Builder |
position(Long position)
Position
Example:
1 |
SqlPlanLine.Builder |
projection(String projection)
Projection
Example:
"COUNT(*)[22]" |
SqlPlanLine.Builder |
qblockName(String qblockName)
Qblock Name
Example:
"SEL$1" |
SqlPlanLine.Builder |
remark(String remark)
Remark
Example:
"" |
SqlPlanLine.Builder |
searchColumns(Long searchColumns)
Search Columns
Example:
3 |
SqlPlanLine.Builder |
sqlIdentifier(String sqlIdentifier)
Unique SQL_ID for a SQL Statement.
|
SqlPlanLine.Builder |
tempSpace(Long tempSpace)
Time space
Example:
15614000 |
SqlPlanLine.Builder |
timeCollected(Date timeCollected)
Collection time stamp
Example:
"2020-05-06T00:00:00.000Z" |
SqlPlanLine.Builder |
version(Float version)
Version
Example:
1 |
public SqlPlanLine.Builder version(Float version)
Version
Example: 1
version
- the value to setpublic SqlPlanLine.Builder sqlIdentifier(String sqlIdentifier)
Unique SQL_ID for a SQL Statement.
sqlIdentifier
- the value to setpublic SqlPlanLine.Builder planHash(Long planHash)
Plan hash value for the SQL Execution Plan
planHash
- the value to setpublic SqlPlanLine.Builder timeCollected(Date timeCollected)
Collection time stamp
Example: "2020-05-06T00:00:00.000Z"
timeCollected
- the value to setpublic SqlPlanLine.Builder operation(String operation)
Operation
Example: "SELECT STATEMENT"
operation
- the value to setpublic SqlPlanLine.Builder remark(String remark)
Remark
Example: ""
remark
- the value to setpublic SqlPlanLine.Builder options(String options)
Options
Example: "RANGE SCAN"
options
- the value to setpublic SqlPlanLine.Builder objectNode(String objectNode)
Object Node
Example: "Q4000"
objectNode
- the value to setpublic SqlPlanLine.Builder objectOwner(String objectOwner)
Object Owner
Example: "TENANT_A#SCHEMA"
objectOwner
- the value to setpublic SqlPlanLine.Builder objectName(String objectName)
Object Name
Example: "PLAN_LINES_PK"
objectName
- the value to setpublic SqlPlanLine.Builder objectAlias(String objectAlias)
Object Alias
Example: "PLAN_LINES@SEL$1"
objectAlias
- the value to setpublic SqlPlanLine.Builder objectInstance(Long objectInstance)
Object Instance
Example: 37472
objectInstance
- the value to setpublic SqlPlanLine.Builder objectType(String objectType)
Object Type
Example: "INDEX (UNIQUE)"
objectType
- the value to setpublic SqlPlanLine.Builder optimizer(String optimizer)
Optimizer
Example: "CLUSTER"
optimizer
- the value to setpublic SqlPlanLine.Builder searchColumns(Long searchColumns)
Search Columns
Example: 3
searchColumns
- the value to setpublic SqlPlanLine.Builder identifier(Long identifier)
Identifier
Example: 3
identifier
- the value to setpublic SqlPlanLine.Builder parentIdentifier(Long parentIdentifier)
Parent Identifier
Example: 2
parentIdentifier
- the value to setpublic SqlPlanLine.Builder depth(Long depth)
Depth
Example: 3
depth
- the value to setpublic SqlPlanLine.Builder position(Long position)
Position
Example: 1
position
- the value to setpublic SqlPlanLine.Builder cost(Long cost)
Cost
Example: 1
cost
- the value to setpublic SqlPlanLine.Builder cardinality(Long cardinality)
Cardinality
Example: 1
cardinality
- the value to setpublic SqlPlanLine.Builder bytes(Long bytes)
Bytes
Example: 150
bytes
- the value to setpublic SqlPlanLine.Builder other(String other)
Other Example:
other
- the value to setpublic SqlPlanLine.Builder otherTag(String otherTag)
Other Tag
Example: "PARALLEL_COMBINED_WITH_PARENT"
otherTag
- the value to setpublic SqlPlanLine.Builder partitionStart(String partitionStart)
Partition start
Example: 1
partitionStart
- the value to setpublic SqlPlanLine.Builder partitionStop(String partitionStop)
Partition stop
Example: 2
partitionStop
- the value to setpublic SqlPlanLine.Builder partitionIdentifier(Long partitionIdentifier)
Partition identifier
Example: 8
partitionIdentifier
- the value to setpublic SqlPlanLine.Builder distribution(String distribution)
Distribution
Example: "QC (RANDOM)"
distribution
- the value to setpublic SqlPlanLine.Builder cpuCost(Long cpuCost)
CPU cost
Example: 7321
cpuCost
- the value to setpublic SqlPlanLine.Builder ioCost(Long ioCost)
IO cost
Example: 1
ioCost
- the value to setpublic SqlPlanLine.Builder tempSpace(Long tempSpace)
Time space
Example: 15614000
tempSpace
- the value to setpublic SqlPlanLine.Builder accessPredicates(String accessPredicates)
Access predicates
Example: "\\"RESOURCE_ID\\"=:1 AND \\"QUERY_ID\\"=:2"
accessPredicates
- the value to setpublic SqlPlanLine.Builder filterPredicates(String filterPredicates)
Filter predicates
Example: "(INTERNAL_FUNCTION(\\"J\\".\\"DATABASE_ROLE\\") OR (\\"J\\".\\"DATABASE_ROLE\\" IS NULL AND SYS_CONTEXT('userenv','database_role')='PRIMARY'))"
filterPredicates
- the value to setpublic SqlPlanLine.Builder projection(String projection)
Projection
Example: "COUNT(*)[22]"
projection
- the value to setpublic SqlPlanLine.Builder qblockName(String qblockName)
Qblock Name
Example: "SEL$1"
qblockName
- the value to setpublic SqlPlanLine.Builder elapsedTimeInSec(Float elapsedTimeInSec)
Total elapsed time
Example: 1.2
elapsedTimeInSec
- the value to setpublic SqlPlanLine.Builder otherXML(String otherXML)
Other SQL
Example: "<other_xml><info type=\\"db_version\\">18.0.0.0</info><info type=\\"parse_schema\\"><![CDATA[\\"SYS\\"]]></info><info type=\\"plan_hash_full\\">483892784</info><info type=\\"plan_hash\\">2709293936</info><info type=\\"plan_hash_2\\">483892784</info><outline_data><hint><![CDATA[IGNORE_OPTIM_EMBEDDED_HINTS]]></hint><hint><![CDATA[OPTIMIZER_FEATURES_ENABLE('18.1.0')]]></hint><hint><![CDATA[DB_VERSION('18.1.0')]]></hint><hint><![CDATA[OPT_PARAM('_b_tree_bitmap_plans' 'false')]]></hint><hint><![CDATA[OPT_PARAM('_optim_peek_user_binds' 'false')]]></hint><hint><![CDATA[OPT_PARAM('result_cache_mode' 'FORCE')]]></hint><hint><![CDATA[OPT_PARAM('_fix_control' '20648883:0 27745220:1 30001331:1 30142527:1 30539126:1')]]></hint><hint><![CDATA[OUTLINE_LEAF(@\\"SEL$1\\")]]></hint><hint><![CDATA[INDEX(@\\"SEL$1\\" \\"USER$\\"@\\"SEL$1\\" \\"I_USER#\\")]]></hint></outline_data></other_xml>"
otherXML
- the value to setpublic SqlPlanLine build()
public SqlPlanLine.Builder copy(SqlPlanLine model)
Copyright © 2016–2023. All rights reserved.