Class: Rafflesia::OntologyIncrementalClosureDeltaData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  affected_relation_count: :affected_relation_count,
  affected_relations: :affected_relations,
  from_component_id: :from_component_id,
  from_component_size: :from_component_size,
  is_affected_relations_complete: :is_affected_relations_complete,
  is_already_reachable: :is_already_reachable,
  materialized_pair_write_count: :materialized_pair_write_count,
  reachable_pair_gain: :reachable_pair_gain,
  requires_full_rebuild: :requires_full_rebuild,
  result_component_id: :result_component_id,
  result_component_size: :result_component_size,
  safety: :safety,
  to_component_id: :to_component_id,
  to_component_size: :to_component_size,
  touched_component_count: :touched_component_count,
  update_mode: :update_mode
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyIncrementalClosureDeltaData

Returns a new instance of OntologyIncrementalClosureDeltaData.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 45

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @affected_relation_count = hash[:affected_relation_count]
  @affected_relations = (hash[:affected_relations] || [])
  @from_component_id = hash[:from_component_id]
  @from_component_size = hash[:from_component_size]
  @is_affected_relations_complete = hash[:is_affected_relations_complete]
  @is_already_reachable = hash[:is_already_reachable]
  @materialized_pair_write_count = hash[:materialized_pair_write_count]
  @reachable_pair_gain = hash[:reachable_pair_gain]
  @requires_full_rebuild = hash[:requires_full_rebuild]
  @result_component_id = hash[:result_component_id]
  @result_component_size = hash[:result_component_size]
  @safety = hash[:safety]
  @to_component_id = hash[:to_component_id]
  @to_component_size = hash[:to_component_size]
  @touched_component_count = hash[:touched_component_count]
  @update_mode = hash[:update_mode]
end

Instance Attribute Details

#affected_relation_countObject

Returns the value of attribute affected_relation_count.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def affected_relation_count
  @affected_relation_count
end

#affected_relationsObject

Returns the value of attribute affected_relations.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def affected_relations
  @affected_relations
end

#from_component_idObject

Returns the value of attribute from_component_id.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def from_component_id
  @from_component_id
end

#from_component_sizeObject

Returns the value of attribute from_component_size.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def from_component_size
  @from_component_size
end

#is_affected_relations_completeObject

Returns the value of attribute is_affected_relations_complete.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def is_affected_relations_complete
  @is_affected_relations_complete
end

#is_already_reachableObject

Returns the value of attribute is_already_reachable.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def is_already_reachable
  @is_already_reachable
end

#materialized_pair_write_countObject

Returns the value of attribute materialized_pair_write_count.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def materialized_pair_write_count
  @materialized_pair_write_count
end

#reachable_pair_gainObject

Returns the value of attribute reachable_pair_gain.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def reachable_pair_gain
  @reachable_pair_gain
end

#requires_full_rebuildObject

Returns the value of attribute requires_full_rebuild.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def requires_full_rebuild
  @requires_full_rebuild
end

#result_component_idObject

Returns the value of attribute result_component_id.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def result_component_id
  @result_component_id
end

#result_component_sizeObject

Returns the value of attribute result_component_size.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def result_component_size
  @result_component_size
end

#safetyObject

Returns the value of attribute safety.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def safety
  @safety
end

#to_component_idObject

Returns the value of attribute to_component_id.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def to_component_id
  @to_component_id
end

#to_component_sizeObject

Returns the value of attribute to_component_size.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def to_component_size
  @to_component_size
end

#touched_component_countObject

Returns the value of attribute touched_component_count.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def touched_component_count
  @touched_component_count
end

#update_modeObject

Returns the value of attribute update_mode.



27
28
29
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_incremental_closure_delta_data.rb', line 27

def update_mode
  @update_mode
end