public class LambdaEsQueryWrapper<T> extends AbstractLambdaQueryWrapper<T,LambdaEsQueryWrapper<T>> implements Query<LambdaEsQueryWrapper<T>,T,cn.easyes.common.params.SFunction<T,?>>
Copyright © 2021 xpc1024 All Rights Reserved
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
enableMust2Filter
must条件转filter
|
protected String[] |
exclude
不查字段
|
protected Integer |
from
从第多少条开始查询
|
protected String[] |
include
查询字段
|
protected Integer |
size
查询多少条记录
|
entity, entityClassaggregationParamList, baseEsParamList, distanceOrderByParam, distinctField, geoParam, matchAllQuery, orderByParams, sortBuilders, sortOrder, sortParamList, typedThis| 构造器和说明 |
|---|
LambdaEsQueryWrapper()
不建议直接 new 该实例,使用 Wrappers.lambdaQuery(entity)
|
LambdaEsQueryWrapper(Class<T> entityClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
LambdaEsQueryWrapper<T> |
enableMust2Filter(boolean condition,
boolean enable)
must 条件转filter 默认不转换
|
LambdaEsQueryWrapper<T> |
from(Integer from)
从第几条数据开始查询
|
protected org.elasticsearch.action.search.SearchRequest |
getSearchRequest()
获取查询条件 待优化
|
LambdaEsQueryWrapper<T> |
index(boolean condition,
String indexName)
设置当前查询的索引名称
|
protected LambdaEsQueryWrapper<T> |
instance()
子类返回一个自己的新对象
|
LambdaEsQueryWrapper<T> |
limit(Integer m)
兼容MySQL语法 作用同size
|
LambdaEsQueryWrapper<T> |
limit(Integer m,
Integer n)
兼容MySQL语法 作用同from+size
|
LambdaEsQueryWrapper<T> |
notSelect(String... columns)
设置不查询字段
|
LambdaEsQueryWrapper<T> |
select(Class<T> entityClass,
java.util.function.Predicate<EntityFieldInfo> predicate)
过滤查询的字段信息(主键除外!)
|
LambdaEsQueryWrapper<T> |
select(java.util.function.Predicate<EntityFieldInfo> predicate)
查询字段
|
LambdaEsQueryWrapper<T> |
select(String... columns)
设置查询字段
|
LambdaEsQueryWrapper<T> |
size(Integer size)
总共查询多少条数据
|
setEntity, setEntityClassallEq, allEq, and, avg, between, distinct, eq, ge, geoBoundingBox, geoDistance, geoDistance, geoPolygon, geoShape, geoShape, getCheckEntityClass, groupBy, gt, hasChild, hasParent, in, initEntityClass, initNeed, isNotNull, isNull, le, like, likeLeft, likeRight, lt, match, matchAllQuery, matchPhrase, matchPhrasePrefixQuery, max, min, multiMatchQuery, ne, nestedMatch, notBetween, notIn, notInGeoBoundingBox, notInGeoDistance, notInGeoDistance, notInGeoPolygon, notInGeoShape, notInGeoShape, notLike, notMatch, or, or, orderBy, orderBy, orderByDistanceAsc, orderByDistanceDesc, parentId, prefixQuery, queryStringQuery, sort, sortByScore, sum, termsAggregationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableMust2Filter, index, notSelect, notSelect, select, selectallEq, allEq, allEq, allEq, between, between, between, between, between, between, between, eq, eq, eq, eq, eq, eq, eq, ge, ge, ge, ge, ge, ge, ge, gt, gt, gt, gt, gt, gt, gt, hasChild, hasChild, hasChild, hasChild, hasChild, hasChild, hasChild, hasParent, hasParent, hasParent, hasParent, hasParent, hasParent, hasParent, le, le, le, le, le, le, le, like, like, like, like, like, like, like, likeLeft, likeLeft, likeLeft, likeLeft, likeLeft, likeRight, likeRight, likeRight, likeRight, likeRight, lt, lt, lt, lt, lt, lt, lt, match, match, match, match, match, match, match, matchAllQuery, matchPhrase, matchPhrase, matchPhrase, matchPhrase, matchPhrase, matchPhrase, matchPhrase, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, matchPhrasePrefixQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, multiMatchQuery, ne, ne, ne, ne, ne, ne, ne, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, nestedMatch, notBetween, notBetween, notBetween, notBetween, notBetween, notBetween, notBetween, notLike, notLike, notLike, notLike, notLike, notLike, notLike, notMatch, notMatch, notMatch, notMatch, notMatch, notMatch, notMatch, parentId, parentId, parentId, prefixQuery, prefixQuery, prefixQuery, prefixQuery, prefixQuery, prefixQuery, prefixQuery, queryStringQuery, queryStringQueryavg, avg, avg, avg, avg, avg, avg, avg, avg, distinct, distinct, distinct, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, in, in, in, in, in, in, in, in, in, isNotNull, isNotNull, isNotNull, isNotNull, isNotNull, isNull, isNull, isNull, isNull, isNull, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, orderBy, orderBy, orderBy, orderBy, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceAsc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, orderByDistanceDesc, sort, sort, sortByScore, sortByScore, sortByScore, sum, sum, sum, sum, sum, sum, sum, sum, sum, termsAggregation, termsAggregation, termsAggregation, termsAggregation, termsAggregation, termsAggregation, termsAggregation, termsAggregation, termsAggregationgeoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoDistance, geoPolygon, geoPolygon, geoPolygon, geoPolygon, geoPolygon, geoPolygon, geoPolygon, geoPolygonStr, geoPolygonStr, geoPolygonStr, geoPolygonStr, geoPolygonStr, geoPolygonStr, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, geoShape, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoBoundingBox, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoDistance, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoPolygon, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShape, notInGeoShapeprotected String[] include
protected String[] exclude
protected Integer from
protected Integer size
protected Boolean enableMust2Filter
public LambdaEsQueryWrapper()
protected LambdaEsQueryWrapper<T> instance()
AbstractWrapperinstance 在类中 AbstractWrapper<T,cn.easyes.common.params.SFunction<T,?>,LambdaEsQueryWrapper<T>>public LambdaEsQueryWrapper<T> select(String... columns)
Querypublic LambdaEsQueryWrapper<T> select(java.util.function.Predicate<EntityFieldInfo> predicate)
Querypublic LambdaEsQueryWrapper<T> select(Class<T> entityClass, java.util.function.Predicate<EntityFieldInfo> predicate)
Querypublic LambdaEsQueryWrapper<T> notSelect(String... columns)
Querypublic LambdaEsQueryWrapper<T> from(Integer from)
Querypublic LambdaEsQueryWrapper<T> size(Integer size)
Querypublic LambdaEsQueryWrapper<T> limit(Integer m)
Querypublic LambdaEsQueryWrapper<T> limit(Integer m, Integer n)
Querypublic LambdaEsQueryWrapper<T> index(boolean condition, String indexName)
Querypublic LambdaEsQueryWrapper<T> enableMust2Filter(boolean condition, boolean enable)
QueryenableMust2Filter 在接口中 Query<LambdaEsQueryWrapper<T>,T,cn.easyes.common.params.SFunction<T,?>>condition - 条件enable - 是否开启 true开启 false 不开启 默认不开转换protected org.elasticsearch.action.search.SearchRequest getSearchRequest()
WrappergetSearchRequest 在类中 Wrapper<T>Copyright © 2022. All rights reserved.