Class: Rafflesia::FoldSegmentSearchRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  database: :database,
  dry_run: :dry_run,
  exact_limit: :exact_limit,
  exact_verify: :exact_verify,
  limit: :limit,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  max_blocks: :max_blocks,
  max_materialized_bytes: :max_materialized_bytes,
  max_object_bytes: :max_object_bytes,
  max_object_reads: :max_object_reads,
  nprobe: :nprobe,
  output_format: :output_format,
  output_relation: :output_relation,
  partition_by: :partition_by,
  preview_limit: :preview_limit,
  query_id: :query_id,
  ref: :ref,
  relation: :relation,
  release: :release,
  require_zero_materialization: :require_zero_materialization,
  sort_by: :sort_by
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentSearchRequest

Returns a new instance of FoldSegmentSearchRequest.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @database = hash[:database]
  @dry_run = hash[:dry_run]
  @exact_limit = hash[:exact_limit]
  @exact_verify = hash[:exact_verify]
  @limit = hash[:limit]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @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]
  @nprobe = hash[:nprobe]
  @output_format = hash[:output_format]
  @output_relation = hash[:output_relation]
  @partition_by = (hash[:partition_by] || [])
  @preview_limit = hash[:preview_limit]
  @query_id = hash[:query_id]
  @ref = hash[:ref]
  @relation = hash[:relation]
  @release = hash[:release]
  @require_zero_materialization = hash[:require_zero_materialization]
  @sort_by = (hash[:sort_by] || [])
end

Instance Attribute Details

#databaseObject

Returns the value of attribute database.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def database
  @database
end

#dry_runObject

Returns the value of attribute dry_run.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def dry_run
  @dry_run
end

#exact_limitObject

Returns the value of attribute exact_limit.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def exact_limit
  @exact_limit
end

#exact_verifyObject

Returns the value of attribute exact_verify.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def exact_verify
  @exact_verify
end

#limitObject

Returns the value of attribute limit.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def limit
  @limit
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def manifest_path
  @manifest_path
end

#max_blocksObject

Returns the value of attribute max_blocks.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def max_blocks
  @max_blocks
end

#max_materialized_bytesObject

Returns the value of attribute max_materialized_bytes.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def max_materialized_bytes
  @max_materialized_bytes
end

#max_object_bytesObject

Returns the value of attribute max_object_bytes.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def max_object_bytes
  @max_object_bytes
end

#max_object_readsObject

Returns the value of attribute max_object_reads.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def max_object_reads
  @max_object_reads
end

#nprobeObject

Returns the value of attribute nprobe.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def nprobe
  @nprobe
end

#output_formatObject

Returns the value of attribute output_format.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def output_format
  @output_format
end

#output_relationObject

Returns the value of attribute output_relation.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def output_relation
  @output_relation
end

#partition_byObject

Returns the value of attribute partition_by.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def partition_by
  @partition_by
end

#preview_limitObject

Returns the value of attribute preview_limit.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def preview_limit
  @preview_limit
end

#query_idObject

Returns the value of attribute query_id.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def query_id
  @query_id
end

#refObject

Returns the value of attribute ref.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def ref
  @ref
end

#relationObject

Returns the value of attribute relation.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def relation
  @relation
end

#releaseObject

Returns the value of attribute release.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def release
  @release
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def require_zero_materialization
  @require_zero_materialization
end

#sort_byObject

Returns the value of attribute sort_by.



33
34
35
# File 'lib/rafflesia/proteins/fold_segment_search_request.rb', line 33

def sort_by
  @sort_by
end