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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DmlStatistics

Returns a new instance of DmlStatistics.



1961
1962
1963
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1961

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

Instance Attribute Details

#deleted_row_countFixnum

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

Returns:

  • (Fixnum)


1949
1950
1951
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1949

def deleted_row_count
  @deleted_row_count
end

#inserted_row_countFixnum

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

Returns:

  • (Fixnum)


1954
1955
1956
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1954

def inserted_row_count
  @inserted_row_count
end

#updated_row_countFixnum

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

Returns:

  • (Fixnum)


1959
1960
1961
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1959

def updated_row_count
  @updated_row_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1966
1967
1968
1969
1970
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1966

def update!(**args)
  @deleted_row_count = args[:deleted_row_count] if args.key?(:deleted_row_count)
  @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