T
- public interface IDocumentQuery<T> extends IDocumentQueryBase<T,IDocumentQuery<T>>, java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
boolean |
any()
Returns if any entry matches query
|
Lazy<java.lang.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(java.util.List<Facet> facets,
int facetStart,
java.lang.Integer facetPageSize)
Get the facets as per the specified facets with the given start and pageSize
|
FacetResults |
getFacets(java.lang.String facetSetupDoc,
int facetStart,
java.lang.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
Execute the query the first time that this is called.
|
boolean |
isDistinct() |
Lazy<java.util.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<java.util.List<T>> |
lazily(Action1<java.util.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(java.lang.Class<TProjection> projectionClass)
Selects the projection fields directly from the index
|
<TProjection> |
selectFields(java.lang.Class<TProjection> projectionClass,
java.lang.String... fields)
Selects the specified fields directly from the index
|
<TProjection> |
selectFields(java.lang.Class<TProjection> projectionClass,
java.lang.String[] fields,
java.lang.String[] projections)
Selects the specified fields directly from the index
|
void |
setTransformerParameters(java.util.Map<java.lang.String,RavenJToken> transformerParameter)
Sets user defined inputs to the query
|
T |
single()
Returns single result
|
T |
singleOrDefault()
Returns single result
|
IDocumentQuery<T> |
spatial(com.mysema.query.types.Path<?> path,
SpatialCriteria criteria) |
IDocumentQuery<T> |
spatial(java.lang.String name,
SpatialCriteria criteria) |
FacetResults |
toFacets(java.util.List<Facet> facets)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
FacetResults |
toFacets(java.util.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(java.util.List<Facet> facets,
int start,
java.lang.Integer pageSize)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
FacetResults |
toFacets(java.lang.String facetSetupDoc)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
FacetResults |
toFacets(java.lang.String facetSetupDoc,
int start)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
FacetResults |
toFacets(java.lang.String facetSetupDoc,
int start,
java.lang.Integer pageSize)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(java.util.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(java.util.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(java.util.List<Facet> facets,
int start,
java.lang.Integer pageSize)
Query the facets results for this query using the specified list of facets with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(java.lang.String facetSetupDoc)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
Lazy<FacetResults> |
toFacetsLazy(java.lang.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(java.lang.String facetSetupDoc,
int start,
java.lang.Integer pageSize)
Query the facets results for this query using the specified facet document with the given start and pageSize
|
java.util.List<T> |
toList()
Materialize query, executes request and returns with results
|
addOrder, addOrder, addOrder, afterQueryExecuted, andAlso, beforeQueryExecution, boost, closeSubclause, containsAll, containsAll, containsAny, containsAny, distinct, explainScores, fuzzy, getDocumentConvention, highlight, highlight, highlight, highlight, include, include, intersect, invokeAfterQueryExecuted, 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, 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(java.lang.Class<TProjection> projectionClass, java.lang.String... fields)
projectionClass
- The class of the projectionfields
- The fields.<TProjection> IDocumentQuery<TProjection> selectFields(java.lang.Class<TProjection> projectionClass, java.lang.String[] fields, java.lang.String[] projections)
projectionClass
- The class of the projectionfields
- projections
- <TProjection> IDocumentQuery<TProjection> selectFields(java.lang.Class<TProjection> projectionClass)
projectionClass
- The class of the projectionvoid setTransformerParameters(java.util.Map<java.lang.String,RavenJToken> transformerParameter)
transformerParameter
- QueryResult getQueryResult()
Lazy<java.util.List<T>> lazily()
Lazy<java.lang.Integer> countLazily()
Lazy<java.util.List<T>> lazily(Action1<java.util.List<T>> onEval)
onEval
- IndexQuery getIndexQuery()
IDocumentQuery<T> spatial(com.mysema.query.types.Path<?> path, SpatialCriteria criteria)
IDocumentQuery<T> spatial(java.lang.String name, SpatialCriteria criteria)
boolean isDistinct()
FacetResults getFacets(java.lang.String facetSetupDoc, int facetStart, java.lang.Integer facetPageSize)
facetSetupDoc
- facetStart
- facetPageSize
- FacetResults getFacets(java.util.List<Facet> facets, int facetStart, java.lang.Integer facetPageSize)
facets
- facetStart
- facetPageSize
- Lazy<FacetResults> toFacetsLazy(java.lang.String facetSetupDoc)
facetSetupDoc
- Lazy<FacetResults> toFacetsLazy(java.lang.String facetSetupDoc, int start)
facetSetupDoc
- start
- Lazy<FacetResults> toFacetsLazy(java.lang.String facetSetupDoc, int start, java.lang.Integer pageSize)
facetSetupDoc
- start
- pageSize
- Lazy<FacetResults> toFacetsLazy(java.util.List<Facet> facets)
facets
- Lazy<FacetResults> toFacetsLazy(java.util.List<Facet> facets, int start)
facets
- start
- Lazy<FacetResults> toFacetsLazy(java.util.List<Facet> facets, int start, java.lang.Integer pageSize)
facets
- start
- pageSize
- FacetResults toFacets(java.lang.String facetSetupDoc)
facetSetupDoc
- FacetResults toFacets(java.lang.String facetSetupDoc, int start)
facetSetupDoc
- start
- FacetResults toFacets(java.lang.String facetSetupDoc, int start, java.lang.Integer pageSize)
facetSetupDoc
- start
- pageSize
- FacetResults toFacets(java.util.List<Facet> facets)
facets
- FacetResults toFacets(java.util.List<Facet> facets, int start)
facets
- start
- FacetResults toFacets(java.util.List<Facet> facets, int start, java.lang.Integer pageSize)
facets
- start
- pageSize
- T first()
first
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
T firstOrDefault()
firstOrDefault
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
java.util.List<T> toList()
T single()
single
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
T singleOrDefault()
singleOrDefault
in interface IDocumentQueryBase<T,IDocumentQuery<T>>
boolean any()
Copyright © 2014. All Rights Reserved.