Class: AWSCDK::OpenSearchServerless::CfnIndex::ParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchServerless::CfnIndex::ParametersProperty
- Defined in:
- open_search_serverless/cfn_index.rb
Overview
Additional parameters for the k-NN algorithm.
Instance Attribute Summary collapse
-
#ef_construction ⇒ Numeric?
readonly
The size of the dynamic list used during k-NN graph creation.
-
#m ⇒ Numeric?
readonly
Number of neighbors to consider during k-NN search.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ef_construction: nil, m: nil) ⇒ ParametersProperty
constructor
A new instance of ParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ef_construction: nil, m: nil) ⇒ ParametersProperty
Returns a new instance of ParametersProperty.
726 727 728 729 730 731 |
# File 'open_search_serverless/cfn_index.rb', line 726 def initialize(ef_construction: nil, m: nil) @ef_construction = ef_construction Jsii::Type.check_type(@ef_construction, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "efConstruction") unless @ef_construction.nil? @m = m Jsii::Type.check_type(@m, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "m") unless @m.nil? end |
Instance Attribute Details
#ef_construction ⇒ Numeric? (readonly)
The size of the dynamic list used during k-NN graph creation.
737 738 739 |
# File 'open_search_serverless/cfn_index.rb', line 737 def ef_construction @ef_construction end |
#m ⇒ Numeric? (readonly)
Number of neighbors to consider during k-NN search.
742 743 744 |
# File 'open_search_serverless/cfn_index.rb', line 742 def m @m end |
Class Method Details
.jsii_properties ⇒ Object
744 745 746 747 748 749 |
# File 'open_search_serverless/cfn_index.rb', line 744 def self.jsii_properties { :ef_construction => "efConstruction", :m => "m", } end |
Instance Method Details
#to_jsii ⇒ Object
751 752 753 754 755 756 757 758 |
# File 'open_search_serverless/cfn_index.rb', line 751 def to_jsii result = {} result.merge!({ "efConstruction" => @ef_construction, "m" => @m, }) result.compact end |