public final class Scalar extends Object implements AutoCloseable, BinaryOperable
| Modifier and Type | Method and Description |
|---|---|
ColumnVector |
binaryOp(BinaryOp op,
BinaryOperable rhs,
DType outType)
Multiple different binary operations.
|
void |
close()
Free the memory associated with a scalar.
|
boolean |
equals(Object o) |
static Scalar |
fromBool(boolean value) |
static Scalar |
fromBool(Boolean value) |
static Scalar |
fromByte(byte value) |
static Scalar |
fromByte(Byte value) |
static Scalar |
fromDouble(double value) |
static Scalar |
fromDouble(Double value) |
static Scalar |
fromFloat(float value) |
static Scalar |
fromFloat(Float value) |
static Scalar |
fromInt(int value) |
static Scalar |
fromInt(Integer value) |
static Scalar |
fromLong(long value) |
static Scalar |
fromLong(Long value) |
static Scalar |
fromNull(DType type) |
static Scalar |
fromShort(short value) |
static Scalar |
fromShort(Short value) |
static Scalar |
fromString(String value) |
boolean |
getBoolean()
Returns the scalar value as a boolean.
|
byte |
getByte()
Returns the scalar value as a byte.
|
double |
getDouble()
Returns the scalar value as a double.
|
float |
getFloat()
Returns the scalar value as a float.
|
int |
getInt()
Returns the scalar value as an int.
|
String |
getJavaString()
Returns the scalar value as a Java string.
|
long |
getLong()
Returns the scalar value as a long.
|
short |
getShort()
Returns the scalar value as a short.
|
DType |
getType()
Get the type of this data.
|
byte[] |
getUTF8()
Returns the scalar value as UTF-8 data.
|
int |
hashCode() |
Scalar |
incRefCount()
Increment the reference count for this scalar.
|
boolean |
isValid() |
static Scalar |
timestampDaysFromInt(int value) |
static Scalar |
timestampDaysFromInt(Integer value) |
static Scalar |
timestampFromLong(DType type,
long value) |
static Scalar |
timestampFromLong(DType type,
Long value) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, and, and, arctan2, arctan2, bitAnd, bitAnd, bitOr, bitOr, bitXor, bitXor, div, div, equalTo, equalTo, equalToNullAware, equalToNullAware, floorDiv, floorDiv, greaterOrEqualTo, greaterOrEqualTo, greaterThan, greaterThan, implicitConversion, lessOrEqualTo, lessOrEqualTo, lessThan, lessThan, log, log, maxNullAware, maxNullAware, minNullAware, minNullAware, mod, mod, mul, mul, notEqualTo, notEqualTo, or, or, pmod, pmod, pow, pow, shiftLeft, shiftLeft, shiftRight, shiftRight, shiftRightUnsigned, shiftRightUnsigned, sub, sub, trueDiv, trueDivpublic static Scalar fromBool(boolean value)
public static Scalar fromByte(byte value)
public static Scalar fromShort(short value)
public static Scalar fromInt(int value)
public static Scalar fromLong(long value)
public static Scalar fromFloat(float value)
public static Scalar fromDouble(double value)
public static Scalar timestampDaysFromInt(int value)
public Scalar incRefCount()
public void close()
close in interface AutoCloseablepublic DType getType()
BinaryOperablegetType in interface BinaryOperablepublic boolean isValid()
public boolean getBoolean()
public byte getByte()
public short getShort()
public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public String getJavaString()
public byte[] getUTF8()
public ColumnVector binaryOp(BinaryOp op, BinaryOperable rhs, DType outType)
BinaryOperablebinaryOp in interface BinaryOperableop - the operation to performrhs - the rhs of the operationoutType - the type of output you want.Copyright © 2020. All rights reserved.