Class: Azure::ServiceFabric::V6_2_0_9::Models::UniformInt64RangePartitionSchemeDescription

Inherits:
PartitionSchemeDescription show all
Includes:
MsRestAzure
Defined in:
lib/6.2.0.9/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb

Overview

Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUniformInt64RangePartitionSchemeDescription

Returns a new instance of UniformInt64RangePartitionSchemeDescription.



17
18
19
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb', line 17

def initialize
  @PartitionScheme = "UniformInt64Range"
end

Instance Attribute Details

#countInteger

Returns The number of partitions.

Returns:

  • (Integer)

    The number of partitions.



24
25
26
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb', line 24

def count
  @count
end

#high_keyString

range that should be split between the partitions.

Returns:

  • (String)

    String indicating the upper bound of the partition key



34
35
36
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb', line 34

def high_key
  @high_key
end

#low_keyString

range that should be split between the partitions.

Returns:

  • (String)

    String indicating the lower bound of the partition key



29
30
31
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb', line 29

def low_key
  @low_key
end

#PartitionSchemeObject

Returns the value of attribute PartitionScheme.



21
22
23
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb', line 21

def PartitionScheme
  @PartitionScheme
end

Class Method Details

.mapperObject

Mapper for UniformInt64RangePartitionSchemeDescription class as Ruby Hash. This will be used for serialization/deserialization.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'UniformInt64Range',
    type: {
      name: 'Composite',
      class_name: 'UniformInt64RangePartitionSchemeDescription',
      model_properties: {
        PartitionScheme: {
          client_side_validation: true,
          required: true,
          serialized_name: 'PartitionScheme',
          type: {
            name: 'String'
          }
        },
        count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Count',
          type: {
            name: 'Number'
          }
        },
        low_key: {
          client_side_validation: true,
          required: true,
          serialized_name: 'LowKey',
          type: {
            name: 'String'
          }
        },
        high_key: {
          client_side_validation: true,
          required: true,
          serialized_name: 'HighKey',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end