Class: Rafflesia::FoldSearchBenchmarkRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_search_benchmark_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  concurrency: :concurrency,
  exact_limit: :exact_limit,
  exact_verify: :exact_verify,
  index_ref: :index_ref,
  limit: :limit,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  max_blocks_per_query: :max_blocks_per_query,
  max_object_bytes_per_query: :max_object_bytes_per_query,
  max_object_reads_per_query: :max_object_reads_per_query,
  min_byte_reduction_fraction: :min_byte_reduction_fraction,
  min_hit_overlap_fraction: :min_hit_overlap_fraction,
  min_recall_at_1: :min_recall_at_1,
  min_recall_at_10: :min_recall_at_10,
  min_recall_at_100: :min_recall_at_100,
  nprobe: :nprobe,
  profile: :profile,
  query_ids: :query_ids,
  recall_at: :recall_at,
  require_exact_verification: :require_exact_verification,
  require_zero_materialization: :require_zero_materialization,
  segment_manifest_object_id: :segment_manifest_object_id,
  segment_manifest_path: :segment_manifest_path,
  segment_ref: :segment_ref,
  store_artifact: :store_artifact,
  target_dir: :target_dir,
  verify_index: :verify_index
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSearchBenchmarkRequest

Returns a new instance of FoldSearchBenchmarkRequest.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 67

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @concurrency = hash[:concurrency]
  @exact_limit = hash[:exact_limit]
  @exact_verify = hash[:exact_verify]
  @index_ref = hash[:index_ref]
  @limit = hash[:limit]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @max_blocks_per_query = hash[:max_blocks_per_query]
  @max_object_bytes_per_query = hash[:max_object_bytes_per_query]
  @max_object_reads_per_query = hash[:max_object_reads_per_query]
  @min_byte_reduction_fraction = hash[:min_byte_reduction_fraction]
  @min_hit_overlap_fraction = hash[:min_hit_overlap_fraction]
  @min_recall_at_1 = hash[:min_recall_at_1]
  @min_recall_at_10 = hash[:min_recall_at_10]
  @min_recall_at_100 = hash[:min_recall_at_100]
  @nprobe = hash[:nprobe]
  @profile = hash[:profile]
  @query_ids = (hash[:query_ids] || [])
  @recall_at = (hash[:recall_at] || [])
  @require_exact_verification = hash[:require_exact_verification]
  @require_zero_materialization = hash[:require_zero_materialization]
  @segment_manifest_object_id = hash[:segment_manifest_object_id]
  @segment_manifest_path = hash[:segment_manifest_path]
  @segment_ref = hash[:segment_ref]
  @store_artifact = hash[:store_artifact]
  @target_dir = hash[:target_dir]
  @verify_index = hash[:verify_index]
end

Instance Attribute Details

#concurrencyObject

Returns the value of attribute concurrency.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def concurrency
  @concurrency
end

#exact_limitObject

Returns the value of attribute exact_limit.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def exact_limit
  @exact_limit
end

#exact_verifyObject

Returns the value of attribute exact_verify.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def exact_verify
  @exact_verify
end

#index_refObject

Returns the value of attribute index_ref.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def index_ref
  @index_ref
end

#limitObject

Returns the value of attribute limit.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def limit
  @limit
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def manifest_path
  @manifest_path
end

#max_blocks_per_queryObject

Returns the value of attribute max_blocks_per_query.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def max_blocks_per_query
  @max_blocks_per_query
end

#max_object_bytes_per_queryObject

Returns the value of attribute max_object_bytes_per_query.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def max_object_bytes_per_query
  @max_object_bytes_per_query
end

#max_object_reads_per_queryObject

Returns the value of attribute max_object_reads_per_query.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def max_object_reads_per_query
  @max_object_reads_per_query
end

#min_byte_reduction_fractionObject

Returns the value of attribute min_byte_reduction_fraction.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def min_byte_reduction_fraction
  @min_byte_reduction_fraction
end

#min_hit_overlap_fractionObject

Returns the value of attribute min_hit_overlap_fraction.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def min_hit_overlap_fraction
  @min_hit_overlap_fraction
end

#min_recall_at_1Object

Returns the value of attribute min_recall_at_1.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def min_recall_at_1
  @min_recall_at_1
end

#min_recall_at_10Object

Returns the value of attribute min_recall_at_10.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def min_recall_at_10
  @min_recall_at_10
end

#min_recall_at_100Object

Returns the value of attribute min_recall_at_100.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def min_recall_at_100
  @min_recall_at_100
end

#nprobeObject

Returns the value of attribute nprobe.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def nprobe
  @nprobe
end

#profileObject

Returns the value of attribute profile.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def profile
  @profile
end

#query_idsObject

Returns the value of attribute query_ids.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def query_ids
  @query_ids
end

#recall_atObject

Returns the value of attribute recall_at.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def recall_at
  @recall_at
end

#require_exact_verificationObject

Returns the value of attribute require_exact_verification.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def require_exact_verification
  @require_exact_verification
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def require_zero_materialization
  @require_zero_materialization
end

#segment_manifest_object_idObject

Returns the value of attribute segment_manifest_object_id.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def segment_manifest_object_id
  @segment_manifest_object_id
end

#segment_manifest_pathObject

Returns the value of attribute segment_manifest_path.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def segment_manifest_path
  @segment_manifest_path
end

#segment_refObject

Returns the value of attribute segment_ref.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def segment_ref
  @segment_ref
end

#store_artifactObject

Returns the value of attribute store_artifact.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def store_artifact
  @store_artifact
end

#target_dirObject

Returns the value of attribute target_dir.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def target_dir
  @target_dir
end

#verify_indexObject

Returns the value of attribute verify_index.



38
39
40
# File 'lib/rafflesia/proteins/fold_search_benchmark_request.rb', line 38

def verify_index
  @verify_index
end