|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.impl.AbstractCompassHits
org.compass.core.impl.DefaultCompassDetachedHits
public class DefaultCompassDetachedHits
| Constructor Summary | |
|---|---|
DefaultCompassDetachedHits(InternalCompassHits hits,
InternalCompassSession session,
int from,
int size)
|
|
| Method Summary | |
|---|---|
Object |
data(int n)
Returns the object that maps the n'th hit |
Object[] |
getDatas()
Returns all the Objects data as an array. |
CompassHit[] |
getHits()
Returns all the CompassHits data as an array. |
int |
getLength()
Returns the number of hits, |
Resource[] |
getResources()
Returns all the Resources as an array. |
int |
getTotalLength()
Returns the total number of hits (not just the detached ones). |
CompassHighlightedText |
highlightedText(int n)
Returns a cached highlighted text the maps to the n'th hit. |
CompassHit |
hit(int n)
Returns a compass hit wrapper that maps to the n'th hit |
CompassHitIterator |
iterator()
Returns a lazily loaded iterator over the hits. |
Resource |
resource(int n)
Returns the resource that maps to the n'th hit |
float |
score(int n)
Returns the score of the n'th hit. |
int |
totalLength()
Returns the total number of hits (not just the detached ones). |
| Methods inherited from class org.compass.core.impl.AbstractCompassHits |
|---|
length |
| 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 |
|---|
length |
| Constructor Detail |
|---|
public DefaultCompassDetachedHits(InternalCompassHits hits,
InternalCompassSession session,
int from,
int size)
throws CompassException,
IllegalArgumentException
CompassException
IllegalArgumentException| Method Detail |
|---|
public float score(int n)
throws CompassException,
IllegalArgumentException
CompassHitsOperations
score in interface CompassHitsOperationsn - The n'th hit.
CompassException
IllegalArgumentException
public Resource resource(int n)
throws CompassException,
IllegalArgumentException
CompassHitsOperations
resource in interface CompassHitsOperationsn - The n'th hit.
CompassException
IllegalArgumentException
public Object data(int n)
throws CompassException,
IllegalArgumentException
CompassHitsOperations
data in interface CompassHitsOperationsn - The n'th hit.
CompassException
IllegalArgumentException
public CompassHighlightedText highlightedText(int n)
throws CompassException
CompassHitsOperationsCompassHighlighter
using CompassHits.highlighter(int).
highlightedText in interface CompassHitsOperationsn - The n'th hit
CompassException
public CompassHitIterator iterator()
throws CompassException
CompassDetachedHits
iterator in interface CompassDetachedHitsCompassException
public CompassHit hit(int n)
throws CompassException
CompassHitsOperations
hit in interface CompassHitsOperationsn - The n'th hit.
CompassExceptionpublic int getLength()
CompassHitsOperations
getLength in interface CompassHitsOperationspublic int getTotalLength()
CompassDetachedHits
getTotalLength in interface CompassDetachedHitspublic int totalLength()
CompassDetachedHits
totalLength in interface CompassDetachedHits
public Resource[] getResources()
throws CompassException
CompassDetachedHitsResources as an array.
getResources in interface CompassDetachedHitsResources as an array
CompassException
public Object[] getDatas()
throws CompassException
CompassDetachedHitsObjects data as an array.
getDatas in interface CompassDetachedHitsCompassException
public CompassHit[] getHits()
throws CompassException
CompassDetachedHitsCompassHits data as an array.
getHits in interface CompassDetachedHitsCompassExceptionCompassHit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||