Class: Rafflesia::OntologyConnectivityRebuildData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  affected_relation_count: :affected_relation_count,
  affected_relations: :affected_relations,
  base_catalog_digest: :base_catalog_digest,
  change_id: :change_id,
  compiled_catalog_digest: :compiled_catalog_digest,
  gained_identity_safe_join_count: :gained_identity_safe_join_count,
  gained_strict_join_count: :gained_strict_join_count,
  id: :id,
  identity_safe_component_count_after: :identity_safe_component_count_after,
  identity_safe_component_count_before: :identity_safe_component_count_before,
  identity_safe_reachable_pair_count_after: :identity_safe_reachable_pair_count_after,
  identity_safe_reachable_pair_count_before: :identity_safe_reachable_pair_count_before,
  invalidated_identity_safe_join_count: :invalidated_identity_safe_join_count,
  invalidated_strict_join_count: :invalidated_strict_join_count,
  is_valid: :is_valid,
  isolation_removals: :isolation_removals,
  isolation_upserts: :isolation_upserts,
  materialized_pair_write_count: :materialized_pair_write_count,
  object: :object,
  ontology_digest: :ontology_digest,
  ontology_version: :ontology_version,
  patch_digest: :patch_digest,
  readmitted_anchors: :readmitted_anchors,
  readmitted_relationship_count: :readmitted_relationship_count,
  reclassifications: :reclassifications,
  reclassified_relationship_count: :reclassified_relationship_count,
  removed_relationship_count: :removed_relationship_count,
  removed_relationship_ids: :removed_relationship_ids,
  requires_full_rebuild: :requires_full_rebuild,
  schema_version: :schema_version,
  strict_component_count_after: :strict_component_count_after,
  strict_component_count_before: :strict_component_count_before,
  strict_reachable_pair_count_after: :strict_reachable_pair_count_after,
  strict_reachable_pair_count_before: :strict_reachable_pair_count_before,
  update_mode: :update_mode
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyConnectivityRebuildData

Returns a new instance of OntologyConnectivityRebuildData.



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 83

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @affected_relation_count = hash[:affected_relation_count]
  @affected_relations = (hash[:affected_relations] || [])
  @base_catalog_digest = hash[:base_catalog_digest]
  @change_id = hash[:change_id]
  @compiled_catalog_digest = hash[:compiled_catalog_digest]
  @gained_identity_safe_join_count = hash[:gained_identity_safe_join_count]
  @gained_strict_join_count = hash[:gained_strict_join_count]
  @id = hash[:id]
  @identity_safe_component_count_after = hash[:identity_safe_component_count_after]
  @identity_safe_component_count_before = hash[:identity_safe_component_count_before]
  @identity_safe_reachable_pair_count_after = hash[:identity_safe_reachable_pair_count_after]
  @identity_safe_reachable_pair_count_before = hash[:identity_safe_reachable_pair_count_before]
  @invalidated_identity_safe_join_count = hash[:invalidated_identity_safe_join_count]
  @invalidated_strict_join_count = hash[:invalidated_strict_join_count]
  @is_valid = hash[:is_valid]
  @isolation_removals = (hash[:isolation_removals] || [])
  @isolation_upserts = (hash[:isolation_upserts] || []).map { |item| item ? Rafflesia::OntologyConnectivityClassificationData.new(item) : nil }
  @materialized_pair_write_count = hash[:materialized_pair_write_count]
  @object = hash[:object]
  @ontology_digest = hash[:ontology_digest]
  @ontology_version = hash[:ontology_version]
  @patch_digest = hash[:patch_digest]
  @readmitted_anchors = (hash[:readmitted_anchors] || []).map { |item| item ? Rafflesia::OntologyReadmittedAnchorRequest.new(item) : nil }
  @readmitted_relationship_count = hash[:readmitted_relationship_count]
  @reclassifications = (hash[:reclassifications] || []).map { |item| item ? Rafflesia::OntologyConnectivityReclassificationRequest.new(item) : nil }
  @reclassified_relationship_count = hash[:reclassified_relationship_count]
  @removed_relationship_count = hash[:removed_relationship_count]
  @removed_relationship_ids = (hash[:removed_relationship_ids] || [])
  @requires_full_rebuild = hash[:requires_full_rebuild]
  @schema_version = hash[:schema_version]
  @strict_component_count_after = hash[:strict_component_count_after]
  @strict_component_count_before = hash[:strict_component_count_before]
  @strict_reachable_pair_count_after = hash[:strict_reachable_pair_count_after]
  @strict_reachable_pair_count_before = hash[:strict_reachable_pair_count_before]
  @update_mode = hash[:update_mode]
end

Instance Attribute Details

#affected_relation_countObject

Returns the value of attribute affected_relation_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def affected_relation_count
  @affected_relation_count
