public interface StringVector extends Vector<java.lang.String>
| Modifier and Type | Method and Description |
|---|---|
BaseVector |
factorize(CategoricalMeasure scale)
Converts strings to discrete measured values.
|
StringVector |
get(int... index)
Returns a new vector with selected entries.
|
NominalScale |
nominal()
Returns a nominal scale of measure based on distinct values in
the vector.
|
static StringVector |
of(java.lang.String name,
java.lang.String... vector)
Creates a named string vector.
|
static StringVector |
of(StructField field,
java.lang.String... vector)
Creates a named string vector.
|
Vector<java.time.LocalDate> |
toDate(java.time.format.DateTimeFormatter format)
Returns a vector of LocalDate.
|
default Vector<java.time.LocalDate> |
toDate(java.lang.String pattern)
Returns a vector of LocalDate.
|
Vector<java.time.LocalDateTime> |
toDateTime(java.time.format.DateTimeFormatter format)
Returns a vector of LocalDateTime.
|
default Vector<java.time.LocalDateTime> |
toDateTime(java.lang.String pattern)
Returns a vector of LocalDateTime.
|
default java.lang.String |
toString(int n)
Returns the string representation of vector.
|
Vector<java.time.LocalTime> |
toTime(java.time.format.DateTimeFormatter format)
Returns a vector of LocalDate.
|
default Vector<java.time.LocalTime> |
toTime(java.lang.String pattern)
Returns a vector of LocalTime.
|
anyNull, distinct, getByte, getDouble, getFloat, getInt, getLong, getShort, isNullAt, of, of, of, toArray, toDate, toDateTime, toTimeapply, apply, array, field, get, measure, name, size, stream, toDoubleArray, toDoubleArray, toIntArray, toIntArray, toStringArray, toStringArray, typeStringVector get(int... index)
BaseVectorget in interface BaseVector<java.lang.String,java.lang.String,java.util.stream.Stream<java.lang.String>>get in interface Vector<java.lang.String>index - the index of selected entries.default Vector<java.time.LocalDate> toDate(java.lang.String pattern)
Vector<java.time.LocalDate> toDate(java.time.format.DateTimeFormatter format)
default Vector<java.time.LocalTime> toTime(java.lang.String pattern)
Vector<java.time.LocalTime> toTime(java.time.format.DateTimeFormatter format)
default Vector<java.time.LocalDateTime> toDateTime(java.lang.String pattern)
Vector<java.time.LocalDateTime> toDateTime(java.time.format.DateTimeFormatter format)
NominalScale nominal()
BaseVector factorize(CategoricalMeasure scale)
default java.lang.String toString(int n)
static StringVector of(java.lang.String name, java.lang.String... vector)
name - the name of vector.vector - the data of vector.static StringVector of(StructField field, java.lang.String... vector)
field - the struct field of vector.vector - the data of vector.