Package com.oracle.bmc.opsi.model
Class SqlPlanLine.Builder
- java.lang.Object
- 
- com.oracle.bmc.opsi.model.SqlPlanLine.Builder
 
- 
- Enclosing class:
- SqlPlanLine
 
 public static class SqlPlanLine.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlPlanLine.BuilderaccessPredicates(String accessPredicates)Access predicates Example: “\“RESOURCE_ID\”=:1 AND \“QUERY_ID\”=:2”SqlPlanLinebuild()SqlPlanLine.Builderbytes(Long bytes)Bytes Example: 150SqlPlanLine.Buildercardinality(Long cardinality)Cardinality Example: 1SqlPlanLine.Buildercopy(SqlPlanLine model)SqlPlanLine.Buildercost(Long cost)Cost Example: 1SqlPlanLine.BuildercpuCost(Long cpuCost)CPU cost Example: 7321SqlPlanLine.Builderdepth(Long depth)Depth Example: 3SqlPlanLine.Builderdistribution(String distribution)Distribution Example: “QC (RANDOM)”SqlPlanLine.BuilderelapsedTimeInSec(Float elapsedTimeInSec)Total elapsed time Example: 1.2SqlPlanLine.BuilderfilterPredicates(String filterPredicates)Filter predicates Example: “(INTERNAL_FUNCTION(\“J\”.\“DATABASE_ROLE\”) OR (\“J\”.\“DATABASE_ROLE\” IS NULL AND SYS_CONTEXT(‘userenv’,‘database_role’)=‘PRIMARY’))”SqlPlanLine.BuilderforceMatchingSignature(String forceMatchingSignature)Force matching signature Example: “18067345456756876713”SqlPlanLine.Builderidentifier(Long identifier)Identifier Example: 3SqlPlanLine.BuilderioCost(Long ioCost)IO cost Example: 1SqlPlanLine.BuilderobjectAlias(String objectAlias)Object Alias Example: “PLAN_LINES@SEL$1”SqlPlanLine.BuilderobjectInstance(Long objectInstance)Object Instance Example: 37472SqlPlanLine.BuilderobjectName(String objectName)Object Name Example: “PLAN_LINES_PK”SqlPlanLine.BuilderobjectNode(String objectNode)Object Node Example: “Q4000”SqlPlanLine.BuilderobjectOwner(String objectOwner)Object Owner Example: “TENANT_A#SCHEMA”SqlPlanLine.BuilderobjectType(String objectType)Object Type Example: “INDEX (UNIQUE)”SqlPlanLine.Builderoperation(String operation)Operation Example: “SELECT STATEMENT”SqlPlanLine.Builderoptimizer(String optimizer)Optimizer Example: “CLUSTER”SqlPlanLine.Builderoptions(String options)Options Example: “RANGE SCAN”SqlPlanLine.Builderother(String other)Other Example:SqlPlanLine.BuilderotherTag(String otherTag)Other Tag Example: “PARALLEL_COMBINED_WITH_PARENT”SqlPlanLine.BuilderotherXML(String otherXML)Other SQL Example: “<other_xml><info type=\“db_version\”>18.0.0.0<info type=\“parse_schema\”><info type=\“plan_hash_full\”>483892784<info type=\“plan_hash\”>2709293936<info type=\“plan_hash_2\”>483892784<outline_data></outline_data></other_xml>” SqlPlanLine.BuilderparentIdentifier(Long parentIdentifier)Parent Identifier Example: 2SqlPlanLine.BuilderpartitionIdentifier(Long partitionIdentifier)Partition identifier Example: 8SqlPlanLine.BuilderpartitionStart(String partitionStart)Partition start Example: 1SqlPlanLine.BuilderpartitionStop(String partitionStop)Partition stop Example: 2SqlPlanLine.BuilderplanHash(Long planHash)Plan hash value for the SQL Execution PlanSqlPlanLine.Builderposition(Long position)Position Example: 1SqlPlanLine.Builderprojection(String projection)Projection Example: “COUNT(*)[22]”SqlPlanLine.BuilderqblockName(String qblockName)Qblock Name Example: “SEL$1”SqlPlanLine.Builderremark(String remark)Remark Example: ""SqlPlanLine.BuildersearchColumns(Long searchColumns)Search Columns Example: 3SqlPlanLine.BuildersqlIdentifier(String sqlIdentifier)Unique SQL_ID for a SQL Statement.SqlPlanLine.BuildertempSpace(Long tempSpace)Time space Example: 15614000SqlPlanLine.BuildertimeCollected(Date timeCollected)Collection time stamp Example: “2020-05-06T00:00:00.000Z”SqlPlanLine.BuildertimeGenerated(Date timeGenerated)Generation time stamp Example: “2020-05-05T02:10:00.000Z”SqlPlanLine.Builderversion(Float version)Version Example: 1
 
