Tabnine Logo
org.apache.maven.index.context
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.maven.index.context

Best Java code snippets using org.apache.maven.index.context (Showing top 20 results out of 315)

origin: org.jboss.windup.org.apache.maven.indexer/indexer-core

public IndexSearcher acquireIndexSearcher()
  throws IOException
{
  final NexusIndexMultiReader mr = new NexusIndexMultiReader( getMembers() );
  return new NexusIndexMultiSearcher( mr );
}
origin: org.apache.maven.indexer/indexer-core

public int getSize()
  throws IOException
{
  int size = 0;
  for ( IndexingContext ctx : getMembers() )
  {
    size += ctx.getSize();
  }
  return size;
}
origin: org.jboss.windup.org.apache.maven.indexer/indexer-core

public void updateTimestamp( boolean save, Date timestamp )
  throws IOException
{
  this.timestamp = timestamp;
  if ( save )
  {
    IndexUtils.updateTimestamp( indexDirectory, getTimestamp() );
  }
}
origin: org.jboss.windup.org.apache.maven.indexer/indexer-core

public synchronized void replace( Directory directory )
  throws IOException
{
  final Date ts = IndexUtils.getTimestamp( directory );
  closeReaders();
  deleteIndexFiles( false );
  IndexUtils.copyDirectory( directory, indexDirectory );
  openAndWarmup();
  // reclaim the index as mine
  storeDescriptor();
  rebuildGroups();
  updateTimestamp( true, ts );
  optimize();
}
origin: org.jboss.windup.org.apache.maven.indexer/indexer-core

public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository,
  Directory indexDirectory, boolean searchable,
  Collection<IndexingContext> contexts )
  throws IOException
{
  IndexingContext context =
    new MergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable,
                  new StaticContextMemberProvider( contexts ) );
  indexingContexts.put( context.getId(), context );
  return context;
}
origin: org.apache.maven.indexer/indexer-core

public void closeIndexingContext( IndexingContext context, boolean deleteFiles )
  throws IOException
{
  context.close( deleteFiles );
}
origin: org.apache.maven.indexer/indexer-core

public synchronized void setRootGroups( Collection<String> groups )
  throws IOException
{
  setGroups( groups, ArtifactInfo.ROOT_GROUPS, ArtifactInfo.ROOT_GROUPS_VALUE, ArtifactInfo.ROOT_GROUPS_LIST );
  commit();
}
origin: org.apache.maven.indexer/indexer-core

public void updateTimestamp()
  throws IOException
{
  updateTimestamp( false );
}
origin: org.jboss.windup.org.apache.maven.indexer/indexer-core

public synchronized void merge( Directory directory )
  throws IOException
{
  merge( directory, null );
}
origin: org.apache.maven.indexer/indexer-core

/**
 * Returns new IndexWriterConfig instance
 * 
 * @since 5.1
 */
protected IndexWriterConfig getWriterConfig()
{
  return NexusIndexWriter.defaultConfig();
}
origin: org.apache.maven.indexer/indexer-core

public IndexingContext createMergedIndexingContext( String id, String repositoryId, File repository,
                          File indexDirectory, boolean searchable,
                          ContextMemberProvider membersProvider )
  throws IOException
{
  IndexingContext context =
    new MergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable, membersProvider );
  return context;
}
origin: org.apache.maven.indexer/indexer-core

public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository,
  Directory indexDirectory, boolean searchable,
  Collection<IndexingContext> contexts )
  throws IOException
{
  IndexingContext context =
    new MergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable,
                  new StaticContextMemberProvider( contexts ) );
  indexingContexts.put( context.getId(), context );
  return context;
}
origin: org.apache.maven.indexer/indexer-core

public IndexSearcher acquireIndexSearcher()
  throws IOException
{
  final NexusIndexMultiReader mr = new NexusIndexMultiReader( getMembers() );
  return new NexusIndexMultiSearcher( mr );
}
origin: apache/maven-indexer

public int getSize()
  throws IOException
{
  int size = 0;
  for ( IndexingContext ctx : getMembers() )
  {
    size += ctx.getSize();
  }
  return size;
}
origin: org.apache.maven.indexer/indexer-core

public void updateTimestamp( boolean save, Date timestamp )
  throws IOException
{
  this.timestamp = timestamp;
  if ( save )
  {
    IndexUtils.updateTimestamp( indexDirectory, getTimestamp() );
  }
}
origin: org.apache.maven.indexer/indexer-core

public synchronized void merge( Directory directory )
  throws IOException
{
  merge( directory, null );
}
origin: apache/maven-indexer

public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository,
  Directory indexDirectory, boolean searchable,
  Collection<IndexingContext> contexts )
  throws IOException
{
  IndexingContext context =
    new MergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable,
                  new StaticContextMemberProvider( contexts ) );
  indexingContexts.put( context.getId(), context );
  return context;
}
origin: apache/maven-indexer

public IndexSearcher acquireIndexSearcher()
  throws IOException
{
  final NexusIndexMultiReader mr = new NexusIndexMultiReader( getMembers() );
  return new NexusIndexMultiSearcher( mr );
}
origin: org.jboss.windup.org.apache.maven.indexer/indexer-core

public int getSize()
  throws IOException
{
  int size = 0;
  for ( IndexingContext ctx : getMembers() )
  {
    size += ctx.getSize();
  }
  return size;
}
origin: apache/maven-indexer

public void updateTimestamp( boolean save, Date timestamp )
  throws IOException
{
  this.timestamp = timestamp;
  if ( save )
  {
    IndexUtils.updateTimestamp( indexDirectory, getTimestamp() );
  }
}
org.apache.maven.index.context

Most used classes

  • IndexingContext
    An indexing context is representing artifact repository for indexing and searching. Indexing context
  • StaticContextMemberProvider
    A simple "static" context member provider, when the members are known in advance.
  • DefaultIndexingContext
    The default IndexingContext implementation.
  • UnsupportedExistingLuceneIndexException
    Thrown when a user tries to create a NexusInder IndexingContext over and existing Lucene index. The
  • ExistingLuceneIndexMismatchException
    Thrown when a user tries to create a NexusInder IndexingContext over and existing Lucene index, and
  • IndexUtils,
  • AbstractIndexingContext,
  • ContextMemberProvider,
  • DocumentFilter,
  • MergedIndexingContext,
  • NexusAnalyzer$DeprecatedClassnamesTokenizer,
  • NexusAnalyzer$LetterOrDigitTokenizer,
  • NexusAnalyzer,
  • NexusIndexMultiReader,
  • NexusIndexMultiSearcher,
  • NexusIndexSearcher,
  • NexusIndexSearcherFactory,
  • NexusIndexWriter,
  • NexusLegacyAnalyzer
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now