@Component(role=IndexCreator.class, hint="jarContent") public class JarFileContentsIndexCreator extends AbstractIndexCreator implements LegacyDocumentUpdater
| Modifier and Type | Field and Description |
|---|---|
static IndexerField |
FLD_CLASSNAMES |
static IndexerField |
FLD_CLASSNAMES_KW
NexusAnalyzer makes exception with this field only, to keep backward compatibility with old consumers of
nexus-indexer.
|
static java.lang.String |
ID |
| Constructor and Description |
|---|
JarFileContentsIndexCreator() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<IndexerField> |
getIndexerFields()
Returns the indexer fields that this IndexCreator introduces to index.
|
void |
populateArtifactInfo(ArtifactContext artifactContext)
Populate an
ArtifactContext with information about corresponding artifact. |
java.lang.String |
toString() |
private void |
updateArtifactInfo(ArtifactInfo ai,
java.io.File f) |
private void |
updateArtifactInfo(ArtifactInfo ai,
java.io.File f,
java.lang.String strippedPrefix) |
boolean |
updateArtifactInfo(org.apache.lucene.document.Document doc,
ArtifactInfo artifactInfo)
Update an
ArtifactInfo from given Lucene Document. |
void |
updateDocument(ArtifactInfo ai,
org.apache.lucene.document.Document doc)
Update Lucene
Document from a given ArtifactInfo. |
void |
updateLegacyDocument(ArtifactInfo ai,
org.apache.lucene.document.Document doc)
Update a legacy Lucene
Document from the ArtifactInfo. |
bos, getCreatorDependencies, getId, sobpublic static final java.lang.String ID
public static final IndexerField FLD_CLASSNAMES
public static final IndexerField FLD_CLASSNAMES_KW
public void populateArtifactInfo(ArtifactContext artifactContext) throws java.io.IOException
IndexCreatorArtifactContext with information about corresponding artifact.populateArtifactInfo in interface IndexCreatorjava.io.IOExceptionpublic void updateDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc)
IndexCreatorDocument from a given ArtifactInfo.updateDocument in interface IndexCreatorpublic void updateLegacyDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc)
LegacyDocumentUpdaterDocument from the ArtifactInfo.updateLegacyDocument in interface LegacyDocumentUpdaterpublic boolean updateArtifactInfo(org.apache.lucene.document.Document doc,
ArtifactInfo artifactInfo)
IndexCreatorArtifactInfo from given Lucene Document.updateArtifactInfo in interface IndexCreatorprivate void updateArtifactInfo(ArtifactInfo ai, java.io.File f) throws java.io.IOException
java.io.IOExceptionprivate void updateArtifactInfo(ArtifactInfo ai, java.io.File f, java.lang.String strippedPrefix) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection<IndexerField> getIndexerFields()
IndexCreatorgetIndexerFields in interface IndexCreator