org.hibernate.shards.query
Class ExitOperationsQueryCollector

java.lang.Object
  extended by org.hibernate.shards.query.ExitOperationsQueryCollector
All Implemented Interfaces:
ExitOperationsCollector

public class ExitOperationsQueryCollector
extends Object
implements ExitOperationsCollector

Exit operations for queries is essentially not implemented. Its intended use is to record a set of aggregation type operations to be executed on the combined results for a query executed on each shard. We do implement setMaxResults and setFirstResult as these operations do not require parsing the query string.

Author:
Maulik Shah

Constructor Summary
ExitOperationsQueryCollector()
           
 
Method Summary
 List<Object> apply(List<Object> result)
           
 ExitOperationsCollector setFirstResult(int firstResult)
           
 ExitOperationsCollector setMaxResults(int maxResults)
           
 void setSessionFactory(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExitOperationsQueryCollector

public ExitOperationsQueryCollector()
Method Detail

apply

public List<Object> apply(List<Object> result)
Specified by:
apply in interface ExitOperationsCollector

setSessionFactory

public void setSessionFactory(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)
Specified by:
setSessionFactory in interface ExitOperationsCollector

setMaxResults

public ExitOperationsCollector setMaxResults(int maxResults)

setFirstResult

public ExitOperationsCollector setFirstResult(int firstResult)