public class RepositoryIndexer extends Object
| Constructor and Description |
|---|
RepositoryIndexer() |
public void close()
throws IOException
IOExceptionpublic void close(boolean deleteFiles)
throws IOException
IOExceptionpublic void delete(Collection<ArtifactInfo> artifacts) throws IOException
IOExceptionpublic Set<ArtifactInfo> search(String groupId, String artifactId, String version, String packaging, String classifier) throws IOException
IOExceptionpublic Set<ArtifactInfo> search(String queryText) throws org.apache.lucene.queryparser.classic.ParseException, IOException
org.apache.lucene.queryparser.classic.ParseExceptionIOExceptionpublic Set<ArtifactInfo> searchBySHA1(String checksum) throws IOException
IOExceptionpublic int index(File startingPath)
public void addArtifactToIndex(File artifactFile, ArtifactInfo artifactInfo) throws IOException
IOExceptionpublic void addArtifactToIndex(String repository, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier) throws IOException
IOExceptionpublic Indexer getIndexer()
public void setIndexer(Indexer indexer)
public Scanner getScanner()
public void setScanner(Scanner scanner)
public List<IndexCreator> getIndexers()
public void setIndexers(List<IndexCreator> indexers)
public IndexingContext getIndexingContext()
public void setIndexingContext(IndexingContext indexingContext)
public String getRepositoryId()
public void setRepositoryId(String repositoryId)
public File getRepositoryBasedir()
public void setRepositoryBasedir(File repositoryBasedir)
public File getIndexDir()
public void setIndexDir(File indexDir)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.