Class: OCI::Opsi::Models::SqlPlanLine
- Inherits:
-
Object
- Object
- OCI::Opsi::Models::SqlPlanLine
- Defined in:
- lib/oci/opsi/models/sql_plan_line.rb
Overview
SQL Plan Line type object.
Instance Attribute Summary collapse
-
#access_predicates ⇒ String
Access predicates Example:
\"\\"RESOURCE_ID\\"=:1 AND \\"QUERY_ID\\"=:2\"
. -
#bytes ⇒ Integer
Bytes Example:
150
. -
#cardinality ⇒ Integer
Cardinality Example:
1
. -
#cost ⇒ Integer
Cost Example:
1
. -
#cpu_cost ⇒ Integer
CPU cost Example:
7321
. -
#depth ⇒ Integer
Depth Example:
3
. -
#distribution ⇒ String
Distribution Example:
\"QC (RANDOM)\"
. -
#elapsed_time_in_sec ⇒ Float
Total elapsed time Example:
1.2
. -
#filter_predicates ⇒ String
Filter predicates Example:
\"(INTERNAL_FUNCTION(\\"J\\".\\"DATABASE_ROLE\\") OR (\\"J\\".\\"DATABASE_ROLE\\" IS NULL AND SYS_CONTEXT('userenv','database_role')='PRIMARY'))\"
. -
#identifier ⇒ Integer
[Required] Identifier Example:
3
. -
#io_cost ⇒ Integer
IO cost Example:
1
. -
#object_alias ⇒ String
Object Alias Example:
\"PLAN_LINES@SEL$1\"
. -
#object_instance ⇒ Integer
Object Instance Example:
37472
. -
#object_name ⇒ String
Object Name Example:
\"PLAN_LINES_PK\"
. -
#object_node ⇒ String
Object Node Example:
\"Q4000\"
. -
#object_owner ⇒ String
Object Owner Example:
\"TENANT_A#SCHEMA\"
. -
#object_type ⇒ String
Object Type Example:
\"INDEX (UNIQUE)\"
. -
#operation ⇒ String
[Required] Operation Example:
\"SELECT STATEMENT\"
. -
#optimizer ⇒ String
Optimizer Example:
\"CLUSTER\"
. -
#options ⇒ String
Options Example:
\"RANGE SCAN\"
. -
#other ⇒ String
Other Example: “.
-
#other_tag ⇒ String
Other Tag Example:
\"PARALLEL_COMBINED_WITH_PARENT\"
. -
#other_xml ⇒ String
Other SQL Example:
\"<other_xml><info type=\\"db_version\\">18.0.0.0</info><info type=\\"parse_schema\\">483892784
. -
#parent_identifier ⇒ Integer
Parent Identifier Example:
2
. -
#partition_identifier ⇒ Integer
Partition identifier Example:
8
. -
#partition_start ⇒ String
Partition start Example:
1
. -
#partition_stop ⇒ String
Partition stop Example:
2
. -
#plan_hash ⇒ Integer
[Required] Plan hash value for the SQL Execution Plan.
-
#position ⇒ Integer
Position Example:
1
. -
#projection ⇒ String
Projection Example:
\"COUNT(*)[22]\"
. -
#qblock_name ⇒ String
Qblock Name Example:
\"SEL$1\"
. -
#remark ⇒ String
Remark Example:
\"\"
. -
#search_columns ⇒ Integer
Search Columns Example:
3
. -
#sql_identifier ⇒ String
[Required] Unique SQL_ID for a SQL Statement.
-
#temp_space ⇒ Integer
Time space Example:
15614000
. -
#time_collected ⇒ DateTime
[Required] Collection time stamp Example:
\"2020-05-06T00:00:00.000Z\"
. -
#version ⇒ Float
Version Example:
1
.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ SqlPlanLine
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ SqlPlanLine
Initializes the object
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 363 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.version = attributes[:'version'] if attributes[:'version'] self.sql_identifier = attributes[:'sqlIdentifier'] if attributes[:'sqlIdentifier'] raise 'You cannot provide both :sqlIdentifier and :sql_identifier' if attributes.key?(:'sqlIdentifier') && attributes.key?(:'sql_identifier') self.sql_identifier = attributes[:'sql_identifier'] if attributes[:'sql_identifier'] self.plan_hash = attributes[:'planHash'] if attributes[:'planHash'] raise 'You cannot provide both :planHash and :plan_hash' if attributes.key?(:'planHash') && attributes.key?(:'plan_hash') self.plan_hash = attributes[:'plan_hash'] if attributes[:'plan_hash'] self.time_collected = attributes[:'timeCollected'] if attributes[:'timeCollected'] raise 'You cannot provide both :timeCollected and :time_collected' if attributes.key?(:'timeCollected') && attributes.key?(:'time_collected') self.time_collected = attributes[:'time_collected'] if attributes[:'time_collected'] self.operation = attributes[:'operation'] if attributes[:'operation'] self.remark = attributes[:'remark'] if attributes[:'remark'] self. = attributes[:'options'] if attributes[:'options'] self.object_node = attributes[:'objectNode'] if attributes[:'objectNode'] raise 'You cannot provide both :objectNode and :object_node' if attributes.key?(:'objectNode') && attributes.key?(:'object_node') self.object_node = attributes[:'object_node'] if attributes[:'object_node'] self.object_owner = attributes[:'objectOwner'] if attributes[:'objectOwner'] raise 'You cannot provide both :objectOwner and :object_owner' if attributes.key?(:'objectOwner') && attributes.key?(:'object_owner') self.object_owner = attributes[:'object_owner'] if attributes[:'object_owner'] self.object_name = attributes[:'objectName'] if attributes[:'objectName'] raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name') self.object_name = attributes[:'object_name'] if attributes[:'object_name'] self.object_alias = attributes[:'objectAlias'] if attributes[:'objectAlias'] raise 'You cannot provide both :objectAlias and :object_alias' if attributes.key?(:'objectAlias') && attributes.key?(:'object_alias') self.object_alias = attributes[:'object_alias'] if attributes[:'object_alias'] self.object_instance = attributes[:'objectInstance'] if attributes[:'objectInstance'] raise 'You cannot provide both :objectInstance and :object_instance' if attributes.key?(:'objectInstance') && attributes.key?(:'object_instance') self.object_instance = attributes[:'object_instance'] if attributes[:'object_instance'] self.object_type = attributes[:'objectType'] if attributes[:'objectType'] raise 'You cannot provide both :objectType and :object_type' if attributes.key?(:'objectType') && attributes.key?(:'object_type') self.object_type = attributes[:'object_type'] if attributes[:'object_type'] self.optimizer = attributes[:'optimizer'] if attributes[:'optimizer'] self.search_columns = attributes[:'searchColumns'] if attributes[:'searchColumns'] raise 'You cannot provide both :searchColumns and :search_columns' if attributes.key?(:'searchColumns') && attributes.key?(:'search_columns') self.search_columns = attributes[:'search_columns'] if attributes[:'search_columns'] self.identifier = attributes[:'identifier'] if attributes[:'identifier'] self.parent_identifier = attributes[:'parentIdentifier'] if attributes[:'parentIdentifier'] raise 'You cannot provide both :parentIdentifier and :parent_identifier' if attributes.key?(:'parentIdentifier') && attributes.key?(:'parent_identifier') self.parent_identifier = attributes[:'parent_identifier'] if attributes[:'parent_identifier'] self.depth = attributes[:'depth'] if attributes[:'depth'] self.position = attributes[:'position'] if attributes[:'position'] self.cost = attributes[:'cost'] if attributes[:'cost'] self.cardinality = attributes[:'cardinality'] if attributes[:'cardinality'] self.bytes = attributes[:'bytes'] if attributes[:'bytes'] self.other = attributes[:'other'] if attributes[:'other'] self.other_tag = attributes[:'otherTag'] if attributes[:'otherTag'] raise 'You cannot provide both :otherTag and :other_tag' if attributes.key?(:'otherTag') && attributes.key?(:'other_tag') self.other_tag = attributes[:'other_tag'] if attributes[:'other_tag'] self.partition_start = attributes[:'partitionStart'] if attributes[:'partitionStart'] raise 'You cannot provide both :partitionStart and :partition_start' if attributes.key?(:'partitionStart') && attributes.key?(:'partition_start') self.partition_start = attributes[:'partition_start'] if attributes[:'partition_start'] self.partition_stop = attributes[:'partitionStop'] if attributes[:'partitionStop'] raise 'You cannot provide both :partitionStop and :partition_stop' if attributes.key?(:'partitionStop') && attributes.key?(:'partition_stop') self.partition_stop = attributes[:'partition_stop'] if attributes[:'partition_stop'] self.partition_identifier = attributes[:'partitionIdentifier'] if attributes[:'partitionIdentifier'] raise 'You cannot provide both :partitionIdentifier and :partition_identifier' if attributes.key?(:'partitionIdentifier') && attributes.key?(:'partition_identifier') self.partition_identifier = attributes[:'partition_identifier'] if attributes[:'partition_identifier'] self.distribution = attributes[:'distribution'] if attributes[:'distribution'] self.cpu_cost = attributes[:'cpuCost'] if attributes[:'cpuCost'] raise 'You cannot provide both :cpuCost and :cpu_cost' if attributes.key?(:'cpuCost') && attributes.key?(:'cpu_cost') self.cpu_cost = attributes[:'cpu_cost'] if attributes[:'cpu_cost'] self.io_cost = attributes[:'ioCost'] if attributes[:'ioCost'] raise 'You cannot provide both :ioCost and :io_cost' if attributes.key?(:'ioCost') && attributes.key?(:'io_cost') self.io_cost = attributes[:'io_cost'] if attributes[:'io_cost'] self.temp_space = attributes[:'tempSpace'] if attributes[:'tempSpace'] raise 'You cannot provide both :tempSpace and :temp_space' if attributes.key?(:'tempSpace') && attributes.key?(:'temp_space') self.temp_space = attributes[:'temp_space'] if attributes[:'temp_space'] self.access_predicates = attributes[:'accessPredicates'] if attributes[:'accessPredicates'] raise 'You cannot provide both :accessPredicates and :access_predicates' if attributes.key?(:'accessPredicates') && attributes.key?(:'access_predicates') self.access_predicates = attributes[:'access_predicates'] if attributes[:'access_predicates'] self.filter_predicates = attributes[:'filterPredicates'] if attributes[:'filterPredicates'] raise 'You cannot provide both :filterPredicates and :filter_predicates' if attributes.key?(:'filterPredicates') && attributes.key?(:'filter_predicates') self.filter_predicates = attributes[:'filter_predicates'] if attributes[:'filter_predicates'] self.projection = attributes[:'projection'] if attributes[:'projection'] self.qblock_name = attributes[:'qblockName'] if attributes[:'qblockName'] raise 'You cannot provide both :qblockName and :qblock_name' if attributes.key?(:'qblockName') && attributes.key?(:'qblock_name') self.qblock_name = attributes[:'qblock_name'] if attributes[:'qblock_name'] self.elapsed_time_in_sec = attributes[:'elapsedTimeInSec'] if attributes[:'elapsedTimeInSec'] raise 'You cannot provide both :elapsedTimeInSec and :elapsed_time_in_sec' if attributes.key?(:'elapsedTimeInSec') && attributes.key?(:'elapsed_time_in_sec') self.elapsed_time_in_sec = attributes[:'elapsed_time_in_sec'] if attributes[:'elapsed_time_in_sec'] self.other_xml = attributes[:'otherXML'] if attributes[:'otherXML'] raise 'You cannot provide both :otherXML and :other_xml' if attributes.key?(:'otherXML') && attributes.key?(:'other_xml') self.other_xml = attributes[:'other_xml'] if attributes[:'other_xml'] end |
Instance Attribute Details
#access_predicates ⇒ String
Access predicates Example: \"\\"RESOURCE_ID\\"=:1 AND \\"QUERY_ID\\"=:2\"
198 199 200 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 198 def access_predicates @access_predicates end |
#bytes ⇒ Integer
Bytes Example: 150
138 139 140 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 138 def bytes @bytes end |
#cardinality ⇒ Integer
Cardinality Example: 1
132 133 134 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 132 def cardinality @cardinality end |
#cost ⇒ Integer
Cost Example: 1
126 127 128 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 126 def cost @cost end |
#cpu_cost ⇒ Integer
CPU cost Example: 7321
180 181 182 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 180 def cpu_cost @cpu_cost end |
#depth ⇒ Integer
Depth Example: 3
114 115 116 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 114 def depth @depth end |
#distribution ⇒ String
Distribution Example: \"QC (RANDOM)\"
174 175 176 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 174 def distribution @distribution end |
#elapsed_time_in_sec ⇒ Float
Total elapsed time Example: 1.2
222 223 224 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 222 def elapsed_time_in_sec @elapsed_time_in_sec end |
#filter_predicates ⇒ String
Filter predicates Example: \"(INTERNAL_FUNCTION(\\"J\\".\\"DATABASE_ROLE\\") OR (\\"J\\".\\"DATABASE_ROLE\\" IS NULL AND SYS_CONTEXT('userenv','database_role')='PRIMARY'))\"
204 205 206 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 204 def filter_predicates @filter_predicates end |
#identifier ⇒ Integer
[Required] Identifier Example: 3
102 103 104 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 102 def identifier @identifier end |
#io_cost ⇒ Integer
IO cost Example: 1
186 187 188 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 186 def io_cost @io_cost end |
#object_alias ⇒ String
Object Alias Example: \"PLAN_LINES@SEL$1\"
72 73 74 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 72 def object_alias @object_alias end |
#object_instance ⇒ Integer
Object Instance Example: 37472
78 79 80 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 78 def object_instance @object_instance end |
#object_name ⇒ String
Object Name Example: \"PLAN_LINES_PK\"
66 67 68 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 66 def object_name @object_name end |
#object_node ⇒ String
Object Node Example: \"Q4000\"
54 55 56 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 54 def object_node @object_node end |
#object_owner ⇒ String
Object Owner Example: \"TENANT_A#SCHEMA\"
60 61 62 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 60 def object_owner @object_owner end |
#object_type ⇒ String
Object Type Example: \"INDEX (UNIQUE)\"
84 85 86 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 84 def object_type @object_type end |
#operation ⇒ String
[Required] Operation Example: \"SELECT STATEMENT\"
36 37 38 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 36 def operation @operation end |
#optimizer ⇒ String
Optimizer Example: \"CLUSTER\"
90 91 92 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 90 def optimizer @optimizer end |
#options ⇒ String
Options Example: \"RANGE SCAN\"
48 49 50 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 48 def @options end |
#other ⇒ String
Other Example: “
144 145 146 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 144 def other @other end |
#other_tag ⇒ String
Other Tag Example: \"PARALLEL_COMBINED_WITH_PARENT\"
150 151 152 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 150 def other_tag @other_tag end |
#other_xml ⇒ String
Other SQL Example: \"<other_xml><info type=\\"db_version\\">18.0.0.0</info><info type=\\"parse_schema\\">483892784
228 229 230 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 228 def other_xml @other_xml end |
#parent_identifier ⇒ Integer
Parent Identifier Example: 2
108 109 110 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 108 def parent_identifier @parent_identifier end |
#partition_identifier ⇒ Integer
Partition identifier Example: 8
168 169 170 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 168 def partition_identifier @partition_identifier end |
#partition_start ⇒ String
Partition start Example: 1
156 157 158 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 156 def partition_start @partition_start end |
#partition_stop ⇒ String
Partition stop Example: 2
162 163 164 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 162 def partition_stop @partition_stop end |
#plan_hash ⇒ Integer
[Required] Plan hash value for the SQL Execution Plan
24 25 26 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 24 def plan_hash @plan_hash end |
#position ⇒ Integer
Position Example: 1
120 121 122 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 120 def position @position end |
#projection ⇒ String
Projection Example: \"COUNT(*)[22]\"
210 211 212 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 210 def projection @projection end |
#qblock_name ⇒ String
Qblock Name Example: \"SEL$1\"
216 217 218 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 216 def qblock_name @qblock_name end |
#remark ⇒ String
Remark Example: \"\"
42 43 44 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 42 def remark @remark end |
#search_columns ⇒ Integer
Search Columns Example: 3
96 97 98 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 96 def search_columns @search_columns end |
#sql_identifier ⇒ String
[Required] Unique SQL_ID for a SQL Statement.
20 21 22 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 20 def sql_identifier @sql_identifier end |
#temp_space ⇒ Integer
Time space Example: 15614000
192 193 194 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 192 def temp_space @temp_space end |
#time_collected ⇒ DateTime
[Required] Collection time stamp Example: \"2020-05-06T00:00:00.000Z\"
30 31 32 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 30 def time_collected @time_collected end |
#version ⇒ Float
Version Example: 1
15 16 17 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 15 def version @version end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 231 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'version': :'version', 'sql_identifier': :'sqlIdentifier', 'plan_hash': :'planHash', 'time_collected': :'timeCollected', 'operation': :'operation', 'remark': :'remark', 'options': :'options', 'object_node': :'objectNode', 'object_owner': :'objectOwner', 'object_name': :'objectName', 'object_alias': :'objectAlias', 'object_instance': :'objectInstance', 'object_type': :'objectType', 'optimizer': :'optimizer', 'search_columns': :'searchColumns', 'identifier': :'identifier', 'parent_identifier': :'parentIdentifier', 'depth': :'depth', 'position': :'position', 'cost': :'cost', 'cardinality': :'cardinality', 'bytes': :'bytes', 'other': :'other', 'other_tag': :'otherTag', 'partition_start': :'partitionStart', 'partition_stop': :'partitionStop', 'partition_identifier': :'partitionIdentifier', 'distribution': :'distribution', 'cpu_cost': :'cpuCost', 'io_cost': :'ioCost', 'temp_space': :'tempSpace', 'access_predicates': :'accessPredicates', 'filter_predicates': :'filterPredicates', 'projection': :'projection', 'qblock_name': :'qblockName', 'elapsed_time_in_sec': :'elapsedTimeInSec', 'other_xml': :'otherXML' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 276 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'version': :'Float', 'sql_identifier': :'String', 'plan_hash': :'Integer', 'time_collected': :'DateTime', 'operation': :'String', 'remark': :'String', 'options': :'String', 'object_node': :'String', 'object_owner': :'String', 'object_name': :'String', 'object_alias': :'String', 'object_instance': :'Integer', 'object_type': :'String', 'optimizer': :'String', 'search_columns': :'Integer', 'identifier': :'Integer', 'parent_identifier': :'Integer', 'depth': :'Integer', 'position': :'Integer', 'cost': :'Integer', 'cardinality': :'Integer', 'bytes': :'Integer', 'other': :'String', 'other_tag': :'String', 'partition_start': :'String', 'partition_stop': :'String', 'partition_identifier': :'Integer', 'distribution': :'String', 'cpu_cost': :'Integer', 'io_cost': :'Integer', 'temp_space': :'Integer', 'access_predicates': :'String', 'filter_predicates': :'String', 'projection': :'String', 'qblock_name': :'String', 'elapsed_time_in_sec': :'Float', 'other_xml': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 543 def ==(other) return true if equal?(other) self.class == other.class && version == other.version && sql_identifier == other.sql_identifier && plan_hash == other.plan_hash && time_collected == other.time_collected && operation == other.operation && remark == other.remark && == other. && object_node == other.object_node && object_owner == other.object_owner && object_name == other.object_name && object_alias == other.object_alias && object_instance == other.object_instance && object_type == other.object_type && optimizer == other.optimizer && search_columns == other.search_columns && identifier == other.identifier && parent_identifier == other.parent_identifier && depth == other.depth && position == other.position && cost == other.cost && cardinality == other.cardinality && bytes == other.bytes && other == other.other && other_tag == other.other_tag && partition_start == other.partition_start && partition_stop == other.partition_stop && partition_identifier == other.partition_identifier && distribution == other.distribution && cpu_cost == other.cpu_cost && io_cost == other.io_cost && temp_space == other.temp_space && access_predicates == other.access_predicates && filter_predicates == other.filter_predicates && projection == other.projection && qblock_name == other.qblock_name && elapsed_time_in_sec == other.elapsed_time_in_sec && other_xml == other.other_xml end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 609 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
589 590 591 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 589 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
598 599 600 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 598 def hash [version, sql_identifier, plan_hash, time_collected, operation, remark, , object_node, object_owner, object_name, object_alias, object_instance, object_type, optimizer, search_columns, identifier, parent_identifier, depth, position, cost, cardinality, bytes, other, other_tag, partition_start, partition_stop, partition_identifier, distribution, cpu_cost, io_cost, temp_space, access_predicates, filter_predicates, projection, qblock_name, elapsed_time_in_sec, other_xml].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
642 643 644 645 646 647 648 649 650 651 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 642 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
636 637 638 |
# File 'lib/oci/opsi/models/sql_plan_line.rb', line 636 def to_s to_hash.to_s end |