public interface IRavenQueryProvider extends IQueryProvider
Modifier and Type | Method and Description |
---|---|
void |
addTransformerParameter(String input,
RavenJToken foo)
Adds input to this query via a key/value pair
|
void |
afterQueryExecuted(Action1<QueryResult> afterQueryExecuted)
Callback to get the results of the query
|
void |
afterStreamExecuted(Action1<RavenJObject> afterStreamExecuted)
Callback to get the results of the stream
|
<T> Lazy<Integer> |
countLazily(Class<T> clazz,
com.mysema.query.types.Expression<?> expression) |
void |
customize(DocumentQueryCustomizationFactory factory)
Customizes the query using the specified action
|
<S> IRavenQueryProvider |
forClass(Class<S> clazz)
Change the result type for the query provider
|
DocumentQueryCustomizationFactory |
getCustomizeQuery() |
Set<String> |
getFieldsToFetch() |
String |
getIndexName() |
Class |
getOriginalQueryType() |
IDocumentQueryGenerator |
getQueryGenerator() |
String |
getResultTranformer() |
Map<String,RavenJToken> |
getTransformerParameters() |
<T> Lazy<List<T>> |
lazily(Class<T> clazz,
com.mysema.query.types.Expression<?> expression,
Action1<List<T>> onEval)
Convert the Linq query to a lazy Lucene query and provide a function to execute when it is being evaluate
|
void |
setOriginalQueryType(Class clazz) |
<T> IDocumentQuery<T> |
toDocumentQuery(Class<T> clazz,
com.mysema.query.types.Expression<?> expression)
Convert the linq query to a Lucene query
|
void |
transformWith(String transformerName)
The name of the transformer to use with this query
|
createQuery, execute
void afterQueryExecuted(Action1<QueryResult> afterQueryExecuted)
afterQueryExecuted
- void afterStreamExecuted(Action1<RavenJObject> afterStreamExecuted)
afterStreamExecuted
- void customize(DocumentQueryCustomizationFactory factory)
factory
- void transformWith(String transformerName)
transformerName
- String getIndexName()
IDocumentQueryGenerator getQueryGenerator()
DocumentQueryCustomizationFactory getCustomizeQuery()
<S> IRavenQueryProvider forClass(Class<S> clazz)
clazz
- <T> IDocumentQuery<T> toDocumentQuery(Class<T> clazz, com.mysema.query.types.Expression<?> expression)
clazz
- expression
- <T> Lazy<List<T>> lazily(Class<T> clazz, com.mysema.query.types.Expression<?> expression, Action1<List<T>> onEval)
expression
- onEval
- <T> Lazy<Integer> countLazily(Class<T> clazz, com.mysema.query.types.Expression<?> expression)
String getResultTranformer()
Map<String,RavenJToken> getTransformerParameters()
void addTransformerParameter(String input, RavenJToken foo)
input
- foo
- Class getOriginalQueryType()
void setOriginalQueryType(Class clazz)
Copyright © 2016. All Rights Reserved.