class
Qdrant::Api::ShardTransferInfo
- Qdrant::Api::ShardTransferInfo
- Reference
- Object
Included Modules
- JSON::Serializable
- Qdrant::Api::Serializable
- Qdrant::Api::Validation
- YAML::Serializable
Defined in:
qdrant-api/models/shard_transfer_info.crConstructors
-
.new(shard_id : Int32, from : Int32, to : Int32, sync : Bool, to_shard_id : Int32 | Nil = nil, method : ShardTransferMethod | Nil = nil, comment : String | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#comment : String | Nil
A human-readable report of the transfer progress.
-
#comment=(comment : String | Nil)
A human-readable report of the transfer progress.
-
#from : Int32
Source peer id
-
#from=(value : Int32)
Source peer id
- #from_validation_error(value) : String | Nil
-
#hash(hasher)
See
Object#hash(hasher) -
#list_invalid_properties
Show invalid properties with the reasons.
- #method : ShardTransferMethod | Nil
- #method=(method : ShardTransferMethod | Nil)
-
#shard_id : Int32
Required properties
-
#shard_id=(value : Int32)
Required properties
- #shard_id_validation_error(value) : String | Nil
-
#sync : Bool
If
truetransfer is a synchronization of a replicas Iffalsetransfer is a moving of a shard from one peer to another -
#sync=(sync : Bool)
If
truetransfer is a synchronization of a replicas Iffalsetransfer is a moving of a shard from one peer to another -
#to : Int32
Destination peer id
-
#to=(value : Int32)
Destination peer id
-
#to_shard_id : Int32 | Nil
Optional properties Target shard ID if different than source shard ID Used exclusively with
ReshardingStreamRecordstransfer method. -
#to_shard_id=(value : Int32 | Nil)
Optional properties Target shard ID if different than source shard ID Used exclusively with
ReshardingStreamRecordstransfer method. - #to_shard_id_validation_error(value) : String | Nil
- #to_validation_error(value) : String | Nil
-
#valid?
Check to see if the all the properties in the model are valid @return true if the model is valid
Macros inherited from module Qdrant::Api::Validation
validates(name, klass, nilable, **rules)
validates
Instance methods inherited from module Qdrant::Api::Serializable
eql?(other)
eql?,
to_body : Hash(String, JSON::Any)
to_body,
to_h : Hash(String, JSON::Any)
to_h,
to_s(io : IO) : Nil
to_s
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
A human-readable report of the transfer progress. Available only on the source peer.
A human-readable report of the transfer progress. Available only on the source peer.
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
If true transfer is a synchronization of a replicas If false transfer is a moving of a shard from one peer to another
If true transfer is a synchronization of a replicas If false transfer is a moving of a shard from one peer to another
Optional properties
Target shard ID if different than source shard ID Used exclusively with ReshardingStreamRecords transfer method.
Optional properties
Target shard ID if different than source shard ID Used exclusively with ReshardingStreamRecords transfer method.
Check to see if the all the properties in the model are valid @return true if the model is valid