| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final BigDecimal | HALF
BigDecimal value of 0.5. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Index | Returns: the index, or nullthe database database, Expression the expression (usually a column expression) on)Get the index (if any) for the column specified in the inverse distribution function. |
| pack-priv static Value | Returns: the resultthe session session, Expression the expression expression, int the data type dataType, ArrayList<QueryOrderBy> ORDER BY list orderByList, BigDecimal argument of percentile function, or 0.5d for median percentile, boolean whether value should be interpolated interpolate)Get the result from the index. |
| pack-priv static Value | Returns: the resultthe session session, Value[] array with values array, int the data type dataType, ArrayList<QueryOrderBy> ORDER BY list orderByList, BigDecimal argument of percentile function, or 0.5d for median percentile, boolean whether value should be interpolated interpolate)Get the result from the array of values. |
| private static Value | interpolate(Value v0, Value v1, BigDecimal factor, int dataType, SessionLocal session, CompareMode compareMode)
|
| private static BigDecimal | |
| private static boolean | |
| private static BigDecimal |
| HALF | back to summary |
|---|---|
| pack-priv static final BigDecimal HALF BigDecimal value of 0.5. | |
| Percentile | back to summary |
|---|---|
| private Percentile() | |
| getColumnIndex | back to summary |
|---|---|
| pack-priv static Index getColumnIndex(Database database, Expression on) Get the index (if any) for the column specified in the inverse distribution function.
| |
| getFromIndex | back to summary |
|---|---|
| pack-priv static Value getFromIndex(SessionLocal session, Expression expression, int dataType, ArrayList<QueryOrderBy> orderByList, BigDecimal percentile, boolean interpolate) Get the result from the index.
| |
| getValue | back to summary |
|---|---|
| pack-priv static Value getValue(SessionLocal session, Value[] array, int dataType, ArrayList<QueryOrderBy> orderByList, BigDecimal percentile, boolean interpolate) Get the result from the array of values.
| |
| interpolate | back to summary |
|---|---|
| private static Value interpolate(Value v0, Value v1, BigDecimal factor, int dataType, SessionLocal session, CompareMode compareMode) | |
| interpolateDecimal | back to summary |
|---|---|
| private static BigDecimal interpolateDecimal(BigDecimal d0, BigDecimal d1, BigDecimal factor) | |
| isNullsLast | back to summary |
|---|---|
| private static boolean isNullsLast(DefaultNullOrdering defaultNullOrdering, Index index) | |
| timestampToDecimal | back to summary |
|---|---|
| private static BigDecimal timestampToDecimal(long dateValue, long timeNanos) | |