public class RepositoryIndexer extends Object
Constructor and Description |
---|
RepositoryIndexer() |
public void close() throws IOException
IOException
public void close(boolean deleteFiles) throws IOException
IOException
public void delete(Collection<ArtifactInfo> artifacts) throws IOException
IOException
public Set<ArtifactInfo> search(String groupId, String artifactId, String version, String packaging, String classifier) throws IOException
IOException
public Set<ArtifactInfo> search(String queryText) throws org.apache.lucene.queryparser.classic.ParseException, IOException
org.apache.lucene.queryparser.classic.ParseException
IOException
public Set<ArtifactInfo> searchBySHA1(String checksum) throws IOException
IOException
public int index(File startingPath)
public void addArtifactToIndex(File artifactFile, ArtifactInfo artifactInfo) throws IOException
IOException
public void addArtifactToIndex(String repository, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier) throws IOException
IOException
public 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.