Package org.intermine.objectstore.query
Class WidthBucketFunction
- java.lang.Object
-
- org.intermine.objectstore.query.QueryFunction
-
- org.intermine.objectstore.query.WidthBucketFunction
-
- All Implemented Interfaces:
QueryEvaluable
,QueryNode
,QueryOrderable
,QuerySelectable
public class WidthBucketFunction extends QueryFunction
Representation of a call to the Postgresql WIDTH_BUCKET function.- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description WidthBucketFunction(QueryEvaluable qe, QueryEvaluable minQE, QueryEvaluable maxQE, QueryEvaluable bins)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryEvaluable
getBinsParam()
QueryEvaluable
getMaxParam()
QueryEvaluable
getMinParam()
java.lang.Class<?>
getType()
Get Java type represented by this item.-
Methods inherited from class org.intermine.objectstore.query.QueryFunction
getApproximateType, getOperation, getParam, getParam2, youAreType
-
-
-
-
Constructor Detail
-
WidthBucketFunction
public WidthBucketFunction(QueryEvaluable qe, QueryEvaluable minQE, QueryEvaluable maxQE, QueryEvaluable bins)
Constructor.- Parameters:
qe
- The expression to bin.minQE
- The lower bound.maxQE
- The upper bound.bins
- The number of bins to separate the range into.
-
-
Method Detail
-
getType
public java.lang.Class<?> getType()
Get Java type represented by this item.- Specified by:
getType
in interfaceQueryOrderable
- Specified by:
getType
in interfaceQuerySelectable
- Overrides:
getType
in classQueryFunction
- Returns:
- class describing the type
-
getMaxParam
public QueryEvaluable getMaxParam()
- Returns:
- The parameter defining the upper bound.
-
getMinParam
public QueryEvaluable getMinParam()
- Returns:
- The parameter defining the lower bound.
-
getBinsParam
public QueryEvaluable getBinsParam()
- Returns:
- The parameter defining the number of bins.
-
-