|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.lucene.AbstractLuceneQuery<T,Q>
public abstract class AbstractLuceneQuery<T,Q extends AbstractLuceneQuery<T,Q>>
Constructor Summary | |
---|---|
AbstractLuceneQuery(LuceneSerializer serializer,
org.apache.lucene.search.Searcher searcher,
org.apache.commons.collections15.Transformer<org.apache.lucene.document.Document,T> transformer)
|
|
AbstractLuceneQuery(org.apache.lucene.search.Searcher searcher,
org.apache.commons.collections15.Transformer<org.apache.lucene.document.Document,T> transformer)
|
Method Summary | ||
---|---|---|
long |
count()
Get the count of matched elements |
|
long |
countDistinct()
Get the count of distinct matched elements |
|
Q |
distinct()
Set the Query to return distinct results |
|
com.mysema.commons.lang.CloseableIterator<T> |
iterate()
Get the projection as a typed closeable Iterator |
|
com.mysema.commons.lang.CloseableIterator<T> |
iterateDistinct()
Get the projection as a typed closeable Iterator with distinct elements |
|
Q |
limit(long limit)
Defines the limit / max results for the query results |
|
List<T> |
list()
Get the projection as a typed List |
|
List<T> |
listDistinct()
Get the projection as a typed List with distinct elements |
|
SearchResults<T> |
listDistinctResults()
Get the projection in SearchResults form with distinct element |
|
SearchResults<T> |
listResults()
Get the projection in SearchResults form |
|
Q |
offset(long offset)
Defines the offset for the query results |
|
Q |
orderBy(OrderSpecifier<?>... o)
Defines the order expressions |
|
Q |
restrict(QueryModifiers modifiers)
Defines both limit and offset of the query results |
|
|
set(ParamExpression<P> param,
P value)
Set the given parameter to the given value |
|
String |
toString()
|
|
T |
uniqueResult()
Get the projection as a unique result |
|
Q |
where(Predicate... e)
Adds the given filter conditions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractLuceneQuery(LuceneSerializer serializer, org.apache.lucene.search.Searcher searcher, org.apache.commons.collections15.Transformer<org.apache.lucene.document.Document,T> transformer)
public AbstractLuceneQuery(org.apache.lucene.search.Searcher searcher, org.apache.commons.collections15.Transformer<org.apache.lucene.document.Document,T> transformer)
Method Detail |
---|
public long count()
SimpleProjectable
count
in interface SimpleProjectable<T>
public long countDistinct()
SimpleProjectable
countDistinct
in interface SimpleProjectable<T>
public Q distinct()
SimpleQuery
distinct
in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>
public Q limit(long limit)
SimpleQuery
limit
in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>
public com.mysema.commons.lang.CloseableIterator<T> iterate()
SimpleProjectable
iterate
in interface SimpleProjectable<T>
public com.mysema.commons.lang.CloseableIterator<T> iterateDistinct()
SimpleProjectable
iterateDistinct
in interface SimpleProjectable<T>
public List<T> list()
SimpleProjectable
list
in interface SimpleProjectable<T>
public List<T> listDistinct()
SimpleProjectable
listDistinct
in interface SimpleProjectable<T>
public SearchResults<T> listDistinctResults()
SimpleProjectable
SearchResults
form with distinct element
listDistinctResults
in interface SimpleProjectable<T>
public SearchResults<T> listResults()
SimpleProjectable
SearchResults
form
listResults
in interface SimpleProjectable<T>
public Q offset(long offset)
SimpleQuery
offset
in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>
public Q orderBy(OrderSpecifier<?>... o)
SimpleQuery
orderBy
in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>
public Q restrict(QueryModifiers modifiers)
SimpleQuery
restrict
in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>
public <P> Q set(ParamExpression<P> param, P value)
SimpleQuery
set
in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>
public T uniqueResult()
SimpleProjectable
uniqueResult
in interface SimpleProjectable<T>
public Q where(Predicate... e)
FilteredClause
where
in interface FilteredClause<Q extends AbstractLuceneQuery<T,Q>>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |