Class: Processor::Data::SolrPagesProcessor
Instance Method Summary
collapse
#initialize, #records
#error, #finalize, #finish, #record_error, #records, #start
Instance Method Details
#fetch_batch ⇒ Object
14
15
16
|
# File 'lib/processor/data/solr_pages_processor.rb', line 14
def fetch_batch
query(next_page).results
end
|
#process(record) ⇒ Object
6
7
8
|
# File 'lib/processor/data/solr_pages_processor.rb', line 6
def process(record)
raise NotImplementedError
end
|
#query(requested_page, per_page = batch_size) ⇒ Object
10
11
12
|
# File 'lib/processor/data/solr_pages_processor.rb', line 10
def query(requested_page, per_page = batch_size)
raise NotImplementedError
end
|
#total_records ⇒ Object
18
19
20
|
# File 'lib/processor/data/solr_pages_processor.rb', line 18
def total_records
@total_records ||= query(1).total
end
|