Class: Google::Apis::DataflowV1b3::Position

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

Position defines a position within a collection of data. The value can be either the end position, a key (used with ordered collections), a byte offset, or a record index.

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

Returns a new instance of Position



4925
4926
4927
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4925

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

Instance Attribute Details

#byte_offsetString

Position is a byte offset. Corresponds to the JSON property byteOffset

Returns:

  • (String)


4911
4912
4913
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4911

def byte_offset
  @byte_offset
end

#concat_positionGoogle::Apis::DataflowV1b3::ConcatPosition

A position that encapsulates an inner position and an index for the inner position. A ConcatPosition can be used by a reader of a source that encapsulates a set of other sources. Corresponds to the JSON property concatPosition



4906
4907
4908
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4906

def concat_position
  @concat_position
end

#endBoolean Also known as: end?

Position is past all other positions. Also useful for the end position of an unbounded range. Corresponds to the JSON property end

Returns:

  • (Boolean)


4917
4918
4919
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4917

def end
  @end
end

#keyString

Position is a string key, ordered lexicographically. Corresponds to the JSON property key

Returns:

  • (String)


4923
4924
4925
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4923

def key
  @key
end

#record_indexString

Position is a record index. Corresponds to the JSON property recordIndex

Returns:

  • (String)


4893
4894
4895
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4893

def record_index
  @record_index
end

#shuffle_positionString

CloudPosition is a base64 encoded BatchShufflePosition (with FIXED sharding). Corresponds to the JSON property shufflePosition

Returns:

  • (String)


4899
4900
4901
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4899

def shuffle_position
  @shuffle_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4930
4931
4932
4933
4934
4935
4936
4937
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4930

def update!(**args)
  @record_index = args[:record_index] if args.key?(:record_index)
  @shuffle_position = args[:shuffle_position] if args.key?(:shuffle_position)
  @concat_position = args[:concat_position] if args.key?(:concat_position)
  @byte_offset = args[:byte_offset] if args.key?(:byte_offset)
  @end = args[:end] if args.key?(:end)
  @key = args[:key] if args.key?(:key)
end