T
- result typepublic class TypedQuery<T> extends AbstractLuceneQuery<T,TypedQuery<T>>
TypedQuery
is a typed query implementation for Lucene queries.
Converts Lucene documents to typed results via a constructor supplied transformer
Constructor and Description |
---|
TypedQuery(org.apache.lucene.search.IndexSearcher searcher,
com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
Create a new TypedQuery instance
|
TypedQuery(LuceneSerializer serializer,
org.apache.lucene.search.IndexSearcher searcher,
com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
Create a new TypedQuery instance
|
asFilter, createQuery, distinct, distinct, fetch, fetchCount, fetchFirst, fetchOne, fetchResults, filter, iterate, limit, load, load, offset, orderBy, orderBy, restrict, set, sort, toString, where, where
public TypedQuery(org.apache.lucene.search.IndexSearcher searcher, com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
searcher
- index searchertransformer
- transformer to transform Lucene documents to result objectspublic TypedQuery(LuceneSerializer serializer, org.apache.lucene.search.IndexSearcher searcher, com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
serializer
- serializersearcher
- index searchertransformer
- transformer to transform Lucene documents to result objectsCopyright © 2007–2016 Querydsl. All rights reserved.