Class: Processor::Data::SolrProcessor
Instance Method Summary
collapse
#initialize, #records
#name, #records
Instance Method Details
#fetch_batch ⇒ Object
14
15
16
|
# File 'lib/processor/data/solr_processor.rb', line 14
def fetch_batch
query.results
end
|
#process(record) ⇒ Object
6
7
8
|
# File 'lib/processor/data/solr_processor.rb', line 6
def process(record)
raise NotImplementedError
end
|
#query ⇒ Object
10
11
12
|
# File 'lib/processor/data/solr_processor.rb', line 10
def query
raise NotImplementedError
end
|
#total_records ⇒ Object
18
19
20
|
# File 'lib/processor/data/solr_processor.rb', line 18
def total_records
@total_records ||= query.total
end
|