Class: Google::Apis::BigqueryV2::JobStatistics3

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JobStatistics3

Returns a new instance of JobStatistics3



2191
2192
2193
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2191

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

Instance Attribute Details

#bad_recordsFixnum

[Output-only] The number of bad records encountered. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data. Corresponds to the JSON property badRecords

Returns:

  • (Fixnum)


2167
2168
2169
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2167

def bad_records
  @bad_records
end

#input_file_bytesFixnum

[Output-only] Number of bytes of source data in a load job. Corresponds to the JSON property inputFileBytes

Returns:

  • (Fixnum)


2172
2173
2174
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2172

def input_file_bytes
  @input_file_bytes
end

#input_filesFixnum

[Output-only] Number of source files in a load job. Corresponds to the JSON property inputFiles

Returns:

  • (Fixnum)


2177
2178
2179
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2177

def input_files
  @input_files
end

#output_bytesFixnum

[Output-only] Size of the loaded data in bytes. Note that while a load job is in the running state, this value may change. Corresponds to the JSON property outputBytes

Returns:

  • (Fixnum)


2183
2184
2185
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2183

def output_bytes
  @output_bytes
end

#output_rowsFixnum

[Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change. Corresponds to the JSON property outputRows

Returns:

  • (Fixnum)


2189
2190
2191
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2189

def output_rows
  @output_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2196
2197
2198
2199
2200
2201
2202
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2196

def update!(**args)
  @bad_records = args[:bad_records] if args.key?(:bad_records)
  @input_file_bytes = args[:input_file_bytes] if args.key?(:input_file_bytes)
  @input_files = args[:input_files] if args.key?(:input_files)
  @output_bytes = args[:output_bytes] if args.key?(:output_bytes)
  @output_rows = args[:output_rows] if args.key?(:output_rows)
end