T
- public interface IDocumentQuery<T> extends IDocumentQueryBase<T,IDocumentQuery<T>>, Iterable<T>
Modifier and Type | Method and Description |
---|---|
boolean |
any()
Returns if any entry matches query
|
Lazy<Integer> |
countLazily()
Register the query as a lazy-count query in the session and return a lazy
instance that will evaluate the query only when needed.
|
T |
first()
Returns first result
|
T |
firstOrDefault()
Returns first result
|
FacetResults |
getFacets(List<Facet> facets,
int facetStart,
Integer facetPageSize)
Get the facets as per the specified facets with the given start and pageSize
|
FacetResults |
getFacets(String facetSetupDoc,
int facetStart,
Integer facetPageSize)
Get the facets as per the specified doc with the given start and pageSize
|
IndexQuery |
getIndexQuery()
Create the index query object for this query
|
QueryResult |
getQueryResult()
Gets the query result.
|
boolean |
isDistinct()
Whatever we should apply distinct operation to the query on the server side
|
Lazy<List<T>> |
lazily()
Register the query as a lazy query in the session and return a lazy
instance that will evaluate the query only when needed
|
Lazy<List<T>> |
lazily(Action1<List<T>> onEval)
Register the query as a lazy query in the session and return a lazy
instance that will evaluate the query only when needed.
|
<TProjection> |
selectFields(Class<TProjection> projectionClass)
Selects the specified fields directly from the index if the are stored.
|
<TProjection> |
selectFields(Class<TProjection> projectionClass,
String... fields)
Selects the specified fields directly from the index if the are stored.
|
<TProjection> |
selectFields(Class<TProjection> projectionClass,
String[] fields,
String[] projections)
Selects the specified fields directly from the index if the are stored.
|
<TTransformer extends AbstractTransformerCreationTask,TTransformerResult> |
setResultTransformer(Class<TTransformer> transformerClass,
Class<TTransformerResult> resultClass)
Sets a transformer to use after executing a query
|
IDocumentQuery<T> |
setTransformerParameters(Map<String,RavenJToken> transformerParameter)
Get the facets as per the specified facets with the given start and pageSize
|
T |
single()
Returns single result
|
T |
singleOrDefault()
Returns single result
|
IDocumentQuery<T> |
spatial(com.mysema.query.types.Path<?> path,
SpatialCriteria criteria)
Ability to use one factory to determine spatial shape that will be used in query.
|
IDocumentQuery<T> |
spatial(String name,
SpatialCriteria criteria)
Ability to use one factory to determine spatial shape that will be used in query.
|
FacetResults |
toFacets(List<Facet> facets)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
FacetResults |
toFacets(List<Facet> facets,
int start)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
FacetResults |
toFacets(List<Facet> facets,
int start,
Integer pageSize)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
FacetResults |
toFacets(String facetSetupDoc)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
FacetResults |
toFacets(String facetSetupDoc,
int start)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
FacetResults |
toFacets(String facetSetupDoc,
int start,
Integer pageSize)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(List<Facet> facets)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(List<Facet> facets,
int start)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(List<Facet> facets,
int start,
Integer pageSize)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(String facetSetupDoc)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(String facetSetupDoc,
int start)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(String facetSetupDoc,
int start,
Integer pageSize)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
List<T> |
toList()
Materialize query, executes request and returns with results
|
addOrder, addOrder, addOrder, afterQueryExecuted, afterStreamExecuted, andAlso, beforeQueryExecution, boost, closeSubclause, containsAll, containsAll, containsAny, containsAny, customSortUsing, distinct, explainScores, fuzzy, getDocumentConvention, highlight, highlight, highlight, highlight, highlight, highlight, include, include, intersect, invokeAfterQueryExecuted, invokeAfterStreamExecuted, negateNext, noCaching, not, noTracking, openSubclause, orderBy, orderBy, orderByDescending, orderByDescending, orderByScore, orderByScoreDescending, orElse, proximity, randomOrdering, randomOrdering, relatesToShape, relatesToShape, search, search, search, search, setAllowMultipleIndexEntriesForSameDocumentToResultTransformer, setHighlighterTags, setHighlighterTags, setResultTransformer, showTimings, skip, sortByDistance, sortByDistance, sortByDistance, statistics, take, usingDefaultField, usingDefaultOperator, waitForNonStaleResults, waitForNonStaleResults, waitForNonStaleResultsAsOf, waitForNonStaleResultsAsOf, waitForNonStaleResultsAsOf, waitForNonStaleResultsAsOf, waitForNonStaleResultsAsOfLastWrite, waitForNonStaleResultsAsOfLastWrite, waitForNonStaleResultsAsOfNow, waitForNonStaleResultsAsOfNow, where, whereBetween, whereBetween, whereBetweenOrEqual, whereBetweenOrEqual, whereEndsWith, whereEndsWith, whereEquals, whereEquals, whereEquals, whereEquals, whereEquals, whereGreaterThan, whereGreaterThan, whereGreaterThanOrEqual, whereGreaterThanOrEqual, whereIn, whereIn, whereLessThan, whereLessThan, whereLessThanOrEqual, whereLessThanOrEqual, whereStartsWith, whereStartsWith, withinRadiusOf, withinRadiusOf, withinRadiusOf, withinRadiusOf
<TProjection> IDocumentQuery<TProjection> selectFields(Class<TProjection> projectionClass, String... fields)
projectionClass
- The class of the projectionfields
- Array of fields to load.<TProjection> IDocumentQuery<TProjection> selectFields(Class<TProjection> projectionClass, String[] fields, String[] projections)
projectionClass
- The class of the projectionfields
- Array of fields to load.projections
- Array of field projections.<TProjection> IDocumentQuery<TProjection> selectFields(Class<TProjection> projectionClass)
projectionClass
- The class of the projectionIDocumentQuery<T> setTransformerParameters(Map<String,RavenJToken> transformerParameter)
transformerParameter
- QueryResult getQueryResult()
Lazy<List<T>> lazily()
Lazy<Integer> countLazily()
Lazy<List<T>> lazily(Action1<List<T>> onEval)
onEval
- IndexQuery getIndexQuery()
IDocumentQuery<T> spatial(com.mysema.query.types.Path<?> path, SpatialCriteria criteria)
path
- Spatial field name.criteria
- Spatial criteria factoryIDocumentQuery<T> spatial(String name, SpatialCriteria criteria)
name
- Spatial field name.criteria
- Spatial criteria factory<TTransformer extends AbstractTransformerCreationTask,TTransformerResult> IDocumentQuery<TTransformerResult> setResultTransformer(Class<TTransformer> transformerClass, Class<TTransformerResult> resultClass)
boolean isDistinct()
FacetResults getFacets(String facetSetupDoc, int facetStart, Integer facetPageSize)
facetSetupDoc
- facetStart
- facetPageSize
- FacetResults getFacets(List<Facet> facets, int facetStart, Integer facetPageSize)
facets
- facetStart
- facetPageSize
- Lazy<FacetResults> toFacetsLazy(String facetSetupDoc)
facetSetupDoc
- Lazy<FacetResults> toFacetsLazy(String facetSetupDoc, int start)
facetSetupDoc
- start
- Lazy<FacetResults> toFacetsLazy(String facetSetupDoc, int start, Integer pageSize)
facetSetupDoc
- start
- pageSize
- Lazy<FacetResults> toFacetsLazy(List<Facet> facets)
facets
- Lazy<FacetResults> toFacetsLazy(List<Facet> facets, int start)
facets
- start
- Lazy<FacetResults> toFacetsLazy(List<Facet> facets, int start, Integer pageSize)
facets
- start
- pageSize
- FacetResults toFacets(String facetSetupDoc)
facetSetupDoc
- FacetResults toFacets(String facetSetupDoc, int start)
facetSetupDoc
- start
- FacetResults toFacets(String facetSetupDoc, int start, Integer pageSize)
facetSetupDoc
- start
- pageSize
- FacetResults toFacets(List<Facet> facets)
facets
- FacetResults toFacets(List<Facet> facets, int start)
facets
- start
- FacetResults toFacets(List<Facet> facets, int start, Integer pageSize)
facets
- start
- pageSize
- T first()
first
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
T firstOrDefault()
firstOrDefault
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
T single()
single
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
T singleOrDefault()
singleOrDefault
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
boolean any()
Copyright © 2016. All Rights Reserved.