|
def count(columnName: String): TypedColumn[Any,
Long]
Aggregate
function: returns the number of items in a group.
def count(e: Column): Column
Aggregate
function: returns the number of items in a group.
def countDistinct(columnName: String, columnNames:
String*): Column
Aggregate
function: returns the number of distinct items in a group.
def countDistinct(expr: Column, exprs: Column*):
Column
Aggregate
function: returns the number of distinct items in a group.
def approx_count_distinct(columnName: String, rsd:
Double): Column
Aggregate
function: returns the approximate number of distinct items in a group.
rsd
- maximum estimation error allowed (default = 0.05)
def approx_count_distinct(e: Column, rsd: Double):
Column
Aggregate
function: returns the approximate number of distinct items in a group.
rsd
- maximum estimation error allowed (default = 0.05)
def approx_count_distinct(columnName: String):
Column
Aggregate
function: returns the approximate number of distinct items in a group.
def approx_count_distinct(e: Column): Column
Aggregate
function: returns the approximate number of distinct items in a group.
def first(columnName: String): Column
Aggregate
function: returns the first value of a column in a group.
The
function by default returns the first values it sees. It will return the
first non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def first(e: Column): Column
Aggregate
function: returns the first value in a group.
The
function by default returns the first values it sees. It will return the
first non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def first(columnName: String, ignoreNulls:
Boolean): Column
Aggregate
function: returns the first value of a column in a group.
The
function by default returns the first values it sees. It will return the
first non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def first(e: Column, ignoreNulls: Boolean): Column
Aggregate
function: returns the first value in a group.
The
function by default returns the first values it sees. It will return the
first non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def last(columnName: String): Column
Aggregate
function: returns the last value of the column in a group.
The
function by default returns the last values it sees. It will return the
last non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def last(e: Column): Column
Aggregate
function: returns the last value in a group.
The
function by default returns the last values it sees. It will return the
last non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def last(columnName: String, ignoreNulls:
Boolean): Column
Aggregate
function: returns the last value of the column in a group.
The
function by default returns the last values it sees. It will return the
last non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def last(e: Column, ignoreNulls: Boolean): Column
Aggregate
function: returns the last value in a group.
The
function by default returns the last values it sees. It will return the
last non-null value it sees when ignoreNulls is set to true. If all values
are null, then null is returned.
def max(columnName: String): Column
Aggregate
function: returns the maximum value of the column in a group.
def max(e: Column): Column
Aggregate
function: returns the maximum value of the expression in a group.
def min(columnName: String): Column
Aggregate
function: returns the minimum value of the column in a group.
def min(e: Column): Column
Aggregate
function: returns the minimum value of the expression in a group.
def sum(columnName: String): Column
Aggregate
function: returns the sum of all values in the given column.
def sum(e: Column): Column
Aggregate
function: returns the sum of all values in the expression.
def sumDistinct(columnName: String): Column
Aggregate
function: returns the sum of distinct values in the expression.
def sumDistinct(e: Column): Column
Aggregate
function: returns the sum of distinct values in the expression.
def avg(columnName: String): Column
Aggregate
function: returns the average of the values in a group.
def avg(e: Column): Column
Aggregate
function: returns the average of the values in a group.
def mean(columnName: String): Column
Aggregate
function: returns the average of the values in a group. Alias for avg.
def mean(e: Column): Column
Aggregate
function: returns the average of the values in a group. Alias for avg.
|
No comments:
Post a Comment