Class: Google::Apis::DataflowV1b3::SourceMetadata

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

Overview

Metadata about a Source useful for automatically optimizing and tuning the pipeline, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceMetadata

Returns a new instance of SourceMetadata.



4594
4595
4596
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4594

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

Instance Attribute Details

#estimated_size_bytesFixnum

An estimate of the total size (in bytes) of the data that would be read from this source. This estimate is in terms of external storage size, before any decompression or other processing done by the reader. Corresponds to the JSON property estimatedSizeBytes

Returns:

  • (Fixnum)


4578
4579
4580
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4578

def estimated_size_bytes
  @estimated_size_bytes
end

#infiniteBoolean Also known as: infinite?

Specifies that the size of this source is known to be infinite (this is a streaming source). Corresponds to the JSON property infinite

Returns:

  • (Boolean)


4584
4585
4586
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4584

def infinite
  @infinite
end

#produces_sorted_keysBoolean Also known as: produces_sorted_keys?

Whether this source is known to produce key/value pairs with the (encoded) keys in lexicographically sorted order. Corresponds to the JSON property producesSortedKeys

Returns:

  • (Boolean)


4591
4592
4593
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4591

def produces_sorted_keys
  @produces_sorted_keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4599
4600
4601
4602
4603
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4599

def update!(**args)
  @estimated_size_bytes = args[:estimated_size_bytes] if args.key?(:estimated_size_bytes)
  @infinite = args[:infinite] if args.key?(:infinite)
  @produces_sorted_keys = args[:produces_sorted_keys] if args.key?(:produces_sorted_keys)
end