|
||||||||||
| 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(IndexSearcher searcher,
int first,
int max,
int fetchSize,
DocumentExtractor extractor,
Loader loader,
SearchFactory searchFactory,
SessionImplementor sessionImplementor)
|
|
| Method Summary | |
|---|---|
void |
afterLast()
|
void |
beforeFirst()
|
void |
close()
|
boolean |
first()
|
Object[] |
get()
|
Object |
get(int i)
This method is not supported on Lucene based queries |
BigDecimal |
getBigDecimal(int col)
This method is not supported on Lucene based queries |
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 |
Blob |
getBlob(int col)
This method is not supported on Lucene based queries |
Boolean |
getBoolean(int col)
This method is not supported on Lucene based queries |
Byte |
getByte(int col)
This method is not supported on Lucene based queries |
Calendar |
getCalendar(int col)
This method is not supported on Lucene based queries |
Character |
getCharacter(int col)
This method is not supported on Lucene based queries |
Clob |
getClob(int col)
This method is not supported on Lucene based queries |
Date |
getDate(int col)
This method is not supported on Lucene based queries |
Double |
getDouble(int col)
This method is not supported on Lucene based queries |
Float |
getFloat(int col)
This method is not supported on Lucene based queries |
Integer |
getInteger(int col)
This method is not supported on Lucene based queries |
Locale |
getLocale(int col)
This method is not supported on Lucene based queries |
Long |
getLong(int col)
This method is not supported on Lucene based queries |
int |
getRowNumber()
|
Short |
getShort(int col)
This method is not supported on Lucene based queries |
String |
getString(int col)
This method is not supported on Lucene based queries |
String |
getText(int col)
This method is not supported on Lucene based queries |
TimeZone |
getTimeZone(int col)
This method is not supported on Lucene based queries |
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(IndexSearcher searcher,
int first,
int max,
int fetchSize,
DocumentExtractor extractor,
Loader loader,
SearchFactory searchFactory,
SessionImplementor sessionImplementor)
| Method Detail |
|---|
public boolean next()
next in interface ScrollableResultspublic boolean previous()
previous in interface ScrollableResultspublic boolean scroll(int i)
scroll in interface ScrollableResultspublic boolean last()
last in interface ScrollableResultspublic boolean first()
first in interface ScrollableResultspublic void beforeFirst()
beforeFirst in interface ScrollableResultspublic void afterLast()
afterLast in interface ScrollableResultspublic boolean isFirst()
isFirst in interface ScrollableResultspublic boolean isLast()
isLast in interface ScrollableResultspublic void close()
close in interface ScrollableResults
public Object[] get()
throws HibernateException
get in interface ScrollableResultsHibernateExceptionpublic Object get(int i)
get in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Type getType(int i)
getType in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Integer getInteger(int col)
getInteger in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Long getLong(int col)
getLong in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Float getFloat(int col)
getFloat in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Boolean getBoolean(int col)
getBoolean in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Double getDouble(int col)
getDouble in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Short getShort(int col)
getShort in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Byte getByte(int col)
getByte in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Character getCharacter(int col)
getCharacter in interface ScrollableResultsUnsupportedOperationException - always thrownpublic byte[] getBinary(int col)
getBinary in interface ScrollableResultsUnsupportedOperationException - always thrownpublic String getText(int col)
getText in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Blob getBlob(int col)
getBlob in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Clob getClob(int col)
getClob in interface ScrollableResultsUnsupportedOperationException - always thrownpublic String getString(int col)
getString in interface ScrollableResultsUnsupportedOperationException - always thrownpublic BigDecimal getBigDecimal(int col)
getBigDecimal in interface ScrollableResultsUnsupportedOperationException - always thrownpublic BigInteger getBigInteger(int col)
getBigInteger in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Date getDate(int col)
getDate in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Locale getLocale(int col)
getLocale in interface ScrollableResultsUnsupportedOperationException - always thrownpublic Calendar getCalendar(int col)
getCalendar in interface ScrollableResultsUnsupportedOperationException - always thrownpublic TimeZone getTimeZone(int col)
getTimeZone in interface ScrollableResultsUnsupportedOperationException - always thrownpublic int getRowNumber()
getRowNumber in interface ScrollableResultspublic boolean setRowNumber(int rowNumber)
setRowNumber in interface ScrollableResults
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||