@Singleton @Named(value="min") public class MinimalArtifactInfoIndexCreator extends AbstractIndexCreator implements LegacyDocumentUpdater
MavenArchetypeArtifactInfoIndexCreator
).Modifier and Type | Field and Description |
---|---|
static IndexerField |
FLD_ARTIFACT_ID |
static IndexerField |
FLD_ARTIFACT_ID_KW |
static IndexerField |
FLD_CLASSIFIER |
static IndexerField |
FLD_DESCRIPTION |
static IndexerField |
FLD_EXTENSION |
static IndexerField |
FLD_GROUP_ID |
static IndexerField |
FLD_GROUP_ID_KW |
static IndexerField |
FLD_INFO
Info: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists.
|
static IndexerField |
FLD_LAST_MODIFIED |
static IndexerField |
FLD_NAME |
static IndexerField |
FLD_PACKAGING |
static IndexerField |
FLD_SHA1 |
static IndexerField |
FLD_VERSION |
static IndexerField |
FLD_VERSION_KW |
static java.lang.String |
ID |
private Locator |
jl |
private Locator |
sha1l |
private Locator |
sigl |
private Locator |
sl |
Constructor and Description |
---|
MinimalArtifactInfoIndexCreator() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
getExtension(java.io.File artifact,
Gav gav) |
java.util.Collection<IndexerField> |
getIndexerFields()
Returns the indexer fields that this IndexCreator introduces to index.
|
void |
populateArtifactInfo(ArtifactContext ac)
Populate an
ArtifactContext with information about corresponding artifact. |
java.lang.String |
toString() |
boolean |
updateArtifactInfo(org.apache.lucene.document.Document doc,
ArtifactInfo ai)
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 java.lang.String ID
public static final IndexerField FLD_INFO
public static final IndexerField FLD_GROUP_ID_KW
public static final IndexerField FLD_GROUP_ID
public static final IndexerField FLD_ARTIFACT_ID_KW
public static final IndexerField FLD_ARTIFACT_ID
public static final IndexerField FLD_VERSION_KW
public static final IndexerField FLD_VERSION
public static final IndexerField FLD_PACKAGING
public static final IndexerField FLD_EXTENSION
public static final IndexerField FLD_CLASSIFIER
public static final IndexerField FLD_NAME
public static final IndexerField FLD_DESCRIPTION
public static final IndexerField FLD_LAST_MODIFIED
public static final IndexerField FLD_SHA1
private Locator jl
private Locator sl
private Locator sigl
private Locator sha1l
public void populateArtifactInfo(ArtifactContext ac)
IndexCreator
ArtifactContext
with information about corresponding artifact.populateArtifactInfo
in interface IndexCreator
private java.lang.String getExtension(java.io.File artifact, Gav gav)
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 ai)
IndexCreator
ArtifactInfo
from given Lucene Document
.updateArtifactInfo
in interface IndexCreator
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<IndexerField> getIndexerFields()
IndexCreator
getIndexerFields
in interface IndexCreator