org.apache.maven.index
Class UniqueArtifactFilterPostprocessor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COLLAPSED
public static final String COLLAPSED
- See Also:
- Constant Field Values
UniqueArtifactFilterPostprocessor
public UniqueArtifactFilterPostprocessor()
UniqueArtifactFilterPostprocessor
public UniqueArtifactFilterPostprocessor(Set<Field> uniqueFields)
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.