Class: AWSCDK::OpenSearchServerless::CfnIndex::ParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_serverless/cfn_index.rb

Overview

Additional parameters for the k-NN algorithm.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ef_construction: nil, m: nil) ⇒ ParametersProperty

Returns a new instance of ParametersProperty.

Parameters:

  • ef_construction (Numeric, nil) (defaults to: nil)

    The size of the dynamic list used during k-NN graph creation.

  • m (Numeric, nil) (defaults to: nil)

    Number of neighbors to consider during k-NN search.



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_constructionNumeric? (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

#mNumeric? (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_propertiesObject



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_jsiiObject



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