public final class Scalar extends Object implements BinaryOperable
| Modifier and Type | Method and Description |
|---|---|
ColumnVector |
binaryOp(BinaryOp op,
BinaryOperable rhs,
DType outType)
Multiple different binary operations.
|
static Scalar |
dateFromInt(int value) |
static Scalar |
dateFromLong(long value) |
boolean |
equals(Object o) |
static Scalar |
fromBool(boolean value) |
static Scalar |
fromByte(byte value) |
static Scalar |
fromDouble(double value) |
static Scalar |
fromFloat(float value) |
static Scalar |
fromInt(int value) |
static Scalar |
fromLong(long value) |
static Scalar |
fromNull(DType dtype) |
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.
|
TimeUnit |
getTimeUnit()
Returns the time unit associated with this scalar.
|
DType |
getType()
Get the type of this data.
|
byte[] |
getUTF8()
Returns the scalar value as UTF-8 data.
|
int |
hashCode() |
boolean |
isValid() |
static Scalar |
timestampFromLong(long value) |
static Scalar |
timestampFromLong(long value,
TimeUnit unit) |
static Scalar |
timestampFromNull(TimeUnit timeUnit) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, and, and, bitAnd, bitAnd, bitOr, bitOr, bitXor, bitXor, div, div, equalTo, equalTo, floorDiv, floorDiv, greaterOrEqualTo, greaterOrEqualTo, greaterThan, greaterThan, implicitConversion, lessOrEqualTo, lessOrEqualTo, lessThan, lessThan, mod, mod, mul, mul, notEqualTo, notEqualTo, or, or, pow, pow, sub, sub, trueDiv, trueDivpublic static final Scalar NULL
public 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 dateFromInt(int value)
public static Scalar fromLong(long value)
public static Scalar dateFromLong(long value)
public static Scalar timestampFromLong(long value)
public static Scalar fromFloat(float value)
public static Scalar fromDouble(double value)
public boolean isValid()
public DType getType()
BinaryOperablegetType in interface BinaryOperablepublic boolean getBoolean()
public byte getByte()
public short getShort()
public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public TimeUnit getTimeUnit()
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 © 2019. All rights reserved.