Class BasicUsageExample

java.lang.Object
org.apache.maven.index.examples.BasicUsageExample

@Singleton @Named public class BasicUsageExample extends Object
Collection of some use cases.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicUsageExample(org.apache.maven.index.Indexer indexer, org.apache.maven.index.updater.IndexUpdater indexUpdater, Map<String,org.apache.maven.index.context.IndexCreator> indexCreators)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    searchAndDump(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q)
     
    void
    searchGroupedAndDump(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g)
     
    void
    searchGroupedAndDumpFlat(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BasicUsageExample

      @Inject public BasicUsageExample(org.apache.maven.index.Indexer indexer, org.apache.maven.index.updater.IndexUpdater indexUpdater, Map<String,org.apache.maven.index.context.IndexCreator> indexCreators)
  • Method Details

    • perform

      public void perform() throws IOException, org.eclipse.aether.version.InvalidVersionSpecificationException
      Throws:
      IOException
      org.eclipse.aether.version.InvalidVersionSpecificationException
    • searchAndDump

      public void searchAndDump(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q) throws IOException
      Throws:
      IOException
    • searchGroupedAndDumpFlat

      public void searchGroupedAndDumpFlat(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g) throws IOException
      Throws:
      IOException
    • searchGroupedAndDump

      public void searchGroupedAndDump(org.apache.maven.index.Indexer nexusIndexer, String descr, org.apache.lucene.search.Query q, org.apache.maven.index.Grouping g) throws IOException
      Throws:
      IOException