class Google::Apis::DataflowV1b3::Position

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.

Attributes

byte_offset[RW]

Position is a byte offset. Corresponds to the JSON property `byteOffset` @return [Fixnum]

concat_position[RW]

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` @return [Google::Apis::DataflowV1b3::ConcatPosition]

end[RW]

Position is past all other positions. Also useful for the end position of an unbounded range. Corresponds to the JSON property `end` @return [Boolean]

end?[RW]

Position is past all other positions. Also useful for the end position of an unbounded range. Corresponds to the JSON property `end` @return [Boolean]

key[RW]

Position is a string key, ordered lexicographically. Corresponds to the JSON property `key` @return [String]

record_index[RW]

Position is a record index. Corresponds to the JSON property `recordIndex` @return [Fixnum]

shuffle_position[RW]

CloudPosition is a base64 encoded BatchShufflePosition (with FIXED sharding). Corresponds to the JSON property `shufflePosition` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataflow_v1b3/classes.rb, line 3497
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataflow_v1b3/classes.rb, line 3502
def update!(**args)
  @byte_offset = args[:byte_offset] if args.key?(:byte_offset)
  @concat_position = args[:concat_position] if args.key?(:concat_position)
  @end = args[:end] if args.key?(:end)
  @key = args[:key] if args.key?(:key)
  @record_index = args[:record_index] if args.key?(:record_index)
  @shuffle_position = args[:shuffle_position] if args.key?(:shuffle_position)
end