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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceMetadata

Returns a new instance of SourceMetadata.



2056
2057
2058
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2056

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

Instance Attribute Details

#estimated_size_bytesString

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:

  • (String)


2054
2055
2056
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2054

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)


2046
2047
2048
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2046

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)


2039
2040
2041
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2039

def produces_sorted_keys
  @produces_sorted_keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2061
2062
2063
2064
2065
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2061

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