Class: Google::Apis::BigqueryV2::Streamingbuffer

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) ⇒ Streamingbuffer

Returns a new instance of Streamingbuffer.



6155
6156
6157
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6155

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

Instance Attribute Details

#estimated_bytesFixnum

[Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer. Corresponds to the JSON property estimatedBytes

Returns:

  • (Fixnum)


6141
6142
6143
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6141

def estimated_bytes
  @estimated_bytes
end

#estimated_rowsFixnum

[Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer. Corresponds to the JSON property estimatedRows

Returns:

  • (Fixnum)


6147
6148
6149
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6147

def estimated_rows
  @estimated_rows
end

#oldest_entry_timeFixnum

[Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available. Corresponds to the JSON property oldestEntryTime

Returns:

  • (Fixnum)


6153
6154
6155
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6153

def oldest_entry_time
  @oldest_entry_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6160
6161
6162
6163
6164
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6160

def update!(**args)
  @estimated_bytes = args[:estimated_bytes] if args.key?(:estimated_bytes)
  @estimated_rows = args[:estimated_rows] if args.key?(:estimated_rows)
  @oldest_entry_time = args[:oldest_entry_time] if args.key?(:oldest_entry_time)
end