Class: Rafflesia::FoldCollectionSearchRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  calibration_object_id: :calibration_object_id,
  distributed: :distributed,
  dry_run: :dry_run,
  exact_limit: :exact_limit,
  exact_verify: :exact_verify,
  limit: :limit,
  max_blocks: :max_blocks,
  max_materialized_bytes: :max_materialized_bytes,
  max_object_bytes: :max_object_bytes,
  max_object_reads: :max_object_reads,
  max_segments: :max_segments,
  max_workers: :max_workers,
  nprobe: :nprobe,
  query_id: :query_id,
  ref: :ref,
  require_complete: :require_complete,
  require_routing: :require_routing,
  require_zero_materialization: :require_zero_materialization,
  routing_mode: :routing_mode,
  segment_refs: :segment_refs,
  store_plan: :store_plan,
  target_score_coverage: :target_score_coverage,
  use_calibration: :use_calibration
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldCollectionSearchRequest

Returns a new instance of FoldCollectionSearchRequest.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 59

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @calibration_object_id = hash[:calibration_object_id]
  @distributed = hash[:distributed]
  @dry_run = hash[:dry_run]
  @exact_limit = hash[:exact_limit]
  @exact_verify = hash[:exact_verify]
  @limit = hash[:limit]
  @max_blocks = hash[:max_blocks]
  @max_materialized_bytes = hash[:max_materialized_bytes]
  @max_object_bytes = hash[:max_object_bytes]
  @max_object_reads = hash[:max_object_reads]
  @max_segments = hash[:max_segments]
  @max_workers = hash[:max_workers]
  @nprobe = hash[:nprobe]
  @query_id = hash[:query_id]
  @ref = hash[:ref]
  @require_complete = hash[:require_complete]
  @require_routing = hash[:require_routing]
  @require_zero_materialization = hash[:require_zero_materialization]
  @routing_mode = hash[:routing_mode]
  @segment_refs = (hash[:segment_refs] || [])
  @store_plan = hash[:store_plan]
  @target_score_coverage = hash[:target_score_coverage]
  @use_calibration = hash[:use_calibration]
end

Instance Attribute Details

#calibration_object_idObject

Returns the value of attribute calibration_object_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def calibration_object_id
  @calibration_object_id
end

#distributedObject

Returns the value of attribute distributed.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def distributed
  @distributed
end

#dry_runObject

Returns the value of attribute dry_run.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def dry_run
  @dry_run
end

#exact_limitObject

Returns the value of attribute exact_limit.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def exact_limit
  @exact_limit
end

#exact_verifyObject

Returns the value of attribute exact_verify.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def exact_verify
  @exact_verify
end

#limitObject

Returns the value of attribute limit.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def limit
  @limit
end

#max_blocksObject

Returns the value of attribute max_blocks.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def max_blocks
  @max_blocks
end

#max_materialized_bytesObject

Returns the value of attribute max_materialized_bytes.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def max_materialized_bytes
  @max_materialized_bytes
end

#max_object_bytesObject

Returns the value of attribute max_object_bytes.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def max_object_bytes
  @max_object_bytes
end

#max_object_readsObject

Returns the value of attribute max_object_reads.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def max_object_reads
  @max_object_reads
end

#max_segmentsObject

Returns the value of attribute max_segments.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def max_segments
  @max_segments
end

#max_workersObject

Returns the value of attribute max_workers.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def max_workers
  @max_workers
end

#nprobeObject

Returns the value of attribute nprobe.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def nprobe
  @nprobe
end

#query_idObject

Returns the value of attribute query_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def query_id
  @query_id
end

#refObject

Returns the value of attribute ref.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def ref
  @ref
end

#require_completeObject

Returns the value of attribute require_complete.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def require_complete
  @require_complete
end

#require_routingObject

Returns the value of attribute require_routing.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def require_routing
  @require_routing
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def require_zero_materialization
  @require_zero_materialization
end

#routing_modeObject

Returns the value of attribute routing_mode.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def routing_mode
  @routing_mode
end

#segment_refsObject

Returns the value of attribute segment_refs.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def segment_refs
  @segment_refs
end

#store_planObject

Returns the value of attribute store_plan.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def store_plan
  @store_plan
end

#target_score_coverageObject

Returns the value of attribute target_score_coverage.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def target_score_coverage
  @target_score_coverage
end

#use_calibrationObject

Returns the value of attribute use_calibration.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_search_request.rb', line 34

def use_calibration
  @use_calibration
end