Class: Rafflesia::ServerlessPublishPolicy

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

Constant Summary collapse

HASH_ATTRS =
{
  benchmark_object_id: :benchmark_object_id,
  kind: :kind,
  max_blocks_per_query: :max_blocks_per_query,
  max_materialized_bytes_per_query: :max_materialized_bytes_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,
  passed: :passed,
  reasons: :reasons,
  require_benchmark: :require_benchmark,
  require_exact_verification: :require_exact_verification,
  require_zero_materialization: :require_zero_materialization,
  schema_version: :schema_version,
  workload_profile: :workload_profile
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ServerlessPublishPolicy

Returns a new instance of ServerlessPublishPolicy.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @benchmark_object_id = hash[:benchmark_object_id]
  @kind = hash[:kind]
  @max_blocks_per_query = hash[:max_blocks_per_query]
  @max_materialized_bytes_per_query = hash[:max_materialized_bytes_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]
  @passed = hash[:passed]
  @reasons = (hash[:reasons] || [])
  @require_benchmark = hash[:require_benchmark]
  @require_exact_verification = hash[:require_exact_verification]
  @require_zero_materialization = hash[:require_zero_materialization]
  @schema_version = hash[:schema_version]
  @workload_profile = hash[:workload_profile]
end

Instance Attribute Details

#benchmark_object_idObject

Returns the value of attribute benchmark_object_id.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def benchmark_object_id
  @benchmark_object_id
end

#kindObject

Returns the value of attribute kind.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def kind
  @kind
end

#max_blocks_per_queryObject

Returns the value of attribute max_blocks_per_query.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def max_blocks_per_query
  @max_blocks_per_query
end

#max_materialized_bytes_per_queryObject

Returns the value of attribute max_materialized_bytes_per_query.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def max_materialized_bytes_per_query
  @max_materialized_bytes_per_query
end

#max_object_bytes_per_queryObject

Returns the value of attribute max_object_bytes_per_query.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

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.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

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.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def min_byte_reduction_fraction
  @min_byte_reduction_fraction
end

#min_hit_overlap_fractionObject

Returns the value of attribute min_hit_overlap_fraction.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def min_hit_overlap_fraction
  @min_hit_overlap_fraction
end

#min_recall_at_1Object

Returns the value of attribute min_recall_at_1.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def min_recall_at_1
  @min_recall_at_1
end

#min_recall_at_10Object

Returns the value of attribute min_recall_at_10.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def min_recall_at_10
  @min_recall_at_10
end

#min_recall_at_100Object

Returns the value of attribute min_recall_at_100.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def min_recall_at_100
  @min_recall_at_100
end

#passedObject

Returns the value of attribute passed.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def passed
  @passed
end

#reasonsObject

Returns the value of attribute reasons.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def reasons
  @reasons
end

#require_benchmarkObject

Returns the value of attribute require_benchmark.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def require_benchmark
  @require_benchmark
end

#require_exact_verificationObject

Returns the value of attribute require_exact_verification.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def require_exact_verification
  @require_exact_verification
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def require_zero_materialization
  @require_zero_materialization
end

#schema_versionObject

Returns the value of attribute schema_version.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def schema_version
  @schema_version
end

#workload_profileObject

Returns the value of attribute workload_profile.



29
30
31
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29

def workload_profile
  @workload_profile
end