@Singleton @Named(value="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 String |
ID |
Constructor and Description |
---|
JarFileContentsIndexCreator() |
Modifier and Type | Method and Description |
---|---|
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. |
String |
toString() |
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, getLogger, sob
public static final String ID
public static final IndexerField FLD_CLASSNAMES
public static final IndexerField FLD_CLASSNAMES_KW
public void populateArtifactInfo(ArtifactContext artifactContext) throws IOException
IndexCreator
ArtifactContext
with information about corresponding artifact.populateArtifactInfo
in interface IndexCreator
IOException
public void updateDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc)
IndexCreator
Document
from a given ArtifactInfo
.updateDocument
in interface IndexCreator
public void updateLegacyDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc)
LegacyDocumentUpdater
Document
from the ArtifactInfo
.updateLegacyDocument
in interface LegacyDocumentUpdater
public boolean updateArtifactInfo(org.apache.lucene.document.Document doc, ArtifactInfo artifactInfo)
IndexCreator
ArtifactInfo
from given Lucene Document
.updateArtifactInfo
in interface IndexCreator
public Collection<IndexerField> getIndexerFields()
IndexCreator
getIndexerFields
in interface IndexCreator
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.