Module: Samvera::NestingIndexer::Adapters::AbstractAdapter
- Included in:
- InMemoryAdapter
- Defined in:
- lib/samvera/nesting_indexer/adapters/abstract_adapter.rb
Overview
A module that defines the interface of methods required to interact with Samvera::NestingIndexer operations rubocop:disable Lint/UnusedMethodArgument
Class Method Summary collapse
- .each_child_document_of(document:, extent:) {|Samvera::NestingIndexer::Documents::IndexDocument| ... } ⇒ Object
- .each_perservation_document_id_and_parent_ids {|id, parent_ids| ... } ⇒ Object
- .find_index_document_by(id:) ⇒ Samvera::NestingIndexer::Documents::IndexDocument
- .find_preservation_document_by(id:) ⇒ Samvera::NestingIndexer::Document::PreservationDocument
-
.find_preservation_parent_ids_for(id:) ⇒ Array<String>
The parent ids of the given preservation document.
-
.write_nesting_document_to_index_layer(nesting_document:) ⇒ Object
Void.
Class Method Details
.each_child_document_of(document:, extent:) {|Samvera::NestingIndexer::Documents::IndexDocument| ... } ⇒ Object
42 43 44 |
# File 'lib/samvera/nesting_indexer/adapters/abstract_adapter.rb', line 42 def self.each_child_document_of(document:, extent:, &block) raise NotImplementedError end |
.each_perservation_document_id_and_parent_ids {|id, parent_ids| ... } ⇒ Object
26 27 28 |
# File 'lib/samvera/nesting_indexer/adapters/abstract_adapter.rb', line 26 def self.each_perservation_document_id_and_parent_ids(&block) raise NotImplementedError end |
.find_index_document_by(id:) ⇒ Samvera::NestingIndexer::Documents::IndexDocument
18 19 20 |
# File 'lib/samvera/nesting_indexer/adapters/abstract_adapter.rb', line 18 def self.find_index_document_by(id:) raise NotImplementedError end |
.find_preservation_document_by(id:) ⇒ Samvera::NestingIndexer::Document::PreservationDocument
11 12 13 |
# File 'lib/samvera/nesting_indexer/adapters/abstract_adapter.rb', line 11 def self.find_preservation_document_by(id:) raise NotImplementedError end |
.find_preservation_parent_ids_for(id:) ⇒ Array<String>
Returns The parent ids of the given preservation document.
34 35 36 |
# File 'lib/samvera/nesting_indexer/adapters/abstract_adapter.rb', line 34 def self.find_preservation_parent_ids_for(id:) raise NotImplementedError end |
.write_nesting_document_to_index_layer(nesting_document:) ⇒ Object
Returns void.
51 52 53 |
# File 'lib/samvera/nesting_indexer/adapters/abstract_adapter.rb', line 51 def self.write_nesting_document_to_index_layer(nesting_document:) raise NotImplementedError end |