public enum DType extends Enum<DType>
| Enum Constant and Description |
|---|
BOOL8
Byte wise true non-0/false 0.
|
EMPTY |
FLOAT32 |
FLOAT64 |
INT16 |
INT32 |
INT64 |
INT8 |
STRING |
TIMESTAMP_DAYS
Days since the UNIX epoch
|
TIMESTAMP_MICROSECONDS
microseconds since the UNIX epoch
|
TIMESTAMP_MILLISECONDS
ms since the UNIX epoch
|
TIMESTAMP_NANOSECONDS
ns since the UNIX epoch
|
TIMESTAMP_SECONDS
s since the UNIX epoch
|
| Modifier and Type | Method and Description |
|---|---|
static DType |
fromNative(int nativeId) |
int |
getNativeId() |
int |
getSizeInBytes()
This only works for fixed width types.
|
boolean |
hasTimeResolution()
Returns true for timestamps with time level resolution, as opposed to day level resolution
|
boolean |
isTimestamp() |
static DType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DType EMPTY
public static final DType INT8
public static final DType INT16
public static final DType INT32
public static final DType INT64
public static final DType FLOAT32
public static final DType FLOAT64
public static final DType BOOL8
public static final DType TIMESTAMP_DAYS
public static final DType TIMESTAMP_SECONDS
public static final DType TIMESTAMP_MILLISECONDS
public static final DType TIMESTAMP_MICROSECONDS
public static final DType TIMESTAMP_NANOSECONDS
public static final DType STRING
public static DType[] values()
for (DType c : DType.values()) System.out.println(c);
public static DType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isTimestamp()
public boolean hasTimeResolution()
public int getNativeId()
public int getSizeInBytes()
public static DType fromNative(int nativeId)
Copyright © 2020. All rights reserved.