org.apache.maven.index
Class UniqueArtifactFilterPostprocessor

java.lang.Object
  extended by org.apache.maven.index.UniqueArtifactFilterPostprocessor
All Implemented Interfaces:
ArtifactInfoFilter

public class UniqueArtifactFilterPostprocessor
extends Object
implements ArtifactInfoFilter

A special reusable filter, that filters the result set to unique Repository-GroupId-ArtifactId combination, leaving out Version. There is a switch to make the Indexer-wide unique by ignoring repositories too.

Author:
cstamas

Field Summary
static String COLLAPSED
           
 
Constructor Summary
UniqueArtifactFilterPostprocessor()
           
UniqueArtifactFilterPostprocessor(Set<Field> uniqueFields)
           
 
Method Summary
 boolean accepts(IndexingContext ctx, ArtifactInfo ai)
           
 void addField(Field field)
           
 void postprocess(IndexingContext ctx, ArtifactInfo ai)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLLAPSED

public static final String COLLAPSED
See Also:
Constant Field Values
Constructor Detail

UniqueArtifactFilterPostprocessor

public UniqueArtifactFilterPostprocessor()

UniqueArtifactFilterPostprocessor

public UniqueArtifactFilterPostprocessor(Set<Field> uniqueFields)
Method Detail

accepts

public boolean accepts(IndexingContext ctx,
                       ArtifactInfo ai)
Specified by:
accepts in interface ArtifactInfoFilter

postprocess

public void postprocess(IndexingContext ctx,
                        ArtifactInfo ai)

addField

public void addField(Field field)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.