Struct CompositeShardingID
Used to return ID data from multiple elements, i.e. multiple parcel fields so sharding framework may obtain ULONG sharding key. You can not compare or equate instances (only reference comparison of data buffer)
Implements
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Sky.Mdb
Assembly: Azos.Sky.dll
Syntax
public struct CompositeShardingID : IDistributedStableHashProvider, IEnumerable<object>, IEnumerable
Constructors
CompositeShardingID(Object[])
Declaration
public CompositeShardingID(params object[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | data |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Declaration
public object this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |
Property Value
Type | Description |
---|---|
System.Object |
Methods
GetDistributedStableHash()
Declaration
public ulong GetDistributedStableHash()
Returns
Type | Description |
---|---|
System.UInt64 |
GetEnumerator()
Declaration
public IEnumerator<object> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Object> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable