| Modifier and Type | Method and Description |
|---|---|
Scalar |
ColumnVector.all()
Returns a boolean scalar that is true if all of the elements in
the column are true or non-zero otherwise false.
|
Scalar |
ColumnVector.all(DType outType)
Returns a scalar is true or 1, depending on the specified type,
if all of the elements in the column are true or non-zero
otherwise false or 0.
|
Scalar |
ColumnVector.any()
Returns a boolean scalar that is true if any of the elements in
the column are true or non-zero otherwise false.
|
Scalar |
ColumnVector.any(DType outType)
Returns a scalar is true or 1, depending on the specified type,
if any of the elements in the column are true or non-zero
otherwise false or 0.
|
static Scalar |
Scalar.fromBool(boolean value) |
static Scalar |
Scalar.fromBool(Boolean value) |
static Scalar |
Scalar.fromByte(byte value) |
static Scalar |
Scalar.fromByte(Byte value) |
static Scalar |
Scalar.fromDouble(double value) |
static Scalar |
Scalar.fromDouble(Double value) |
static Scalar |
Scalar.fromFloat(float value) |
static Scalar |
Scalar.fromFloat(Float value) |
static Scalar |
Scalar.fromInt(int value) |
static Scalar |
Scalar.fromInt(Integer value) |
static Scalar |
Scalar.fromLong(long value) |
static Scalar |
Scalar.fromLong(Long value) |
static Scalar |
Scalar.fromNull(DType type) |
static Scalar |
Scalar.fromShort(short value) |
static Scalar |
Scalar.fromShort(Short value) |
static Scalar |
Scalar.fromString(String value) |
Scalar |
Scalar.incRefCount()
Increment the reference count for this scalar.
|
Scalar |
ColumnVector.max()
Returns the maximum of all values in the column, returning a scalar
of the same type as this column.
|
Scalar |
ColumnVector.max(DType outType)
Returns the maximum of all values in the column, returning a scalar
of the specified type.
|
Scalar |
ColumnVector.mean()
Returns the arithmetic mean of all values in the column, returning a
FLOAT64 scalar unless the column type is FLOAT32 then a FLOAT32 scalar is returned.
|
Scalar |
ColumnVector.mean(DType outType)
Returns the arithmetic mean of all values in the column, returning a
scalar of the specified type.
|
Scalar |
ColumnVector.min()
Returns the minimum of all values in the column, returning a scalar
of the same type as this column.
|
Scalar |
ColumnVector.min(DType outType)
Returns the minimum of all values in the column, returning a scalar
of the specified type.
|
Scalar |
ColumnVector.product()
Returns the product of all values in the column, returning a scalar
of the same type as this column.
|
Scalar |
ColumnVector.product(DType outType)
Returns the product of all values in the column, returning a scalar
of the specified type.
|
Scalar |
ColumnVector.reduce(ai.rapids.cudf.AggregateOp op)
Computes the reduction of the values in all rows of a column.
|
Scalar |
ColumnVector.reduce(ai.rapids.cudf.AggregateOp op,
DType outType)
Computes the reduction of the values in all rows of a column.
|
Scalar |
ColumnVector.standardDeviation()
Returns the sample standard deviation of all values in the column,
returning a FLOAT64 scalar unless the column type is FLOAT32 then
a FLOAT32 scalar is returned.
|
Scalar |
ColumnVector.standardDeviation(DType outType)
Returns the sample standard deviation of all values in the column,
returning a scalar of the specified type.
|
Scalar |
ColumnVector.sum()
Computes the sum of all values in the column, returning a scalar
of the same type as this column.
|
Scalar |
ColumnVector.sum(DType outType)
Computes the sum of all values in the column, returning a scalar
of the specified type.
|
Scalar |
ColumnVector.sumOfSquares()
Returns the sum of squares of all values in the column, returning a
scalar of the same type as this column.
|
Scalar |
ColumnVector.sumOfSquares(DType outType)
Returns the sum of squares of all values in the column, returning a
scalar of the specified type.
|
static Scalar |
Scalar.timestampDaysFromInt(int value) |
static Scalar |
Scalar.timestampDaysFromInt(Integer value) |
static Scalar |
Scalar.timestampFromLong(DType type,
long value) |
static Scalar |
Scalar.timestampFromLong(DType type,
Long value) |
Scalar |
ColumnVector.variance()
Returns the variance of all values in the column, returning a
FLOAT64 scalar unless the column type is FLOAT32 then a FLOAT32 scalar is returned.
|
Scalar |
ColumnVector.variance(DType outType)
Returns the variance of all values in the column, returning a
scalar of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnVector |
ColumnVector.clamp(Scalar lo,
Scalar hi)
Replaces values less than `lo` in `input` with `lo`,
and values greater than `hi` with `hi`.
|
ColumnVector |
ColumnVector.clamp(Scalar lo,
Scalar loReplace,
Scalar hi,
Scalar hiReplace)
Replaces values less than `lo` in `input` with `lo_replace`,
and values greater than `hi` with `hi_replace`.
|
boolean |
ColumnVector.contains(Scalar needle)
Find if the `needle` is present in this col
example:
Single Column:
idx 0 1 2 3 4
col = { 10, 20, 20, 30, 50 }
Scalar:
value = { 20 }
result = true
|
ColumnVector |
ColumnVector.endsWith(Scalar pattern)
Checks if each string in a column ends with a specified comparison string, resulting in a
parallel column of the boolean results.
|
static ColumnVector |
ColumnVector.fromScalar(Scalar scalar,
int rows)
Create a new vector of length rows, where each row is filled with the Scalar's
value
|
ColumnVector |
ColumnVector.ifElse(ColumnVector trueValues,
Scalar falseValue)
For a BOOL8 vector, computes a vector whose rows are selected from two other inputs
based on the boolean value of this vector in the corresponding row.
|
ColumnVector |
ColumnVector.ifElse(Scalar trueValue,
ColumnVector falseValues)
For a BOOL8 vector, computes a vector whose rows are selected from two other inputs
based on the boolean value of this vector in the corresponding row.
|
ColumnVector |
ColumnVector.ifElse(Scalar trueValue,
Scalar falseValue)
For a BOOL8 vector, computes a vector whose rows are selected from two other inputs
based on the boolean value of this vector in the corresponding row.
|
ColumnVector |
ColumnVector.lstrip(Scalar toStrip)
Removes the specified characters from the beginning of each string.
|
ColumnVector |
ColumnVector.replaceNulls(Scalar scalar)
Returns a ColumnVector with any null values replaced with a scalar.
|
ColumnVector |
ColumnVector.rstrip(Scalar toStrip)
Removes the specified characters from the end of each string.
|
static ColumnVector |
ColumnVector.sequence(Scalar initialValue,
int rows)
Create a new vector of length rows, starting at the initialValue and going by 1 each time.
|
static ColumnVector |
ColumnVector.sequence(Scalar initialValue,
Scalar step,
int rows)
Create a new vector of length rows, starting at the initialValue and going by step each time.
|
ColumnVector |
ColumnVector.startsWith(Scalar pattern)
Checks if each string in a column starts with a specified comparison string, resulting in a
parallel column of the boolean results.
|
static ColumnVector |
ColumnVector.stringConcatenate(Scalar separator,
Scalar narep,
ColumnVector[] columns)
Concatenate columns of strings together, combining a corresponding row from each column into
a single string row of a new column.
|
ColumnVector |
ColumnVector.stringContains(Scalar compString)
Checks if each string in a column contains a specified comparison string, resulting in a
parallel column of the boolean results.
|
ColumnVector |
ColumnVector.stringLocate(Scalar substring)
Locates the starting index of the first instance of the given string in each row of a column.
|
ColumnVector |
ColumnVector.stringLocate(Scalar substring,
int start)
Locates the starting index of the first instance of the given string in each row of a column.
|
ColumnVector |
ColumnVector.stringLocate(Scalar substring,
int start,
int end)
Locates the starting index of the first instance of the given string in each row of a column.
|
ColumnVector |
ColumnVector.stringReplace(Scalar target,
Scalar replace)
Returns a new strings column where target string within each string is replaced with the specified
replacement string.
|
Table |
ColumnVector.stringSplit(Scalar delimiter)
Returns a list of columns by splitting each string using the specified delimiter.
|
ColumnVector |
ColumnVector.strip(Scalar toStrip)
Removes the specified characters from the beginning and end of each string.
|
Copyright © 2020. All rights reserved.