org.modeshape.graph.query.process
Class DistinctOfSortedComponent

java.lang.Object
  extended by org.modeshape.graph.query.process.ProcessingComponent
      extended by org.modeshape.graph.query.process.DelegatingComponent
          extended by org.modeshape.graph.query.process.DistinctOfSortedComponent

public class DistinctOfSortedComponent
extends DelegatingComponent

An efficient ProcessingComponent that removes duplicates from an already-sorted set of results.

See Also:
DistinctComponent

Nested Class Summary
 
Nested classes/interfaces inherited from class org.modeshape.graph.query.process.ProcessingComponent
ProcessingComponent.DynamicOperation
 
Constructor Summary
DistinctOfSortedComponent(SortValuesComponent 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.graph.query.process.DelegatingComponent
close, delegate
 
Methods inherited from class org.modeshape.graph.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

DistinctOfSortedComponent

public DistinctOfSortedComponent(SortValuesComponent delegate)
Method Detail

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-2011 JBoss, a division of Red Hat. All Rights Reserved.