Package org.apache.maven.index
Class DefaultIndexerEngine
- java.lang.Object
-
- org.apache.maven.index.DefaultIndexerEngine
-
- All Implemented Interfaces:
IndexerEngine
@Singleton @Named public class DefaultIndexerEngine extends java.lang.Object implements IndexerEngine
A defaultIndexerEngineimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexerEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanequals(org.apache.lucene.document.Document d1, org.apache.lucene.document.Document d2)private org.apache.lucene.document.DocumentgetOldDocument(IndexingContext context, ArtifactContext ac)voidindex(IndexingContext context, ArtifactContext ac)Add new artifact to the indexvoidremove(IndexingContext context, ArtifactContext ac)Remove artifact to the indexprivate java.util.Map<java.lang.String,java.lang.String>toMap(org.apache.lucene.document.Document d)voidupdate(IndexingContext context, ArtifactContext ac)Replace data for a previously indexed artifactprivate voidupdateGroups(IndexingContext context, ArtifactContext ac)
-
-
-
Method Detail
-
index
public void index(IndexingContext context, ArtifactContext ac) throws java.io.IOException
Description copied from interface:IndexerEngineAdd new artifact to the index- Specified by:
indexin interfaceIndexerEngine- Throws:
java.io.IOException
-
update
public void update(IndexingContext context, ArtifactContext ac) throws java.io.IOException
Description copied from interface:IndexerEngineReplace data for a previously indexed artifact- Specified by:
updatein interfaceIndexerEngine- Throws:
java.io.IOException
-
remove
public void remove(IndexingContext context, ArtifactContext ac) throws java.io.IOException
Description copied from interface:IndexerEngineRemove artifact to the index- Specified by:
removein interfaceIndexerEngine- Throws:
java.io.IOException
-
equals
private boolean equals(org.apache.lucene.document.Document d1, org.apache.lucene.document.Document d2)
-
toMap
private java.util.Map<java.lang.String,java.lang.String> toMap(org.apache.lucene.document.Document d)
-
getOldDocument
private org.apache.lucene.document.Document getOldDocument(IndexingContext context, ArtifactContext ac)
-
updateGroups
private void updateGroups(IndexingContext context, ArtifactContext ac) throws java.io.IOException
- Throws:
java.io.IOException
-
-