Class NumberExpression.StandardDeviationExpression
- java.lang.Object
-
- nz.co.gregs.dbvolution.expressions.AnyExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.EqualExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.InExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.RangeExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.SimpleNumericExpression<Number,NumberResult,DBNumber>
-
- nz.co.gregs.dbvolution.expressions.NumberExpression
-
- nz.co.gregs.dbvolution.expressions.NumberExpression.StandardDeviationExpression
-
- All Implemented Interfaces:
Serializable
,DBExpression
,ExpressionColumn<DBNumber>
,HasSQLString
,CanBeWindowingFunctionWithFrame<NumberExpression>
,AnyComparable<Number,NumberResult>
,AnyResult<Number>
,EqualComparable<Number,NumberResult>
,EqualResult<Number>
,ExpressionCanHaveNullValues
,ExpressionHasStandardStringResult
,InComparable<Number,NumberResult>
,InResult<Number>
,NullCapableResult<Number>
,NumberResult
,RangeComparable<Number,NumberResult>
,RangeResult<Number>
,SimpleNumericResult<Number>
- Enclosing class:
- NumberExpression
public class NumberExpression.StandardDeviationExpression extends NumberExpression implements CanBeWindowingFunctionWithFrame<NumberExpression>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.AnyExpression
AnyExpression.CountAllExpression, AnyExpression.CountDistinctExpression, AnyExpression.CountExpression, AnyExpression.NTileExpression, AnyExpression.PercentageExpression, AnyExpression.RankExpression
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.EqualExpression
EqualExpression.ModeSimpleExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>, EqualExpression.ModeStrictExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.NumberExpression
NumberExpression.AbsoluteValueExpression, NumberExpression.AverageExpression, NumberExpression.ChooseFromStringsExpression, NumberExpression.CosineExpression, NumberExpression.CotangentExpression, NumberExpression.DegreesExpression, NumberExpression.DivideByExpression, NumberExpression.ExponentialExpression, NumberExpression.FirstValueExpression, NumberExpression.GreatestOfExpression, NumberExpression.HyperbolicCosineExpression, NumberExpression.HyperbolicSineExpression, NumberExpression.HyperbolicTangentExpression, NumberExpression.IfDBNullExpression, NumberExpression.IntegerResultExpression, NumberExpression.InverseCosineExpression, NumberExpression.InverseSineExpression, NumberExpression.InverseTangent2Expression, NumberExpression.InverseTangentExpression, NumberExpression.IsLessThanExpression, NumberExpression.LagExpression, NumberExpression.LastValueExpression, NumberExpression.LeadExpression, NumberExpression.LogBase10Expression, NumberExpression.MaxUnaryFunction, NumberExpression.MinUnaryFunction, NumberExpression.ModulusRemainderExpression, NumberExpression.NaturalLogExpression, NumberExpression.NthValueExpression, NumberExpression.PlusExpression, NumberExpression.PowerExpression, NumberExpression.RadiansExpression, NumberExpression.RandomNumberExpression, NumberExpression.RoundDownExpression, NumberExpression.RoundExpression, NumberExpression.RoundToNumberofDecimalPlaces, NumberExpression.RoundUpExpression, NumberExpression.SignExpression, NumberExpression.SineExpression, NumberExpression.SquareRootExpression, NumberExpression.StandardDeviationExpression, NumberExpression.SumExpression, NumberExpression.TangentExpression, NumberExpression.TimesExpression, NumberExpression.TruncateExpression
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.RangeExpression
RangeExpression.MedianExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>, RangeExpression.UniqueRankingExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>
-
-
Field Summary
-
Fields inherited from class nz.co.gregs.dbvolution.expressions.NumberExpression
APERYS_CONSTANT, E, EULERS_CONSTANT, GAMMA, GOLDEN_RATIO, ONE, PI, ROOT2, TEN, TWO, ZERO, ZETA3
-
-
Constructor Summary
Constructors Constructor Description StandardDeviationExpression(NumberExpression only)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberExpression.StandardDeviationExpression
copy()
A Complete Copy Of This DBValue.boolean
isAggregator()
Returns TRUE if this expression is an Aggregator like SUM() or LEAST().WindowFunctionFramable<NumberExpression>
over()
Over creates a window function.String
toSQLString(DBDefinition db)
Produces the snippet provided by this class.-
Methods inherited from class nz.co.gregs.dbvolution.expressions.AnyExpression
ascending, asResult, count, countAll, countDistinctValues, countNotNull, createSQLForFromClause, createSQLForGroupByClause, denseRank, descending, getInnerResult, highestFirst, highestLast, isComplexExpression, isNullSafetyTerminator, isWindowingFunction, lowestFirst, lowestLast, nTile, nTile, nTile, nullBoolean, nullDate, nullDateRepeat, nullDuration, nullInstant, nullInteger, nullLine2D, nullLineSegment2D, nullLocalDate, nullLocalDateTime, nullMultiPoint2D, nullNumber, nullPoint2D, nullPolygon2D, nullString, percentageRank, rank, rowNumber, runningCount, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.windows.CanBeWindowingFunctionWithFrame
window
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.DBExpression
createSQLForFromClause, createSQLForGroupByClause, isComplexExpression, isWindowingFunction
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.EqualExpression
countIf, is, isNot
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.ExpressionColumn
toExpressionColumn
-
Methods inherited from interface nz.co.gregs.dbvolution.results.InComparable
isIn
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.InExpression
isIn, isIn, isIn, isNotIn, isNotIn, isNotIn
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.NumberExpression
abs, absoluteValue, append, append, arccos, arcsin, arctan, arctan2, arctan2, arctan2, asExpressionColumn, average, bracket, choose, choose, chooseWithDefault, chooseWithDefault, cos, cosh, cotangent, cubed, decimalPart, degrees, dividedBy, dividedBy, dividedBy, exp, expression, expression, expression, expression, firstValue, floor, greatestOf, greatestOf, greatestOf, greatestOf, ifDBNull, ifDBNull, ifDBNull, ifThenElse, integerPart, integerResult, is, is, is, isBetween, isBetween, isBetween, isBetween, isBetween, isBetween, isBetween, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isEven, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThanOrEqual, isGreaterThanOrEqual, isGreaterThanOrEqual, isIn, isIn, isIn, isIn, isInCollection, isLessThan, isLessThan, isLessThan, isLessThan, isLessThan, isLessThan, isLessThanOrEqual, isLessThanOrEqual, isLessThanOrEqual, isNot, isNot, isNot, isNotInCollection, isNotNull, isNull, isOdd, isShorterThanOrAsLongAs, isShorterThanOrAsLongAs, isShorterThanOrAsLongAs, lag, lag, lag, lastValue, lead, lead, lead, leastOf, leastOf, leastOf, leastOf, lengthOfDecimalPart, logBase10, logN, max, min, minus, minus, minus, mod, mod, mod, modeSimple, modeStrict, nextRowValue, nthValue, nullExpression, numberOfDigits, numberResult, plus, plus, plus, power, power, previousRowValue, radians, random, round, round, round, round, round, round, roundDown, roundUp, runningTotal, sign, signPlusMinus, sine, sinh, squared, squareRoot, standardDeviation, stddev, stringResult, sum, tan, tanh, times, times, times, trunc
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.RangeExpression
isBetween, isBetween, isBetween, isBetween, isBetween, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isGreaterThan, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThan, isLessThanOrEqual
-
-
-
-
Constructor Detail
-
StandardDeviationExpression
public StandardDeviationExpression(NumberExpression only)
-
-
Method Detail
-
toSQLString
public String toSQLString(DBDefinition db)
Description copied from interface:HasSQLString
Produces the snippet provided by this class.This is only used internally.
If you are extending DBvolution and adding a new function this is the place to format the information for use in SQL. A DBDefinition instance is provided to supply context and so your SQL can used on multiple database engines.
- Specified by:
toSQLString
in interfaceHasSQLString
- Parameters:
db
- the target databaseSupport DBvolution at Patreon
- Returns:
- the DBValue formatted as a SQL snippet
-
isAggregator
public boolean isAggregator()
Description copied from interface:DBExpression
Returns TRUE if this expression is an Aggregator like SUM() or LEAST().Subclasses must implement this method returning TRUE if the expression will combine the results of several rows to produce a result. If the expression relies on subexpressions, then the isAggregator method must return TRUE if the subexpressions include an aggregator.
Aggregators collect several rows together to produce a single result. Examples are MAX, MIN, and AVERAGE.
They are only appropriate in the SELECT clause and generally require the GROUP BY clause to be useful.
Aggregators are used with
DBReport
. Aggregator expressions are included in the SELECT clause but excluded from the GROUP BY clause.Support DBvolution at Patreon
- Specified by:
isAggregator
in interfaceDBExpression
- Returns:
- TRUE if this DBExpression represents an aggregating functions
-
copy
public NumberExpression.StandardDeviationExpression copy()
Description copied from interface:DBExpression
A Complete Copy Of This DBValue.Immutability in DBvolution is maintain by internally copying objects.
This method enables immutability by performing a deep copy of the object.
Singletons may return themselves but all other objects must return a new instance with copies of all mutable fields.
Support DBvolution at Patreon
- Specified by:
copy
in interfaceDBExpression
- Specified by:
copy
in interfaceNumberResult
- Overrides:
copy
in classNumberExpression
- Returns:
- a copy of this
DBValue
-
over
public WindowFunctionFramable<NumberExpression> over()
Description copied from interface:CanBeWindowingFunctionWithFrame
Over creates a window function.Window functions allow access to data in the records right before and after the current record. A window function defines a frame or window of rows with a given length around the current row, and performs a calculation across the set of data in the window. Wikipedia has more information at https://en.wikipedia.org/wiki/SQL_window_function
- Specified by:
over
in interfaceCanBeWindowingFunctionWithFrame<NumberExpression>
- Returns:
- a windowing function start point
-
-