end

#affected_relationsObject

Returns the value of attribute affected_relations.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def affected_relations
  @affected_relations
end

#base_catalog_digestObject

Returns the value of attribute base_catalog_digest.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def base_catalog_digest
  @base_catalog_digest
end

#change_idObject

Returns the value of attribute change_id.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def change_id
  @change_id
end

#compiled_catalog_digestObject

Returns the value of attribute compiled_catalog_digest.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def compiled_catalog_digest
  @compiled_catalog_digest
end

#gained_identity_safe_join_countObject

Returns the value of attribute gained_identity_safe_join_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def gained_identity_safe_join_count
  @gained_identity_safe_join_count
end

#gained_strict_join_countObject

Returns the value of attribute gained_strict_join_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def gained_strict_join_count
  @gained_strict_join_count
end

#idObject

Returns the value of attribute id.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def id
  @id
end

#identity_safe_component_count_afterObject

Returns the value of attribute identity_safe_component_count_after.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def identity_safe_component_count_after
  @identity_safe_component_count_after
end

#identity_safe_component_count_beforeObject

Returns the value of attribute identity_safe_component_count_before.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def identity_safe_component_count_before
  @identity_safe_component_count_before
end

#identity_safe_reachable_pair_count_afterObject

Returns the value of attribute identity_safe_reachable_pair_count_after.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def identity_safe_reachable_pair_count_after
  @identity_safe_reachable_pair_count_after
end

#identity_safe_reachable_pair_count_beforeObject

Returns the value of attribute identity_safe_reachable_pair_count_before.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def identity_safe_reachable_pair_count_before
  @identity_safe_reachable_pair_count_before
end

#invalidated_identity_safe_join_countObject

Returns the value of attribute invalidated_identity_safe_join_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def invalidated_identity_safe_join_count
  @invalidated_identity_safe_join_count
end

#invalidated_strict_join_countObject

Returns the value of attribute invalidated_strict_join_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def invalidated_strict_join_count
  @invalidated_strict_join_count
end

#is_validObject

Returns the value of attribute is_valid.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def is_valid
  @is_valid
end

#isolation_removalsObject

Returns the value of attribute isolation_removals.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def isolation_removals
  @isolation_removals
end

#isolation_upsertsObject

Returns the value of attribute isolation_upserts.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def isolation_upserts
  @isolation_upserts
end

#materialized_pair_write_countObject

Returns the value of attribute materialized_pair_write_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def materialized_pair_write_count
  @materialized_pair_write_count
end

#objectObject

Returns the value of attribute object.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def object
  @object
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def ontology_digest
  @ontology_digest
end

#ontology_versionObject

Returns the value of attribute ontology_version.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def ontology_version
  @ontology_version
end

#patch_digestObject

Returns the value of attribute patch_digest.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def patch_digest
  @patch_digest
end

#readmitted_anchorsObject

Returns the value of attribute readmitted_anchors.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def readmitted_anchors
  @readmitted_anchors
end

#readmitted_relationship_countObject

Returns the value of attribute readmitted_relationship_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def readmitted_relationship_count
  @readmitted_relationship_count
end

#reclassificationsObject

Returns the value of attribute reclassifications.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def reclassifications
  @reclassifications
end

#reclassified_relationship_countObject

Returns the value of attribute reclassified_relationship_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def reclassified_relationship_count
  @reclassified_relationship_count
end

#removed_relationship_countObject

Returns the value of attribute removed_relationship_count.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def removed_relationship_count
  @removed_relationship_count
end

#removed_relationship_idsObject

Returns the value of attribute removed_relationship_ids.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def removed_relationship_ids
  @removed_relationship_ids
end

#requires_full_rebuildObject

Returns the value of attribute requires_full_rebuild.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def requires_full_rebuild
  @requires_full_rebuild
end

#schema_versionObject

Returns the value of attribute schema_version.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def schema_version
  @schema_version
end

#strict_component_count_afterObject

Returns the value of attribute strict_component_count_after.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def strict_component_count_after
  @strict_component_count_after
end

#strict_component_count_beforeObject

Returns the value of attribute strict_component_count_before.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def strict_component_count_before
  @strict_component_count_before
end

#strict_reachable_pair_count_afterObject

Returns the value of attribute strict_reachable_pair_count_after.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def strict_reachable_pair_count_after
  @strict_reachable_pair_count_after
end

#strict_reachable_pair_count_beforeObject

Returns the value of attribute strict_reachable_pair_count_before.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def strict_reachable_pair_count_before
  @strict_reachable_pair_count_before
end

#update_modeObject

Returns the value of attribute update_mode.



46
47
48
# File 'lib/rafflesia/ontology/ontology_connectivity_rebuild_data.rb', line 46

def update_mode
  @update_mode
end