public class SelectQuery extends RestrictionExtractor implements AggregateExtractorMin
| Constructor and Description |
|---|
SelectQuery()
Creates a new Instance of a SelectQuery
|
| Modifier and Type | Method and Description |
|---|---|
SelectQuery |
addRestrictions(Restriction... restrictions)
To add reestrictions
|
SelectQuery |
andAddRestrictions(Restriction... restrictions)
To add restrictions, with a separation of 'AND' between previous and this restriction
|
SelectQuery |
arrayContains(String propertyName,
Object value)
Array contains t.
|
SelectQuery |
avg(String propertyName)
Avg t.
|
SelectQuery |
avg(String propertyName,
String alias)
Avg t.
|
SelectQuery |
avg(String propertyName,
String alias,
String udf)
Avg t.
|
SelectQuery |
columns(Columns columns)
To add columns
|
SelectQuery |
count()
To specify if only the count of rows is required
|
SelectQuery |
count(String propertyName)
Count t.
|
SelectQuery |
count(String propertyName,
String alias)
Count t.
|
String |
createQuery()
To build the query
|
SelectQuery |
eq(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with =
|
SelectQuery |
eq(String propertyName,
GeoSpatialObject geoSpatialObject,
Double value)
To introduce a ST_DISTANCE restriction in the query with a =
|
SelectQuery |
eq(String propertyName,
Object value)
To introduce a = restriction in the query
|
List<AggregateFunction> |
getAggregateFunctions()
Gets aggregate functions.
|
Columns |
getColumns()
Gets columns.
|
Integer |
getLimit()
Gets limit.
|
Order |
getOrder()
Gets order.
|
List<GroupedRestriction> |
getRestrictions()
Gets restrictions.
|
SelectQuery |
gt(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with >
|
SelectQuery |
gt(String propertyName,
GeoSpatialObject geoSpatialObject,
Double value)
To introduce a ST_DISTANCE restriction in the query with a >
|
SelectQuery |
gt(String propertyName,
Object value)
To introduce a > restriction in the query
|
SelectQuery |
gte(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with >=
|
SelectQuery |
gte(String propertyName,
GeoSpatialObject geoSpatialObject,
Double value)
To introduce a ST_DISTANCE restriction in the query with a >=
|
SelectQuery |
gte(String propertyName,
Object value)
To introduce a >= restriction in the query
|
SelectQuery |
id(String id)
To create query with id restriction
|
SelectQuery |
in(String propertyName,
List<Object> values)
To introduce an in restriction in the query
|
SelectQuery |
in(String propertyName,
Object... values)
To introduce an in restriction in the query
|
boolean |
isCount()
Is count boolean.
|
SelectQuery |
isDefined(String propertyName)
Is defined t.
|
SelectQuery |
isNotDefined(String propertyName)
Is not defined t.
|
SelectQuery |
limitResults(int limit)
To add limit
|
SelectQuery |
lt(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with <
|
SelectQuery |
lt(String propertyName,
GeoSpatialObject geoSpatialObject,
Double value)
To introduce a ST_DISTANCE restriction in the query with a <
|
SelectQuery |
lt(String propertyName,
Object value)
To introduce a < restriction in the query
|
SelectQuery |
lte(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with <=
|
SelectQuery |
lte(String propertyName,
GeoSpatialObject geoSpatialObject,
Double value)
To introduce a ST_DISTANCE restriction in the query with a <=
|
SelectQuery |
lte(String propertyName,
Object value)
To introduce a <= restriction in the query
|
SelectQuery |
max(String propertyName)
Max t.
|
SelectQuery |
max(String propertyName,
String alias)
Max t.
|
SelectQuery |
max(String propertyName,
String alias,
String udf)
Max t.
|
SelectQuery |
min(String propertyName)
Min t.
|
SelectQuery |
min(String propertyName,
String alias)
Min t.
|
SelectQuery |
min(String propertyName,
String alias,
String udf)
Min t.
|
SelectQuery |
notEq(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with !=
|
SelectQuery |
notEq(String propertyName,
GeoSpatialObject geoSpatialObject,
Double value)
To introduce a ST_DISTANCE restriction in the query with a !=
|
SelectQuery |
notEq(String propertyName,
Object value)
To introduce a = restriction in the query
|
SelectQuery |
or()
to separate the previous and next restrictions by an 'OR'
|
SelectQuery |
orAddRestrictions(Restriction... restrictions)
To add restrictions, with a separation of 'OR' between previous and this restriction
|
SelectQuery |
orderBy(String parameterName,
Constants.Order order)
Ordering the query by parameter
|
SelectQuery |
orderByTS(Constants.Order order)
Ordering the query by _ts
|
SelectQuery |
sum(String propertyName)
Sum t.
|
SelectQuery |
sum(String propertyName,
String alias)
Sum t.
|
SelectQuery |
sum(String propertyName,
String alias,
String udf)
Sum t.
|
SelectQuery |
within(String propertyName,
GeoSpatialObject geoSpatialObject)
To introduce a ST_WITHIN restriction in the query
|
public boolean isCount()
public Integer getLimit()
public Columns getColumns()
public List<GroupedRestriction> getRestrictions()
public Order getOrder()
public List<AggregateFunction> getAggregateFunctions()
public String createQuery()
public SelectQuery columns(Columns columns)
columns - Objectpublic SelectQuery limitResults(int limit)
limit - total number of results to be fetchedpublic SelectQuery addRestrictions(Restriction... restrictions)
restrictions - Multiple restrictions to be passed separated by comma ","public SelectQuery or()
public SelectQuery orAddRestrictions(Restriction... restrictions)
restrictions - Multiple restrictions to be passed separated by comma ","public SelectQuery andAddRestrictions(Restriction... restrictions)
restrictions - Multiple restrictions to be passed separated by comma ","public SelectQuery orderByTS(Constants.Order order)
order - Enum DESC or ASCpublic SelectQuery orderBy(String parameterName, Constants.Order order)
parameterName - parameter by which the query is to be orderedorder - Enum DESC or ASCpublic SelectQuery count()
public SelectQuery id(String id)
id in class RestrictionExtractorid - id of the document to be fetchedpublic SelectQuery in(String propertyName, Object... values)
in in interface INRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalues - values separated by comma ','public SelectQuery in(String propertyName, List<Object> values)
propertyName - property on which the restriction needs to be appliedvalues - list of valuespublic SelectQuery eq(String propertyName, Object value)
eq in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic SelectQuery notEq(String propertyName, Object value)
notEq in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic SelectQuery lt(String propertyName, Object value)
lt in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic SelectQuery lte(String propertyName, Object value)
lte in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic SelectQuery gt(String propertyName, Object value)
gt in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic SelectQuery gte(String propertyName, Object value)
gte in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic SelectQuery eq(Double value, String expression, Object... parameters)
eq in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic SelectQuery notEq(Double value, String expression, Object... parameters)
notEq in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic SelectQuery lt(Double value, String expression, Object... parameters)
lt in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic SelectQuery lte(Double value, String expression, Object... parameters)
lte in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic SelectQuery gt(Double value, String expression, Object... parameters)
gt in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic SelectQuery gte(Double value, String expression, Object... parameters)
gte in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic SelectQuery eq(String propertyName, GeoSpatialObject geoSpatialObject, Double value)
eq in interface GeoSpatialRestrictionExtractorpropertyName - property on which the restriction needs to be appliedgeoSpatialObject - GeoSpatialObjectvalue - distance value which should be comparedpublic SelectQuery notEq(String propertyName, GeoSpatialObject geoSpatialObject, Double value)
notEq in interface GeoSpatialRestrictionExtractorpropertyName - property on which the restriction needs to be appliedgeoSpatialObject - GeoSpatialObjectvalue - distance value which should be comparedpublic SelectQuery lt(String propertyName, GeoSpatialObject geoSpatialObject, Double value)
lt in interface GeoSpatialRestrictionExtractorpropertyName - property on which the restriction needs to be appliedgeoSpatialObject - GeoSpatialObjectvalue - distance value which should be comparedpublic SelectQuery lte(String propertyName, GeoSpatialObject geoSpatialObject, Double value)
lte in interface GeoSpatialRestrictionExtractorpropertyName - property on which the restriction needs to be appliedgeoSpatialObject - GeoSpatialObjectvalue - distance value which should be comparedpublic SelectQuery gt(String propertyName, GeoSpatialObject geoSpatialObject, Double value)
gt in interface GeoSpatialRestrictionExtractorpropertyName - property on which the restriction needs to be appliedgeoSpatialObject - GeoSpatialObjectvalue - distance value which should be comparedpublic SelectQuery gte(String propertyName, GeoSpatialObject geoSpatialObject, Double value)
gte in interface GeoSpatialRestrictionExtractorpropertyName - property on which the restriction needs to be appliedgeoSpatialObject - GeoSpatialObjectvalue - distance value which should be comparedpublic SelectQuery within(String propertyName, GeoSpatialObject geoSpatialObject)
within in interface GeoSpatialRestrictionExtractorpropertyName - property on which the restriction needs to be appliedgeoSpatialObject - GeoSpatialObjectpublic SelectQuery count(String propertyName)
AggregateExtractorMincount in interface AggregateExtractorMinpropertyName - the property namepublic SelectQuery count(String propertyName, String alias)
AggregateExtractorcount in interface AggregateExtractorcount in interface AggregateExtractorMinpropertyName - the property namealias - the aliaspublic SelectQuery min(String propertyName)
AggregateExtractorMinmin in interface AggregateExtractorMinpropertyName - the property namepublic SelectQuery min(String propertyName, String alias)
AggregateExtractorMinmin in interface AggregateExtractorMinpropertyName - the property namealias - the aliaspublic SelectQuery min(String propertyName, String alias, String udf)
AggregateExtractormin in interface AggregateExtractorpropertyName - the property namealias - the aliasudf - the udfpublic SelectQuery max(String propertyName)
AggregateExtractorMinmax in interface AggregateExtractorMinpropertyName - the property namepublic SelectQuery max(String propertyName, String alias)
AggregateExtractorMinmax in interface AggregateExtractorMinpropertyName - the property namealias - the aliaspublic SelectQuery max(String propertyName, String alias, String udf)
AggregateExtractormax in interface AggregateExtractorpropertyName - the property namealias - the aliasudf - the udfpublic SelectQuery sum(String propertyName)
AggregateExtractorMinsum in interface AggregateExtractorMinpropertyName - the property namepublic SelectQuery sum(String propertyName, String alias)
AggregateExtractorMinsum in interface AggregateExtractorMinpropertyName - the property namealias - the aliaspublic SelectQuery sum(String propertyName, String alias, String udf)
AggregateExtractorsum in interface AggregateExtractorpropertyName - the property namealias - the aliasudf - the udfpublic SelectQuery avg(String propertyName)
AggregateExtractorMinavg in interface AggregateExtractorMinpropertyName - the property namepublic SelectQuery avg(String propertyName, String alias)
AggregateExtractorMinavg in interface AggregateExtractorMinpropertyName - the property namealias - the aliaspublic SelectQuery avg(String propertyName, String alias, String udf)
AggregateExtractoravg in interface AggregateExtractorpropertyName - the property namealias - the aliasudf - the udfpublic SelectQuery arrayContains(String propertyName, Object value)
ArrayFunctionsExtractorarrayContains in interface ArrayFunctionsExtractorpropertyName - the property namevalue - the valuepublic SelectQuery isDefined(String propertyName)
TypeCheckRestrictionExtractorisDefined in interface TypeCheckRestrictionExtractorpropertyName - the property namepublic SelectQuery isNotDefined(String propertyName)
TypeCheckRestrictionExtractorisNotDefined in interface TypeCheckRestrictionExtractorpropertyName - the property nameCopyright © 2020. All rights reserved.