Class: Google::Apis::DatastreamV1::IntegerRangePartition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntegerRangePartition

Returns a new instance of IntegerRangePartition.



1336
1337
1338
# File 'lib/google/apis/datastream_v1/classes.rb', line 1336

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

Instance Attribute Details

#columnString

Required. The partitioning column. Corresponds to the JSON property column

Returns:

  • (String)


1319
1320
1321
# File 'lib/google/apis/datastream_v1/classes.rb', line 1319

def column
  @column
end

#endFixnum

Required. The ending value for range partitioning (exclusive). Corresponds to the JSON property end

Returns:

  • (Fixnum)


1324
1325
1326
# File 'lib/google/apis/datastream_v1/classes.rb', line 1324

def end
  @end
end

#intervalFixnum

Required. The interval of each range within the partition. Corresponds to the JSON property interval

Returns:

  • (Fixnum)


1329
1330
1331
# File 'lib/google/apis/datastream_v1/classes.rb', line 1329

def interval
  @interval
end

#startFixnum

Required. The starting value for range partitioning (inclusive). Corresponds to the JSON property start

Returns:

  • (Fixnum)


1334
1335
1336
# File 'lib/google/apis/datastream_v1/classes.rb', line 1334

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1341
1342
1343
1344
1345
1346
# File 'lib/google/apis/datastream_v1/classes.rb', line 1341

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