ModeShape Distribution 3.0.0.Beta4

Class DistinctComponent

  extended by org.modeshape.jcr.query.process.ProcessingComponent
      extended by org.modeshape.jcr.query.process.DelegatingComponent
          extended by org.modeshape.jcr.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.

Nested Class Summary
Nested classes/interfaces inherited from class org.modeshape.jcr.query.process.ProcessingComponent
Constructor Summary
DistinctComponent(ProcessingComponent delegate)
Method Summary
 List<Object[]> execute()
          Execute this stage of processing and return the resulting tuples that each conform to the columns.
Methods inherited from class org.modeshape.jcr.query.process.DelegatingComponent
close, delegate
Methods inherited from class org.modeshape.jcr.query.process.ProcessingComponent
createDynamicOperation, createSortComparator, emptyTuples, getColumns, getContext, problems
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DistinctComponent(ProcessingComponent delegate)
Method Detail


public List<Object[]> execute()
Description copied from class: ProcessingComponent
Execute this stage of processing and return the resulting tuples that each conform to the columns.

Specified by:
execute in class ProcessingComponent
the list of tuples, where each tuple corresonds to the columns; never null

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.