org.apache.jackrabbit.core.query.lucene
Class FilterMultiColumnQueryHits

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.FilterMultiColumnQueryHits
All Implemented Interfaces:
CloseableHits, MultiColumnQueryHits
Direct Known Subclasses:
SortedMultiColumnQueryHits

public class FilterMultiColumnQueryHits
extends Object
implements MultiColumnQueryHits

FilterMultiColumnQueryHits implements a MultiColumnQueryHits filter that forwards each call to the underlying query hits.


Constructor Summary
FilterMultiColumnQueryHits(MultiColumnQueryHits hits)
          Creates a new FilterMultiColumnQueryHits, which forwards each call to hits.
 
Method Summary
 void close()
          Releases resources held by this hits instance.
 Name[] getSelectorNames()
          
 int getSize()
          
 ScoreNode[] nextScoreNodes()
          Returns the next score nodes in this QueryHits or null if there are no more score nodes.
 void skip(int n)
          Skips a n score nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterMultiColumnQueryHits

public FilterMultiColumnQueryHits(MultiColumnQueryHits hits)
Creates a new FilterMultiColumnQueryHits, which forwards each call to hits.

Parameters:
hits - the underlying query hits.
Method Detail

close

public void close()
           throws IOException
Releases resources held by this hits instance.

Specified by:
close in interface CloseableHits
Throws:
IOException - if an error occurs while releasing resources.

getSize

public int getSize()

Specified by:
getSize in interface CloseableHits
Returns:
the number of results or -1 if the size is unknown.

nextScoreNodes

public ScoreNode[] nextScoreNodes()
                           throws IOException
Returns the next score nodes in this QueryHits or null if there are no more score nodes.

Specified by:
nextScoreNodes in interface MultiColumnQueryHits
Returns:
the next score nodes in this QueryHits.
Throws:
IOException - if an error occurs while reading from the index.

getSelectorNames

public Name[] getSelectorNames()

Specified by:
getSelectorNames in interface MultiColumnQueryHits
Returns:
the selector names that correspond to the ScoreNodes returned by MultiColumnQueryHits.nextScoreNodes().

skip

public void skip(int n)
          throws IOException
Skips a n score nodes.

Specified by:
skip in interface CloseableHits
Parameters:
n - the number of score nodes to skip.
Throws:
IOException - if an error occurs while skipping.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.