Class: Rafflesia::SearchSegmentPlanRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/search_segment_plan_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  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,
  query_key: :query_key,
  require_zero_materialization: :require_zero_materialization
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SearchSegmentPlanRequest

Returns a new instance of SearchSegmentPlanRequest.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 29

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @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]
  @query_key = hash[:query_key]
  @require_zero_materialization = hash[:require_zero_materialization]
end

Instance Attribute Details

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def manifest_path
  @manifest_path
end

#max_blocksObject

Returns the value of attribute max_blocks.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def max_blocks
  @max_blocks
end

#max_materialized_bytesObject

Returns the value of attribute max_materialized_bytes.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def max_materialized_bytes
  @max_materialized_bytes
end

#max_object_bytesObject

Returns the value of attribute max_object_bytes.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def max_object_bytes
  @max_object_bytes
end

#max_object_readsObject

Returns the value of attribute max_object_reads.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def max_object_reads
  @max_object_reads
end

#query_keyObject

Returns the value of attribute query_key.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def query_key
  @query_key
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



19
20
21
# File 'lib/rafflesia/sequences/search_segment_plan_request.rb', line 19

def require_zero_materialization
  @require_zero_materialization
end