- 
- 
- 
Method Detail- 
versionpublic SqlPlanLine.Builder version(Float version) Version Example: 1- Parameters:
- version- the value to set
- Returns:
- this builder
 
 - 
sqlIdentifierpublic SqlPlanLine.Builder sqlIdentifier(String sqlIdentifier) Unique SQL_ID for a SQL Statement.- Parameters:
- sqlIdentifier- the value to set
- Returns:
- this builder
 
 - 
planHashpublic SqlPlanLine.Builder planHash(Long planHash) Plan hash value for the SQL Execution Plan- Parameters:
- planHash- the value to set
- Returns:
- this builder
 
 - 
forceMatchingSignaturepublic SqlPlanLine.Builder forceMatchingSignature(String forceMatchingSignature) Force matching signature Example: “18067345456756876713”- Parameters:
- forceMatchingSignature- the value to set
- Returns:
- this builder
 
 - 
timeGeneratedpublic SqlPlanLine.Builder timeGenerated(Date timeGenerated) Generation time stamp Example: “2020-05-05T02:10:00.000Z”- Parameters:
- timeGenerated- the value to set
- Returns:
- this builder
 
 - 
timeCollectedpublic SqlPlanLine.Builder timeCollected(Date timeCollected) Collection time stamp Example: “2020-05-06T00:00:00.000Z”- Parameters:
- timeCollected- the value to set
- Returns:
- this builder
 
 - 
operationpublic SqlPlanLine.Builder operation(String operation) Operation Example: “SELECT STATEMENT”- Parameters:
- operation- the value to set
- Returns:
- this builder
 
 - 
remarkpublic SqlPlanLine.Builder remark(String remark) Remark Example: ""- Parameters:
- remark- the value to set
- Returns:
- this builder
 
 - 
optionspublic SqlPlanLine.Builder options(String options) Options Example: “RANGE SCAN”- Parameters:
- options- the value to set
- Returns:
- this builder
 
 - 
objectNodepublic SqlPlanLine.Builder objectNode(String objectNode) Object Node Example: “Q4000”- Parameters:
- objectNode- the value to set
- Returns:
- this builder
 
 - 
objectOwnerpublic SqlPlanLine.Builder objectOwner(String objectOwner) Object Owner Example: “TENANT_A#SCHEMA”- Parameters:
- objectOwner- the value to set
- Returns:
- this builder
 
 - 
objectNamepublic SqlPlanLine.Builder objectName(String objectName) Object Name Example: “PLAN_LINES_PK”- Parameters:
- objectName- the value to set
- Returns:
- this builder
 
 - 
objectAliaspublic SqlPlanLine.Builder objectAlias(String objectAlias) Object Alias Example: “PLAN_LINES@SEL$1”- Parameters:
- objectAlias- the value to set
- Returns:
- this builder
 
 - 
objectInstancepublic SqlPlanLine.Builder objectInstance(Long objectInstance) Object Instance Example: 37472- Parameters:
- objectInstance- the value to set
- Returns:
- this builder
 
 - 
objectTypepublic SqlPlanLine.Builder objectType(String objectType) Object Type Example: “INDEX (UNIQUE)”- Parameters:
- objectType- the value to set
- Returns:
- this builder
 
 - 
optimizerpublic SqlPlanLine.Builder optimizer(String optimizer) Optimizer Example: “CLUSTER”- Parameters:
- optimizer- the value to set
- Returns:
- this builder
 
 - 
searchColumnspublic SqlPlanLine.Builder searchColumns(Long searchColumns) Search Columns Example: 3- Parameters:
- searchColumns- the value to set
- Returns:
- this builder
 
 - 
identifierpublic SqlPlanLine.Builder identifier(Long identifier) Identifier Example: 3- Parameters:
- identifier- the value to set
- Returns:
- this builder
 
 - 
parentIdentifierpublic SqlPlanLine.Builder parentIdentifier(Long parentIdentifier) Parent Identifier Example: 2- Parameters:
- parentIdentifier- the value to set
- Returns:
- this builder
 
 - 
