public interface BinaryOperable
Modifier and Type | Method and Description |
---|---|
default ColumnVector |
add(BinaryOperable rhs)
Add + operator.
|
default ColumnVector |
add(BinaryOperable rhs,
DType outType)
Add one vector to another with the given output type.
|
default ColumnVector |
and(BinaryOperable rhs)
Logical and (&&).
|
default ColumnVector |
and(BinaryOperable rhs,
DType outType)
Logical and (&&) with the given output type.
|
default ColumnVector |
arctan2(BinaryOperable xCoordinate)
The function arctan2(y,x) or atan2(y,x) is defined as the angle in the Euclidean plane, given
in radians, between the positive x axis and the ray to the point (x, y) ≠ (0, 0).
|
default ColumnVector |
arctan2(BinaryOperable xCoordinate,
DType outType)
The function arctan2(y,x) or atan2(y,x) is defined as the angle in the Euclidean plane, given
in radians, between the positive x axis and the ray to the point (x, y) ≠ (0, 0).
|
ColumnVector |
binaryOp(BinaryOp op,
BinaryOperable rhs,
DType outType)
Multiple different binary operations.
|
default ColumnVector |
bitAnd(BinaryOperable rhs)
Bit wise and (&).
|
default ColumnVector |
bitAnd(BinaryOperable rhs,
DType outType)
Bit wise and (&) with the given output type.
|
default ColumnVector |
bitOr(BinaryOperable rhs)
Bit wise or (|).
|
default ColumnVector |
bitOr(BinaryOperable rhs,
DType outType)
Bit wise or (|) with the given output type.
|
default ColumnVector |
bitXor(BinaryOperable rhs)
Bit wise xor (^).
|
default ColumnVector |
bitXor(BinaryOperable rhs,
DType outType)
Bit wise xor (^) with the given output type.
|
default ColumnVector |
div(BinaryOperable rhs)
Divide one vector by another.
|
default ColumnVector |
div(BinaryOperable rhs,
DType outType)
Divide one vector by another with the given output type.
|
default ColumnVector |
equalTo(BinaryOperable rhs)
this == rhs 1 is true 0 is false.
|
default ColumnVector |
equalTo(BinaryOperable rhs,
DType outType)
this == rhs 1 is true 0 is false with the output cast to the given type.
|
default ColumnVector |
equalToNullAware(BinaryOperable rhs)
like equalTo but NULL == NULL is TRUE and NULL == not NULL is FALSE
|
default ColumnVector |
equalToNullAware(BinaryOperable rhs,
DType outType)
like equalTo but NULL == NULL is TRUE and NULL == not NULL is FALSE
|
default ColumnVector |
floorDiv(BinaryOperable rhs)
Divide one vector by another and calculate the floor of the result.
|
default ColumnVector |
floorDiv(BinaryOperable rhs,
DType outType)
Divide one vector by another and calculate the floor of the result with the given output type.
|
DType |
getType()
Get the type of this data.
|
default ColumnVector |
greaterOrEqualTo(BinaryOperable rhs)
this >= rhs 1 is true 0 is false.
|
default ColumnVector |
greaterOrEqualTo(BinaryOperable rhs,
DType outType)
this >= rhs 1 is true 0 is false with the output cast to the given type.
|
default ColumnVector |
greaterThan(BinaryOperable rhs)
this > rhs 1 is true 0 is false.
|
default ColumnVector |
greaterThan(BinaryOperable rhs,
DType outType)
this > rhs 1 is true 0 is false with the output cast to the given type.
|
static DType |
implicitConversion(BinaryOp op,
BinaryOperable lhs,
BinaryOperable rhs)
Finds the proper DType for an implicit output.
|
default ColumnVector |
lessOrEqualTo(BinaryOperable rhs)
this <= rhs 1 is true 0 is false.
|
default ColumnVector |
lessOrEqualTo(BinaryOperable rhs,
DType outType)
this <= rhs 1 is true 0 is false with the output cast to the given type.
|
default ColumnVector |
lessThan(BinaryOperable rhs)
this < rhs 1 is true 0 is false.
|
default ColumnVector |
lessThan(BinaryOperable rhs,
DType outType)
this < rhs 1 is true 0 is false with the output cast to the given type.
|
default ColumnVector |
log(BinaryOperable rhs)
Calculate the log with the specified base, output is the same as this.
|
default ColumnVector |
log(BinaryOperable rhs,
DType outType)
Calculate the log with the specified base
|
default ColumnVector |
maxNullAware(BinaryOperable rhs)
Returns the max non null value.
|
default ColumnVector |
maxNullAware(BinaryOperable rhs,
DType outType)
Returns the max non null value.
|
default ColumnVector |
minNullAware(BinaryOperable rhs)
Returns the min non null value.
|
default ColumnVector |
minNullAware(BinaryOperable rhs,
DType outType)
Returns the min non null value.
|
default ColumnVector |
mod(BinaryOperable rhs)
Compute the modulus.
|
default ColumnVector |
mod(BinaryOperable rhs,
DType outType)
Compute the modulus with the given output type.
|
default ColumnVector |
mul(BinaryOperable rhs)
Multiply two vectors together.
|
default ColumnVector |
mul(BinaryOperable rhs,
DType outType)
Multiply two vectors together with the given output type.
|
default ColumnVector |
notEqualTo(BinaryOperable rhs)
this != rhs 1 is true 0 is false.
|
default ColumnVector |
notEqualTo(BinaryOperable rhs,
DType outType)
this != rhs 1 is true 0 is false with the output cast to the given type.
|
default ColumnVector |
notEqualToNullAware(BinaryOperable rhs)
like notEqualTo but NULL != NULL is TRUE and NULL != not NULL is FALSE
|
default ColumnVector |
notEqualToNullAware(BinaryOperable rhs,
DType outType)
like notEqualTo but NULL != NULL is TRUE and NULL != not NULL is FALSE
|
default ColumnVector |
or(BinaryOperable rhs)
Logical or (||).
|
default ColumnVector |
or(BinaryOperable rhs,
DType outType)
Logical or (||) with the given output type.
|
default ColumnVector |
pmod(BinaryOperable rhs)
Returns the positive value of lhs mod rhs.
|
default ColumnVector |
pmod(BinaryOperable rhs,
DType outputType)
Returns the positive value of lhs mod rhs.
|
default ColumnVector |
pow(BinaryOperable rhs)
Compute the power.
|
default ColumnVector |
pow(BinaryOperable rhs,
DType outType)
Compute the power with the given output type.
|
default ColumnVector |
shiftLeft(BinaryOperable shiftBy)
Bitwise left shift the values of this vector by the shiftBy.
|
default ColumnVector |
shiftLeft(BinaryOperable shiftBy,
DType outType)
Bitwise left shifts the values of this vector by shiftBy.
|
default ColumnVector |
shiftRight(BinaryOperable shiftBy)
Bitwise right shift this vector by the shiftBy.
|
default ColumnVector |
shiftRight(BinaryOperable shiftBy,
DType outType)
Bitwise right shift this vector by the shiftBy.
|
default ColumnVector |
shiftRightUnsigned(BinaryOperable shiftBy)
This method bitwise right shifts the values of this vector by the shiftBy.
|
default ColumnVector |
shiftRightUnsigned(BinaryOperable shiftBy,
DType outType)
This method bitwise right shifts the values of this vector by the shiftBy.
|
default ColumnVector |
sub(BinaryOperable rhs)
Subtract one vector from another.
|
default ColumnVector |
sub(BinaryOperable rhs,
DType outType)
Subtract one vector from another with the given output type.
|
default ColumnVector |
trueDiv(BinaryOperable rhs)
Divide one vector by another converting to FLOAT64 in between.
|
default ColumnVector |
trueDiv(BinaryOperable rhs,
DType outType)
Divide one vector by another converting to FLOAT64 in between with the given output type.
|
static DType implicitConversion(BinaryOp op, BinaryOperable lhs, BinaryOperable rhs)
Currently most TIMESTAMPs are treated the same as INT64. TIMESTAMP_DAYS is treated the same as INT32. All time information is stripped from them. This may change in the future.
BOOL8 is treated like an INT8. Math on boolean operations makes little sense. If you want to stay as a BOOL8 you will need to explicitly specify the output type. For decimal types, DECIMAL32 and DECIMAL64 takes in another parameter `scale`. DType is created with scale=0 as scale is required. Dtype is discarded for binary operations for decimal types in cudf as a new DType is created for output type with the new scale.
DType getType()
ColumnVector binaryOp(BinaryOp op, BinaryOperable rhs, DType outType)
op
- the operation to performrhs
- the rhs of the operationoutType
- the type of output you want.default ColumnVector add(BinaryOperable rhs, DType outType)
default ColumnVector add(BinaryOperable rhs)
default ColumnVector sub(BinaryOperable rhs, DType outType)
default ColumnVector sub(BinaryOperable rhs)
default ColumnVector mul(BinaryOperable rhs, DType outType)
default ColumnVector mul(BinaryOperable rhs)
default ColumnVector div(BinaryOperable rhs, DType outType)
default ColumnVector div(BinaryOperable rhs)
default ColumnVector trueDiv(BinaryOperable rhs, DType outType)
default ColumnVector trueDiv(BinaryOperable rhs)
default ColumnVector floorDiv(BinaryOperable rhs, DType outType)
default ColumnVector floorDiv(BinaryOperable rhs)
default ColumnVector mod(BinaryOperable rhs, DType outType)
default ColumnVector mod(BinaryOperable rhs)
default ColumnVector pow(BinaryOperable rhs, DType outType)
default ColumnVector pow(BinaryOperable rhs)
default ColumnVector equalTo(BinaryOperable rhs, DType outType)
default ColumnVector equalTo(BinaryOperable rhs)
default ColumnVector notEqualTo(BinaryOperable rhs, DType outType)
default ColumnVector notEqualTo(BinaryOperable rhs)
default ColumnVector lessThan(BinaryOperable rhs, DType outType)
default ColumnVector lessThan(BinaryOperable rhs)
default ColumnVector greaterThan(BinaryOperable rhs, DType outType)
default ColumnVector greaterThan(BinaryOperable rhs)
default ColumnVector lessOrEqualTo(BinaryOperable rhs, DType outType)
default ColumnVector lessOrEqualTo(BinaryOperable rhs)
default ColumnVector greaterOrEqualTo(BinaryOperable rhs, DType outType)
default ColumnVector greaterOrEqualTo(BinaryOperable rhs)
default ColumnVector bitAnd(BinaryOperable rhs, DType outType)
default ColumnVector bitAnd(BinaryOperable rhs)
default ColumnVector bitOr(BinaryOperable rhs, DType outType)
default ColumnVector bitOr(BinaryOperable rhs)
default ColumnVector bitXor(BinaryOperable rhs, DType outType)
default ColumnVector bitXor(BinaryOperable rhs)
default ColumnVector and(BinaryOperable rhs, DType outType)
default ColumnVector and(BinaryOperable rhs)
default ColumnVector or(BinaryOperable rhs, DType outType)
default ColumnVector or(BinaryOperable rhs)
default ColumnVector shiftLeft(BinaryOperable shiftBy, DType outType)
default ColumnVector shiftLeft(BinaryOperable shiftBy)
default ColumnVector shiftRight(BinaryOperable shiftBy, DType outType)
default ColumnVector shiftRight(BinaryOperable shiftBy)
default ColumnVector shiftRightUnsigned(BinaryOperable shiftBy, DType outType)
default ColumnVector shiftRightUnsigned(BinaryOperable shiftBy)
default ColumnVector log(BinaryOperable rhs, DType outType)
default ColumnVector log(BinaryOperable rhs)
default ColumnVector arctan2(BinaryOperable xCoordinate, DType outType)
default ColumnVector arctan2(BinaryOperable xCoordinate)
default ColumnVector pmod(BinaryOperable rhs, DType outputType)
default ColumnVector pmod(BinaryOperable rhs)
default ColumnVector equalToNullAware(BinaryOperable rhs, DType outType)
default ColumnVector equalToNullAware(BinaryOperable rhs)
default ColumnVector notEqualToNullAware(BinaryOperable rhs, DType outType)
default ColumnVector notEqualToNullAware(BinaryOperable rhs)
default ColumnVector maxNullAware(BinaryOperable rhs, DType outType)
default ColumnVector maxNullAware(BinaryOperable rhs)
default ColumnVector minNullAware(BinaryOperable rhs, DType outType)
default ColumnVector minNullAware(BinaryOperable rhs)
Copyright © 2024. All rights reserved.