Class ShardOwner
ShardOwner
Inheritance
System.Object
ShardOwner
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class ShardOwner : IEquatable<ShardOwner>
Constructors
ShardOwner()
Initializes a new instance of the ShardOwner class.
Declaration
protected ShardOwner()
ShardOwner(Nullable<Int64>)
Initializes a new instance of the ShardOwner class.
Declaration
public ShardOwner(long? nodeID = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int64> | nodeID | ID of the node that owns a shard. (required). |
Properties
NodeID
ID of the node that owns a shard.
Declaration
public long? NodeID { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | ID of the node that owns a shard. |
Methods
Equals(ShardOwner)
Returns true if ShardOwner instances are equal
Declaration
public bool Equals(ShardOwner input)
Parameters
Type | Name | Description |
---|---|---|
ShardOwner | input | Instance of ShardOwner to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |