Class: Processor::Data::SolrProcessor

Inherits:
BatchProcessor show all
Defined in:
lib/processor/data/solr_processor.rb

Instance Method Summary collapse

Methods inherited from BatchProcessor

#initialize, #records

Methods inherited from NullProcessor

#name, #records

Constructor Details

This class inherits a constructor from Processor::Data::BatchProcessor

Instance Method Details

#fetch_batchObject



14
15
16
# File 'lib/processor/data/solr_processor.rb', line 14

def fetch_batch
  query.results
end

#process(record) ⇒ Object

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/processor/data/solr_processor.rb', line 6

def process(record)
  raise NotImplementedError
end

#queryObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/processor/data/solr_processor.rb', line 10

def query
  raise NotImplementedError
end

#total_recordsObject



18
19
20
# File 'lib/processor/data/solr_processor.rb', line 18

def total_records
  @total_records ||= query.total
end