class
Qdrant::Api::CreateShardingKey
- Qdrant::Api::CreateShardingKey
- Reference
- Object
Included Modules
- JSON::Serializable
- Qdrant::Api::Serializable
- Qdrant::Api::Validation
- YAML::Serializable
Defined in:
qdrant-api/models/create_sharding_key.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
-
.new(shard_key : ShardKey, shards_number : Int32 | Nil = nil, replication_factor : Int32 | Nil = nil, placement : Array(Int32) | Nil = nil, initial_state : ReplicaState | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
- .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. -
#hash(hasher)
See
Object#hash(hasher) -
#initial_state : ReplicaState | Nil
Initial state of the shards for this key If not specified, will be
Initializingfirst and thenActiveWarning: do not change this unless you know what you are doing -
#initial_state=(initial_state : ReplicaState | Nil)
Initial state of the shards for this key If not specified, will be
Initializingfirst and thenActiveWarning: do not change this unless you know what you are doing -
#list_invalid_properties
Show invalid properties with the reasons.
-
#placement : Array(Int32) | Nil
Placement of shards for this key List of peer ids, that can be used to place shards for this key If not specified, will be randomly placed among all peers
-
#placement=(placement : Array(Int32) | Nil)
Placement of shards for this key List of peer ids, that can be used to place shards for this key If not specified, will be randomly placed among all peers
-
#replication_factor : Int32 | Nil
How many replicas to create for each shard If not specified, will use the default value from config
-
#replication_factor=(value : Int32 | Nil)
How many replicas to create for each shard If not specified, will use the default value from config
- #replication_factor_validation_error(value) : String | Nil
-
#shard_key : ShardKey
Required properties
-
#shard_key=(shard_key : ShardKey)
Required properties
-
#shards_number : Int32 | Nil
Optional properties How many shards to create for this key If not specified, will use the default value from config
-
#shards_number=(value : Int32 | Nil)
Optional properties How many shards to create for this key If not specified, will use the default value from config
- #shards_number_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?.
Initial state of the shards for this key If not specified, will be Initializing first and then Active Warning: do not change this unless you know what you are doing
Initial state of the shards for this key If not specified, will be Initializing first and then Active Warning: do not change this unless you know what you are doing
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Placement of shards for this key List of peer ids, that can be used to place shards for this key If not specified, will be randomly placed among all peers
Placement of shards for this key List of peer ids, that can be used to place shards for this key If not specified, will be randomly placed among all peers
How many replicas to create for each shard If not specified, will use the default value from config
How many replicas to create for each shard If not specified, will use the default value from config
Optional properties How many shards to create for this key If not specified, will use the default value from config
Optional properties How many shards to create for this key If not specified, will use the default value from config
Check to see if the all the properties in the model are valid @return true if the model is valid