Class: Google::Apis::DatastreamV1::IntegerRangePartition
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::IntegerRangePartition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
Integer range partitioning. see https://cloud.google.com/bigquery/docs/ partitioned-tables#integer_range
Instance Attribute Summary collapse
-
#column ⇒ String
Required.
-
#end ⇒ Fixnum
Required.
-
#interval ⇒ Fixnum
Required.
-
#start ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IntegerRangePartition
constructor
A new instance of IntegerRangePartition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IntegerRangePartition
Returns a new instance of IntegerRangePartition.
1138 1139 1140 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1138 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column ⇒ String
Required. The partitioning column.
Corresponds to the JSON property column
1121 1122 1123 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1121 def column @column end |
#end ⇒ Fixnum
Required. The ending value for range partitioning (exclusive).
Corresponds to the JSON property end
1126 1127 1128 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1126 def end @end end |
#interval ⇒ Fixnum
Required. The interval of each range within the partition.
Corresponds to the JSON property interval
1131 1132 1133 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1131 def interval @interval end |
#start ⇒ Fixnum
Required. The starting value for range partitioning (inclusive).
Corresponds to the JSON property start
1136 1137 1138 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1136 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1143 1144 1145 1146 1147 1148 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1143 def update!(**args) @column = args[:column] if args.key?(:column) @end = args[:end] if args.key?(:end) @interval = args[:interval] if args.key?(:interval) @start = args[:start] if args.key?(:start) end |