public interface Vector<T> extends BaseVector<T,T,java.util.stream.Stream<T>>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
anyNull()
Returns true if there are any NULL values in this row.
|
default java.util.List<T> |
distinct()
Returns the distinct values.
|
Vector<T> |
get(int... index)
Returns a new vector with selected entries.
|
default byte |
getByte(int i)
Returns the byte value at position i.
|
default double |
getDouble(int i)
Returns the double value at position i.
|
default float |
getFloat(int i)
Returns the float value at position i.
|
default int |
getInt(int i)
Returns the integer value at position i.
|
default long |
getLong(int i)
Returns the long value at position i.
|
default short |
getShort(int i)
Returns the short value at position i.
|
default boolean |
isNullAt(int i)
Checks whether the value at position i is null.
|
static <T> Vector<T> |
of(java.lang.String name,
java.lang.Class clazz,
T[] vector)
Creates a named vector.
|
static <T> Vector<T> |
of(java.lang.String name,
DataType type,
T[] vector)
Creates a named vector.
|
static <T> Vector |
of(StructField field,
T[] vector)
Creates a named vector.
|
T[] |
toArray()
Returns the array of elements.
|
Vector<java.time.LocalDate> |
toDate()
Returns a vector of LocalDate.
|
Vector<java.time.LocalDateTime> |
toDateTime()
Returns a vector of LocalDateTime.
|
default java.lang.String |
toString(int n)
Returns the string representation of vector.
|
Vector<java.time.LocalTime> |
toTime()
Returns a vector of LocalTime.
|
apply, apply, array, field, get, measure, name, size, stream, toDoubleArray, toDoubleArray, toIntArray, toIntArray, toStringArray, toStringArray, typeVector<T> get(int... index)
BaseVectorget in interface BaseVector<T,T,java.util.stream.Stream<T>>index - the index of selected entries.T[] toArray()
Vector<java.time.LocalDate> toDate()
Vector<java.time.LocalTime> toTime()
Vector<java.time.LocalDateTime> toDateTime()
default java.util.List<T> distinct()
default byte getByte(int i)
BaseVectorgetByte in interface BaseVector<T,T,java.util.stream.Stream<T>>default short getShort(int i)
BaseVectorgetShort in interface BaseVector<T,T,java.util.stream.Stream<T>>default int getInt(int i)
BaseVectorgetInt in interface BaseVector<T,T,java.util.stream.Stream<T>>default long getLong(int i)
BaseVectorgetLong in interface BaseVector<T,T,java.util.stream.Stream<T>>default float getFloat(int i)
BaseVectorgetFloat in interface BaseVector<T,T,java.util.stream.Stream<T>>default double getDouble(int i)
BaseVectorgetDouble in interface BaseVector<T,T,java.util.stream.Stream<T>>default boolean isNullAt(int i)
default boolean anyNull()
default java.lang.String toString(int n)
n - Number of elements to showstatic <T> Vector<T> of(java.lang.String name, java.lang.Class clazz, T[] vector)
name - the name of vector.clazz - the class of data type.vector - the data of vector.static <T> Vector<T> of(java.lang.String name, DataType type, T[] vector)
name - the name of vector.type - the data type of vector.vector - the data of vector.static <T> Vector of(StructField field, T[] vector)
field - the struct field of vector.vector - the data of vector.