T - projection typeQ - concrete subtype of querydslpublic abstract class AbstractLuceneQuery<T,Q extends AbstractLuceneQuery<T,Q>> extends Object implements SimpleQuery<Q>, Fetchable<T>
| Constructor and Description |
|---|
AbstractLuceneQuery(org.apache.lucene.search.IndexSearcher searcher,
com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer) |
AbstractLuceneQuery(LuceneSerializer serializer,
org.apache.lucene.search.IndexSearcher searcher,
com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Filter |
asFilter()
Create a filter for constraints defined in this querydsl
|
protected org.apache.lucene.search.Query |
createQuery() |
Q |
distinct() |
Q |
distinct(Path<?> property)
Add a DuplicateFilter for the field of the given property path
|
List<T> |
fetch() |
long |
fetchCount() |
T |
fetchFirst() |
T |
fetchOne() |
QueryResults<T> |
fetchResults() |
Q |
filter(org.apache.lucene.search.Filter filter)
Apply the given Lucene filter to the search results
|
com.mysema.commons.lang.CloseableIterator<T> |
iterate() |
Q |
limit(long limit) |
Q |
load(Path<?>... paths)
Load only the fields of the given paths
|
Q |
load(Set<String> fieldsToLoad)
Set the given fields to load
|
Q |
offset(long offset) |
Q |
orderBy(OrderSpecifier<?>... o) |
Q |
orderBy(OrderSpecifier<?> o) |
Q |
restrict(QueryModifiers modifiers) |
<P> Q |
set(ParamExpression<P> param,
P value) |
Q |
sort(org.apache.lucene.search.Sort sort) |
String |
toString() |
Q |
where(Predicate... e) |
Q |
where(Predicate e) |
public AbstractLuceneQuery(LuceneSerializer serializer, org.apache.lucene.search.IndexSearcher searcher, com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
public AbstractLuceneQuery(org.apache.lucene.search.IndexSearcher searcher,
com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
public long fetchCount()
fetchCount in interface Fetchable<T>protected org.apache.lucene.search.Query createQuery()
public org.apache.lucene.search.Filter asFilter()
public Q distinct()
distinct in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>public Q distinct(Path<?> property)
property - distinct propertypublic Q filter(org.apache.lucene.search.Filter filter)
filter - filterpublic Q limit(long limit)
limit in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>public com.mysema.commons.lang.CloseableIterator<T> iterate()
public Q load(Set<String> fieldsToLoad)
fieldsToLoad - fields to loadpublic Q load(Path<?>... paths)
paths - fields to loadpublic QueryResults<T> fetchResults()
fetchResults in interface Fetchable<T>public Q offset(long offset)
offset in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>public Q orderBy(OrderSpecifier<?> o)
public Q orderBy(OrderSpecifier<?>... o)
orderBy in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>public Q restrict(QueryModifiers modifiers)
restrict in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>public <P> Q set(ParamExpression<P> param, P value)
set in interface SimpleQuery<Q extends AbstractLuceneQuery<T,Q>>public Q sort(org.apache.lucene.search.Sort sort)
public T fetchFirst()
fetchFirst in interface Fetchable<T>public Q where(Predicate... e)
where in interface FilteredClause<Q extends AbstractLuceneQuery<T,Q>>Copyright © 2007–2016 Querydsl. All rights reserved.