public interface LongVector extends BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>
| Modifier and Type | Method and Description |
|---|---|
long[] |
array()
Returns the array that backs this vector.
|
LongVector |
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 short |
getShort(int i)
Returns the short value at position i.
|
static LongVector |
of(java.lang.String name,
long[] vector)
Creates a named long vector.
|
static LongVector |
of(java.lang.String name,
java.util.stream.LongStream stream)
Creates a named long integer vector.
|
static LongVector |
of(StructField field,
long[] vector)
Creates a named long integer vector.
|
static LongVector |
of(StructField field,
java.util.stream.LongStream stream)
Creates a named long integer vector.
|
default java.lang.String |
toString(int n)
Returns the string representation of vector.
|
default DataType |
type()
Returns the element type.
|
apply, apply, field, get, getLong, measure, name, size, stream, toDoubleArray, toDoubleArray, toIntArray, toIntArray, toStringArray, toStringArraydefault DataType type()
BaseVectortype in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>long[] array()
BaseVectorarray in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>LongVector get(int... index)
BaseVectorget in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>index - the index of selected entries.default byte getByte(int i)
BaseVectorgetByte in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>default short getShort(int i)
BaseVectorgetShort in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>default int getInt(int i)
BaseVectorgetInt in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>default float getFloat(int i)
BaseVectorgetFloat in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>default double getDouble(int i)
BaseVectorgetDouble in interface BaseVector<java.lang.Long,java.lang.Long,java.util.stream.LongStream>default java.lang.String toString(int n)
n - Number of elements to showstatic LongVector of(java.lang.String name, long[] vector)
name - the name of vector.vector - the data of vector.static LongVector of(java.lang.String name, java.util.stream.LongStream stream)
name - the name of vector.stream - the data stream of vector.static LongVector of(StructField field, long[] vector)
field - the struct field of vector.vector - the data of vector.static LongVector of(StructField field, java.util.stream.LongStream stream)
field - the struct field of vector.stream - the data stream of vector.