Class: Google::Apis::DataflowV1b3::KeyRangeLocation

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

Location information for a specific key-range of a sharded computation. Currently we only support UTF-8 character splits to simplify encoding into JSON.

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

Returns a new instance of KeyRangeLocation.



3270
3271
3272
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3270

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

Instance Attribute Details

#data_diskString

The name of the data disk where data for this range is stored. This name is local to the Google Cloud Platform project and uniquely identifies the disk within that project, for example "myproject-1014-104817-4c2-harness-0-disk-1". Corresponds to the JSON property dataDisk

Returns:

  • (String)


3268
3269
3270
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3268

def data_disk
  @data_disk
end

#delivery_endpointString

The physical location of this range assignment to be used for streaming computation cross-worker message delivery. Corresponds to the JSON property deliveryEndpoint

Returns:

  • (String)


3255
3256
3257
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3255

def delivery_endpoint
  @delivery_endpoint
end

#endString

The end (exclusive) of the key range. Corresponds to the JSON property end

Returns:

  • (String)


3249
3250
3251
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3249

def end
  @end
end

#persistent_directoryString

The location of the persistent state for this range, as a persistent directory in the worker local filesystem. Corresponds to the JSON property persistentDirectory

Returns:

  • (String)


3261
3262
3263
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3261

def persistent_directory
  @persistent_directory
end

#startString

The start (inclusive) of the key range. Corresponds to the JSON property start

Returns:

  • (String)


3244
3245
3246
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3244

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3275
3276
3277
3278
3279
3280
3281
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3275

def update!(**args)
  @start = args[:start] if args.key?(:start)
  @end = args[:end] if args.key?(:end)
  @delivery_endpoint = args[:delivery_endpoint] if args.key?(:delivery_endpoint)
  @persistent_directory = args[:persistent_directory] if args.key?(:persistent_directory)
  @data_disk = args[:data_disk] if args.key?(:data_disk)
end