depthpublic SqlPlanLine.Builder depth(Long depth) Depth Example: 3- Parameters:
- depth- the value to set
- Returns:
- this builder
 
 - 
positionpublic SqlPlanLine.Builder position(Long position) Position Example: 1- Parameters:
- position- the value to set
- Returns:
- this builder
 
 - 
costpublic SqlPlanLine.Builder cost(Long cost) Cost Example: 1- Parameters:
- cost- the value to set
- Returns:
- this builder
 
 - 
cardinalitypublic SqlPlanLine.Builder cardinality(Long cardinality) Cardinality Example: 1- Parameters:
- cardinality- the value to set
- Returns:
- this builder
 
 - 
bytespublic SqlPlanLine.Builder bytes(Long bytes) Bytes Example: 150- Parameters:
- bytes- the value to set
- Returns:
- this builder
 
 - 
otherpublic SqlPlanLine.Builder other(String other) Other Example:- Parameters:
- other- the value to set
- Returns:
- this builder
 
 - 
otherTagpublic SqlPlanLine.Builder otherTag(String otherTag) Other Tag Example: “PARALLEL_COMBINED_WITH_PARENT”- Parameters:
- otherTag- the value to set
- Returns:
- this builder
 
 - 
partitionStartpublic SqlPlanLine.Builder partitionStart(String partitionStart) Partition start Example: 1- Parameters:
- partitionStart- the value to set
- Returns:
- this builder
 
 - 
partitionStoppublic SqlPlanLine.Builder partitionStop(String partitionStop) Partition stop Example: 2- Parameters:
- partitionStop- the value to set
- Returns:
- this builder
 
 - 
partitionIdentifierpublic SqlPlanLine.Builder partitionIdentifier(Long partitionIdentifier) Partition identifier Example: 8- Parameters:
- partitionIdentifier- the value to set
- Returns:
- this builder
 
 - 
distributionpublic SqlPlanLine.Builder distribution(String distribution) Distribution Example: “QC (RANDOM)”- Parameters:
- distribution- the value to set
- Returns:
- this builder
 
 - 
cpuCostpublic SqlPlanLine.Builder cpuCost(Long cpuCost) CPU cost Example: 7321- Parameters:
- cpuCost- the value to set
- Returns:
- this builder
 
 - 
ioCostpublic SqlPlanLine.Builder ioCost(Long ioCost) IO cost Example: 1- Parameters:
- ioCost- the value to set
- Returns:
- this builder
 
 - 
tempSpacepublic SqlPlanLine.Builder tempSpace(Long tempSpace) Time space Example: 15614000- Parameters:
- tempSpace- the value to set
- Returns:
- this builder
 
 - 
accessPredicatespublic SqlPlanLine.Builder accessPredicates(String accessPredicates) Access predicates Example: “\“RESOURCE_ID\”=:1 AND \“QUERY_ID\”=:2”- Parameters:
- accessPredicates- the value to set
- Returns:
- this builder
 
 - 
filterPredicatespublic 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’))”- Parameters:
- filterPredicates- the value to set
- Returns:
- this builder
 
 - 
projectionpublic SqlPlanLine.Builder projection(String projection) Projection Example: “COUNT(*)[22]”- Parameters:
- projection- the value to set
- Returns:
- this builder
 
 - 
qblockNamepublic SqlPlanLine.Builder qblockName(String qblockName) Qblock Name Example: “SEL$1”- Parameters:
- qblockName- the value to set
- Returns:
- this builder
 
 - 
elapsedTimeInSecpublic SqlPlanLine.Builder elapsedTimeInSec(Float elapsedTimeInSec) Total elapsed time Example: 1.2- Parameters:
- elapsedTimeInSec- the value to set
- Returns:
- this builder
 
 - 
otherXMLpublic SqlPlanLine.Builder otherXML(String otherXML) Other SQL Example: “<other_xml><info type=\“db_version\”>18.0.0.0<info type=\“parse_schema\”><info type=\“plan_hash_full\”>483892784<info type=\“plan_hash\”>2709293936<info type=\“plan_hash_2\”>483892784<outline_data></outline_data></other_xml>” - Parameters:
- otherXML- the value to set
- Returns:
- this builder
 
 - 
buildpublic SqlPlanLine build() 
 - 
copypublic SqlPlanLine.Builder copy(SqlPlanLine model) 
 
- 
 
-