org.jboss.dna.graph.query.process
Class DistinctComponent
java.lang.Object
org.jboss.dna.graph.query.process.ProcessingComponent
org.jboss.dna.graph.query.process.DelegatingComponent
org.jboss.dna.graph.query.process.DistinctComponent
public class DistinctComponent
- extends DelegatingComponent
A ProcessingComponent
implementation that removes duplicates. The results from the delegate component do not need to be
sorted; in fact, if the delegate component is a SortValuesComponent
, then use DistinctOfSortedComponent
instead of
this class.
Method Summary |
List<Object[]> |
execute()
Execute this stage of processing and return the resulting tuples that each conform to the columns . |
DistinctComponent
public DistinctComponent(ProcessingComponent delegate)
execute
public List<Object[]> execute()
- Execute this stage of processing and return the resulting tuples that each conform to the
columns
.
- Specified by:
execute
in class ProcessingComponent
- Returns:
- the list of tuples, where each tuple corresonds to the
columns
; never null - See Also:
ProcessingComponent.execute()
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.