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
Modifier and TypeFieldDescriptionstatic final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
Info: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists.static final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
static final IndexerField
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the indexer fields that this IndexCreator introduces to index.void
Populate anArtifactContext
with information about corresponding artifact.toString()
boolean
updateArtifactInfo
(org.apache.lucene.document.Document doc, ArtifactInfo ai) Update anArtifactInfo
from given LuceneDocument
.void
updateDocument
(ArtifactInfo ai, org.apache.lucene.document.Document doc) Update LuceneDocument
from a givenArtifactInfo
.void
updateLegacyDocument
(ArtifactInfo ai, org.apache.lucene.document.Document doc) Update a legacy LuceneDocument
from 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:IndexCreator
Populate anArtifactContext
with information about corresponding artifact.- Specified by:
populateArtifactInfo
in interfaceIndexCreator
-
updateDocument
Description copied from interface:IndexCreator
Update LuceneDocument
from a givenArtifactInfo
.- Specified by:
updateDocument
in interfaceIndexCreator
-
updateLegacyDocument
Description copied from interface:LegacyDocumentUpdater
Update a legacy LuceneDocument
from theArtifactInfo
.- Specified by:
updateLegacyDocument
in interfaceLegacyDocumentUpdater
-
updateArtifactInfo
Description copied from interface:IndexCreator
Update anArtifactInfo
from given LuceneDocument
.- Specified by:
updateArtifactInfo
in interfaceIndexCreator
- Returns:
- true is artifact info has been updated
-
toString
-
getIndexerFields
Description copied from interface:IndexCreator
Returns the indexer fields that this IndexCreator introduces to index.- Specified by:
getIndexerFields
in interfaceIndexCreator
- Returns:
-