| Modifier and Type | Method and Description |
|---|---|
TimeUnit |
ColumnVector.getTimeUnit()
For vector types that support a TimeUnit (TIMESTAMP),
get the unit of time.
|
TimeUnit |
Scalar.getTimeUnit()
Returns the time unit associated with this scalar.
|
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnVector |
ColumnVector.asTimestamp(TimeUnit unit)
Cast to Timestamp - ColumnVector
This method takes the value provided by the ColumnVector and casts to timestamp
|
static ColumnVector |
ColumnVector.build(DType type,
TimeUnit tsTimeUnit,
int rows,
java.util.function.Consumer<ColumnVector.Builder> init)
Create a new vector.
|
static ColumnVector.Builder |
ColumnVector.builder(DType type,
TimeUnit tsTimeUnit,
int rows)
Create a new Builder to hold the specified number of rows.
|
static ColumnVector |
ColumnVector.buildOnHost(DType type,
TimeUnit tsTimeUnit,
int rows,
java.util.function.Consumer<ColumnVector.Builder> init)
Create a new vector without sending data to the device.
|
ColumnVector |
ColumnVector.castTo(DType type,
TimeUnit unit)
Generic method to cast ColumnVector
When casting from a Date, Timestamp, or Boolean to a numerical type the underlying numerical
representationof the data will be used for the cast.
|
Table.TestBuilder |
Table.TestBuilder.timestampColumn(TimeUnit unit,
Long... values) |
static Scalar |
Scalar.timestampFromLong(long value,
TimeUnit unit) |
static Scalar |
Scalar.timestampFromNull(TimeUnit timeUnit) |
static ColumnVector |
ColumnVector.timestampsFromBoxedLongs(TimeUnit tsTimeUnit,
Long... values)
Create a new vector from the given values.
|
static ColumnVector |
ColumnVector.timestampsFromLongs(TimeUnit tsTimeUnit,
long... values)
Create a new vector from the given values.
|
Copyright © 2019. All rights reserved.