List of usage examples for org.apache.solr.handler.dataimport DataImporter QUERY_COUNT
ThreadLocal QUERY_COUNT
To view the source code for org.apache.solr.handler.dataimport DataImporter QUERY_COUNT.
Click Source Link
From source file:com.indexisto.dit.processor.LimitedSqlEntityProcessor.java
License:Apache License
protected void initQuery(String q) { try {// w w w . jav a 2 s .c o m DataImporter.QUERY_COUNT.get().incrementAndGet(); rowIterator = dataSource.getData(q); query = q; } catch (final DataImportHandlerException e) { throw e; } catch (final Exception e) { LOG.error("The query failed '" + q + "'", e); throw new DataImportHandlerException(DataImportHandlerException.SEVERE, e); } }