org.chromattic.api.query
Interface QueryResult<R>

All Superinterfaces:
java.util.Iterator<R>

public interface QueryResult<R>
extends java.util.Iterator<R>

The result for an query.

Version:
$Revision$
Author:
Julien Viet

Method Summary
 int hits()
          Returns the number of hits this query matched regardless of the limit and offset set on the query builder when the query was built.
 int size()
          Returns the number of results this query will returns until the iterator has no more elements to return.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

size

int size()
Returns the number of results this query will returns until the iterator has no more elements to return.

Returns:
the result size

hits

int hits()
Returns the number of hits this query matched regardless of the limit and offset set on the query builder when the query was built.

Returns:
the result hits


Copyright © 2011 eXo Platform SAS. All Rights Reserved.