Class: Google::Apis::DataflowV1b3::Position
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Position
- 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
-
#byte_offset ⇒ Fixnum
Position is a byte offset.
-
#concat_position ⇒ Google::Apis::DataflowV1b3::ConcatPosition
A position that encapsulates an inner position and an index for the inner position.
-
#end ⇒ Boolean
(also: #end?)
Position is past all other positions.
-
#key ⇒ String
Position is a string key, ordered lexicographically.
-
#record_index ⇒ Fixnum
Position is a record index.
-
#shuffle_position ⇒ String
CloudPosition is a base64 encoded BatchShufflePosition (with FIXED sharding).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Position
constructor
A new instance of Position.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Position
Returns a new instance of Position
2930 2931 2932 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#byte_offset ⇒ Fixnum
Position is a byte offset.
Corresponds to the JSON property byteOffset
2898 2899 2900 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2898 def byte_offset @byte_offset end |
#concat_position ⇒ Google::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
2905 2906 2907 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2905 def concat_position @concat_position end |
#end ⇒ Boolean 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
2911 2912 2913 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2911 def end @end end |
#key ⇒ String
Position is a string key, ordered lexicographically.
Corresponds to the JSON property key
2917 2918 2919 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2917 def key @key end |
#record_index ⇒ Fixnum
Position is a record index.
Corresponds to the JSON property recordIndex
2922 2923 2924 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2922 def record_index @record_index end |
#shuffle_position ⇒ String
CloudPosition is a base64 encoded BatchShufflePosition (with FIXED
sharding).
Corresponds to the JSON property shufflePosition
2928 2929 2930 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2928 def shuffle_position @shuffle_position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2935 2936 2937 2938 2939 2940 2941 2942 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2935 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 |