Struct ShardChild<TShard, TRecord, TChild>
Immutable class representing a sharded record with a database compound key. The ShardChild consist of the (virtual) shardId, the recordId, and the childId.
Implements
System.IEquatable<
ShardChild<TShard, TRecord, TChild>>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: ArgentSea.dll
Syntax
public struct ShardChild<TShard, TRecord, TChild> : IEquatable<ShardChild<TShard, TRecord, TChild>> where TShard : IComparable where TRecord : IComparable where TChild : IComparable
Type Parameters
Name |
Description |
TShard |
|
TRecord |
|
TChild |
|
Constructors
|
Improve this Doc
View Source
ShardChild(DataOrigin, TShard, TRecord, TChild)
Declaration
public ShardChild(DataOrigin origin, TShard shardId, TRecord recordId, TChild childRecordId)
Parameters
Type |
Name |
Description |
DataOrigin |
origin |
|
TShard |
shardId |
|
TRecord |
recordId |
|
TChild |
childRecordId |
|
|
Improve this Doc
View Source
ShardChild(ShardKey<TShard, TRecord>, TChild)
Declaration
public ShardChild(ShardKey<TShard, TRecord> key, TChild childRecordId)
Parameters
Type |
Name |
Description |
ShardKey<TShard, TRecord> |
key |
|
TChild |
childRecordId |
|
|
Improve this Doc
View Source
ShardChild(Char, TShard, TRecord, TChild)
Declaration
public ShardChild(char dataOrigin, TShard shardId, TRecord recordId, TChild childId)
Parameters
Type |
Name |
Description |
System.Char |
dataOrigin |
|
TShard |
shardId |
|
TRecord |
recordId |
|
TChild |
childId |
|
Properties
|
Improve this Doc
View Source
ChildId
Declaration
public TChild ChildId { get; }
Property Value
|
Improve this Doc
View Source
Empty
Declaration
public static ShardChild<TShard, TRecord, TChild> Empty { get; }
Property Value
Type |
Description |
ShardChild<TShard, TRecord, TChild> |
|
|
Improve this Doc
View Source
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Key
Declaration
public ShardKey<TShard, TRecord> Key { get; }
Property Value
Type |
Description |
ShardKey<TShard, TRecord> |
|
|
Improve this Doc
View Source
Origin
Declaration
public DataOrigin Origin { get; }
Property Value
|
Improve this Doc
View Source
RecordId
Declaration
public TRecord RecordId { get; }
Property Value
|
Improve this Doc
View Source
ShardId
Declaration
public TShard ShardId { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(ShardChild<TShard, TRecord, TChild>)
Declaration
public bool Equals(ShardChild<TShard, TRecord, TChild> other)
Parameters
Type |
Name |
Description |
ShardChild<TShard, TRecord, TChild> |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
FromExternalString(String)
Declaration
public static ShardChild<TShard, TRecord, TChild> FromExternalString(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
ShardChild<TShard, TRecord, TChild> |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
ToExternalString()
Serializes ShardChild data into a URL-safe string with a checksum, optionally including a concurrency stamp.
Declaration
public string ToExternalString()
Returns
Type |
Description |
System.String |
A URL-safe string that can be re-serialized into a shard child.
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Equality(ShardChild<TShard, TRecord, TChild>, ShardChild<TShard, TRecord, TChild>)
Declaration
public static bool operator ==(ShardChild<TShard, TRecord, TChild> sc1, ShardChild<TShard, TRecord, TChild> sc2)
Parameters
Type |
Name |
Description |
ShardChild<TShard, TRecord, TChild> |
sc1 |
|
ShardChild<TShard, TRecord, TChild> |
sc2 |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(ShardChild<TShard, TRecord, TChild>, ShardChild<TShard, TRecord, TChild>)
Declaration
public static bool operator !=(ShardChild<TShard, TRecord, TChild> sc1, ShardChild<TShard, TRecord, TChild> sc2)
Parameters
Type |
Name |
Description |
ShardChild<TShard, TRecord, TChild> |
sc1 |
|
ShardChild<TShard, TRecord, TChild> |
sc2 |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>