org.compass.core.impl
Class AbstractCompassHits

java.lang.Object
  extended by org.compass.core.impl.AbstractCompassHits
All Implemented Interfaces:
Serializable, Iterable<CompassHit>, CompassHitsOperations
Direct Known Subclasses:
DefaultCompassDetachedHits, DefaultCompassHits

public abstract class AbstractCompassHits
extends Object
implements CompassHitsOperations

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
AbstractCompassHits()
           
 
Method Summary
 Iterator<CompassHit> iterator()
           
 int length()
          Returns the number of hits,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.compass.core.CompassHitsOperations
data, getLength, getQuery, getSuggestedQuery, highlightedText, hit, resource, score
 

Constructor Detail

AbstractCompassHits

public AbstractCompassHits()
Method Detail

length

public int length()
Description copied from interface: CompassHitsOperations
Returns the number of hits,

Specified by:
length in interface CompassHitsOperations
Returns:
The number of hits.

iterator

public Iterator<CompassHit> iterator()
                              throws CompassException
Specified by:
iterator in interface Iterable<CompassHit>
Throws:
CompassException


Copyright (c) 2004-2009 The Compass Project.