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 defaultIndexerEngine
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexerEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
equals(org.apache.lucene.document.Document d1, org.apache.lucene.document.Document d2)
private org.apache.lucene.document.Document
getOldDocument(IndexingContext context, ArtifactContext ac)
void
index(IndexingContext context, ArtifactContext ac)
Add new artifact to the indexvoid
remove(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)
void
update(IndexingContext context, ArtifactContext ac)
Replace data for a previously indexed artifactprivate void
updateGroups(IndexingContext context, ArtifactContext ac)
-
-
-
Method Detail
-
index
public void index(IndexingContext context, ArtifactContext ac) throws java.io.IOException
Description copied from interface:IndexerEngine
Add new artifact to the index- Specified by:
index
in interfaceIndexerEngine
- Throws:
java.io.IOException
-
update
public void update(IndexingContext context, ArtifactContext ac) throws java.io.IOException
Description copied from interface:IndexerEngine
Replace data for a previously indexed artifact- Specified by:
update
in interfaceIndexerEngine
- Throws:
java.io.IOException
-
remove
public void remove(IndexingContext context, ArtifactContext ac) throws java.io.IOException
Description copied from interface:IndexerEngine
Remove artifact to the index- Specified by:
remove
in 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
-
-