-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
UniformInt64RangePartitionScheme.cs
69 lines (64 loc) · 2.67 KB
/
UniformInt64RangePartitionScheme.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models
{
/// <summary> Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions. </summary>
public partial class UniformInt64RangePartitionScheme : ManagedServicePartitionScheme
{
/// <summary> Initializes a new instance of UniformInt64RangePartitionScheme. </summary>
/// <param name="count"> The number of partitions. </param>
/// <param name="lowKey">
/// The lower bound of the partition key range that
/// should be split between the partition ‘Count’
///
/// </param>
/// <param name="highKey">
/// The upper bound of the partition key range that
/// should be split between the partition ‘Count’
///
/// </param>
public UniformInt64RangePartitionScheme(int count, long lowKey, long highKey)
{
Count = count;
LowKey = lowKey;
HighKey = highKey;
PartitionScheme = PartitionScheme.UniformInt64Range;
}
/// <summary> Initializes a new instance of UniformInt64RangePartitionScheme. </summary>
/// <param name="partitionScheme"> Specifies how the service is partitioned. </param>
/// <param name="count"> The number of partitions. </param>
/// <param name="lowKey">
/// The lower bound of the partition key range that
/// should be split between the partition ‘Count’
///
/// </param>
/// <param name="highKey">
/// The upper bound of the partition key range that
/// should be split between the partition ‘Count’
///
/// </param>
internal UniformInt64RangePartitionScheme(PartitionScheme partitionScheme, int count, long lowKey, long highKey) : base(partitionScheme)
{
Count = count;
LowKey = lowKey;
HighKey = highKey;
PartitionScheme = partitionScheme;
}
/// <summary> The number of partitions. </summary>
public int Count { get; set; }
/// <summary>
/// The lower bound of the partition key range that
/// should be split between the partition ‘Count’
///
/// </summary>
public long LowKey { get; set; }
/// <summary>
/// The upper bound of the partition key range that
/// should be split between the partition ‘Count’
///
/// </summary>
public long HighKey { get; set; }
}
}