Example usage for org.apache.solr.handler.dataimport DataImporter QUERY_COUNT

List of usage examples for org.apache.solr.handler.dataimport DataImporter QUERY_COUNT

Introduction

In this page you can find the example usage for org.apache.solr.handler.dataimport DataImporter QUERY_COUNT.

Prototype

ThreadLocal QUERY_COUNT

To view the source code for org.apache.solr.handler.dataimport DataImporter QUERY_COUNT.

Click Source Link

Usage

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);
    }
}