Package org.apache.maven.index.creator
Class MinimalArtifactInfoIndexCreator
java.lang.Object
org.apache.maven.index.creator.AbstractIndexCreator
org.apache.maven.index.creator.MinimalArtifactInfoIndexCreator
- All Implemented Interfaces:
IndexCreator,LegacyDocumentUpdater
@Singleton
@Named("min")
public class MinimalArtifactInfoIndexCreator
extends AbstractIndexCreator
implements LegacyDocumentUpdater
A minimal index creator used to provide basic information about Maven artifact. This creator will create the index
fast, will not open any file to be fastest as possible but it has some drawbacks: The information gathered by this
creator are sometimes based on "best-effort" only, and does not reflect the reality (ie. maven archetype packaging @see
MavenArchetypeArtifactInfoIndexCreator).- Author:
- cstamas
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldInfo: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists.static final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the indexer fields that this IndexCreator introduces to index.voidPopulate anArtifactContextwith information about corresponding artifact.toString()booleanupdateArtifactInfo(org.apache.lucene.document.Document doc, ArtifactInfo ai) Update anArtifactInfofrom given LuceneDocument.voidupdateDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc) Update LuceneDocumentfrom a givenArtifactInfo.voidupdateLegacyDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc) Update a legacy LuceneDocumentfrom theArtifactInfo.Methods inherited from class org.apache.maven.index.creator.AbstractIndexCreator
bos, getCreatorDependencies, getId, getLogger, sob
-
Field Details
-
ID
- See Also:
-
FLD_INFO
Info: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists. Stored, not indexed. -
FLD_GROUP_ID_KW
-
FLD_GROUP_ID
-
FLD_ARTIFACT_ID_KW
-
FLD_ARTIFACT_ID
-
FLD_VERSION_KW
-
FLD_VERSION
-
FLD_PACKAGING
-
FLD_EXTENSION
-
FLD_CLASSIFIER
-
FLD_NAME
-
FLD_DESCRIPTION
-
FLD_LAST_MODIFIED
-
FLD_SHA1
-
-
Constructor Details
-
MinimalArtifactInfoIndexCreator
public MinimalArtifactInfoIndexCreator()
-
-
Method Details
-
populateArtifactInfo
Description copied from interface:IndexCreatorPopulate anArtifactContextwith information about corresponding artifact.- Specified by:
populateArtifactInfoin interfaceIndexCreator
-
updateDocument
Description copied from interface:IndexCreatorUpdate LuceneDocumentfrom a givenArtifactInfo.- Specified by:
updateDocumentin interfaceIndexCreator
-
updateLegacyDocument
Description copied from interface:LegacyDocumentUpdaterUpdate a legacy LuceneDocumentfrom theArtifactInfo.- Specified by:
updateLegacyDocumentin interfaceLegacyDocumentUpdater
-
updateArtifactInfo
Description copied from interface:IndexCreatorUpdate anArtifactInfofrom given LuceneDocument.- Specified by:
updateArtifactInfoin interfaceIndexCreator- Returns:
- true is artifact info has been updated
-
toString
-
getIndexerFields
Description copied from interface:IndexCreatorReturns the indexer fields that this IndexCreator introduces to index.- Specified by:
getIndexerFieldsin interfaceIndexCreator- Returns:
-