|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.query.ScrollableResultsImpl
public class ScrollableResultsImpl
Implements scrollable and paginated resultsets. Contrary to Query#iterate() or Query#list(), this implementation is exposed to returned null objects (if the index is out of date).
The following methods that change the value of 'current' will check and set its value to either 'afterLast' or 'beforeFirst' depending on direction. This is to prevent rogue values from setting it outside the boundaries of the results.
Query| Constructor Summary | |
|---|---|
ScrollableResultsImpl(org.apache.lucene.search.IndexSearcher searcher,
int first,
int max,
int fetchSize,
DocumentExtractor extractor,
Loader loader,
SearchFactory searchFactory,
org.hibernate.engine.SessionImplementor sessionImplementor)
|
|
| Method Summary | |
|---|---|
void |
afterLast()
|
void |
beforeFirst()
|
void |
close()
|
boolean |
first()
|
java.lang.Object[] |
get()
|
java.lang.Object |
get(int i)
This method is not supported on Lucene based queries |
java.math.BigDecimal |
getBigDecimal(int col)
This method is not supported on Lucene based queries |
java.math.BigInteger |
getBigInteger(int col)
This method is not supported on Lucene based queries |
byte[] |
getBinary(int col)
This method is not supported on Lucene based queries |
java.sql.Blob |
getBlob(int col)
This method is not supported on Lucene based queries |
java.lang.Boolean |
getBoolean(int col)
This method is not supported on Lucene based queries |
java.lang.Byte |
getByte(int col)
This method is not supported on Lucene based queries |
java.util.Calendar |
getCalendar(int col)
This method is not supported on Lucene based queries |
java.lang.Character |
getCharacter(int col)
This method is not supported on Lucene based queries |
java.sql.Clob |
getClob(int col)
This method is not supported on Lucene based queries |
java.util.Date |
getDate(int col)
This method is not supported on Lucene based queries |
java.lang.Double |
getDouble(int col)
This method is not supported on Lucene based queries |
java.lang.Float |
getFloat(int col)
This method is not supported on Lucene based queries |
java.lang.Integer |
getInteger(int col)
This method is not supported on Lucene based queries |
java.util.Locale |
getLocale(int col)
This method is not supported on Lucene based queries |
java.lang.Long |
getLong(int col)
This method is not supported on Lucene based queries |
int |
getRowNumber()
|
java.lang.Short |
getShort(int col)
This method is not supported on Lucene based queries |
java.lang.String |
getString(int col)
This method is not supported on Lucene based queries |
java.lang.String |
getText(int col)
This method is not supported on Lucene based queries |
java.util.TimeZone |
getTimeZone(int col)
This method is not supported on Lucene based queries |
org.hibernate.type.Type |
getType(int i)
This method is not supported on Lucene based queries |
boolean |
isFirst()
|
boolean |
isLast()
|
boolean |
last()
|
boolean |
next()
|
boolean |
previous()
|
boolean |
scroll(int i)
|
boolean |
setRowNumber(int rowNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScrollableResultsImpl(org.apache.lucene.search.IndexSearcher searcher,
int first,
int max,
int fetchSize,
DocumentExtractor extractor,
Loader loader,
SearchFactory searchFactory,
org.hibernate.engine.SessionImplementor sessionImplementor)
| Method Detail |
|---|
public boolean next()
next in interface org.hibernate.ScrollableResultspublic boolean previous()
previous in interface org.hibernate.ScrollableResultspublic boolean scroll(int i)
scroll in interface org.hibernate.ScrollableResultspublic boolean last()
last in interface org.hibernate.ScrollableResultspublic boolean first()
first in interface org.hibernate.ScrollableResultspublic void beforeFirst()
beforeFirst in interface org.hibernate.ScrollableResultspublic void afterLast()
afterLast in interface org.hibernate.ScrollableResultspublic boolean isFirst()
isFirst in interface org.hibernate.ScrollableResultspublic boolean isLast()
isLast in interface org.hibernate.ScrollableResultspublic void close()
close in interface org.hibernate.ScrollableResults
public java.lang.Object[] get()
throws org.hibernate.HibernateException
get in interface org.hibernate.ScrollableResultsorg.hibernate.HibernateExceptionpublic java.lang.Object get(int i)
get in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic org.hibernate.type.Type getType(int i)
getType in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Integer getInteger(int col)
getInteger in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Long getLong(int col)
getLong in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Float getFloat(int col)
getFloat in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Boolean getBoolean(int col)
getBoolean in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Double getDouble(int col)
getDouble in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Short getShort(int col)
getShort in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Byte getByte(int col)
getByte in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.Character getCharacter(int col)
getCharacter in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic byte[] getBinary(int col)
getBinary in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.String getText(int col)
getText in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.sql.Blob getBlob(int col)
getBlob in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.sql.Clob getClob(int col)
getClob in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.lang.String getString(int col)
getString in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.math.BigDecimal getBigDecimal(int col)
getBigDecimal in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.math.BigInteger getBigInteger(int col)
getBigInteger in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.util.Date getDate(int col)
getDate in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.util.Locale getLocale(int col)
getLocale in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.util.Calendar getCalendar(int col)
getCalendar in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic java.util.TimeZone getTimeZone(int col)
getTimeZone in interface org.hibernate.ScrollableResultsjava.lang.UnsupportedOperationException - always thrownpublic int getRowNumber()
getRowNumber in interface org.hibernate.ScrollableResultspublic boolean setRowNumber(int rowNumber)
setRowNumber in interface org.hibernate.ScrollableResults
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||