Package net.sf.clairv.index.processor

Examples of net.sf.clairv.index.processor.ResourceProcessor


    context = new IndexerContext(configFile);
  }

  public void start() {
    Collection resources = context.getResources();
    ResourceProcessor resourceProcessor = context.getResourceProcessor();
    for (Iterator itr = resources.iterator(); itr.hasNext(); ) {
      Resource resource = (Resource)itr.next();
      ResourceMetaData meta = resource.getMetaData();
      log.info("Starting to indexing resource: " + meta.getResourceName());
      long start = System.currentTimeMillis();
      int count = resourceProcessor.process(resource);
      log.info("Indexing on resource \"" + meta.getResourceName()
          + "\" done (" + (System.currentTimeMillis() - start)
          + "ms used, " + count + " records indexed)");
    }
    resourceProcessor.close();
  }
View Full Code Here

TOP

Related Classes of net.sf.clairv.index.processor.ResourceProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.