Class: Google::Apis::BigqueryV2::DmlStatistics

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Overview

Detailed statistics for DML statements

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DmlStatistics

Returns a new instance of DmlStatistics.



2718
2719
2720
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2718

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deleted_row_countFixnum

Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements. Corresponds to the JSON property deletedRowCount

Returns:

  • (Fixnum)


2694
2695
2696
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2694

def deleted_row_count
  @deleted_row_count
end

#dml_modeString

Output only. DML mode used. Corresponds to the JSON property dmlMode

Returns:

  • (String)


2699
2700
2701
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2699

def dml_mode
  @dml_mode
end

#fine_grained_dml_unused_reasonString

Output only. Reason for disabling fine-grained DML if applicable. Corresponds to the JSON property fineGrainedDmlUnusedReason

Returns:

  • (String)


2704
2705
2706
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2704

def fine_grained_dml_unused_reason
  @fine_grained_dml_unused_reason
end

#inserted_row_countFixnum

Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements Corresponds to the JSON property insertedRowCount

Returns:

  • (Fixnum)


2710
2711
2712
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2710

def inserted_row_count
  @inserted_row_count
end

#updated_row_countFixnum

Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements. Corresponds to the JSON property updatedRowCount

Returns:

  • (Fixnum)


2716
2717
2718
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2716

def updated_row_count
  @updated_row_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2723
2724
2725
2726
2727
2728
2729
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2723

def update!(**args)
  @deleted_row_count = args[:deleted_row_count] if args.key?(:deleted_row_count)
  @dml_mode = args[:dml_mode] if args.key?(:dml_mode)
  @fine_grained_dml_unused_reason = args[:fine_grained_dml_unused_reason] if args.key?(:fine_grained_dml_unused_reason)
  @inserted_row_count = args[:inserted_row_count] if args.key?(:inserted_row_count)
  @updated_row_count = args[:updated_row_count] if args.key?(:updated_row_count)
end