Class NullableShortVector
java.lang.Object
smile.data.vector.AbstractVector
smile.data.vector.NullablePrimitiveVector
smile.data.vector.NullableShortVector
- All Implemented Interfaces:
- Serializable, ValueVector
- 
Constructor SummaryConstructorsConstructorDescriptionNullableShortVector(String name, short[] vector, BitSet nullMask) Constructor.NullableShortVector(StructField field, short[] vector, BitSet nullMask) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionget(int i) Returns the value at position i, which may be null.Returns a new vector with selected entries.booleangetBoolean(int i) Returns the boolean value at position i.bytegetByte(int i) Returns the byte value at position i.chargetChar(int i) Returns the character value at position i.doublegetDouble(int i) Returns the double value at position i.floatgetFloat(int i) Returns the float value at position i.intgetInt(int i) Returns the integer value at position i.longgetLong(int i) Returns the long value at position i.shortgetShort(int i) Returns the short value at position i.Returns an IntStream consisting of the elements of this vector, converted to integer.voidSets the value at position i.intsize()Returns the number of elements in the vector.Returns the vector with the new name.Methods inherited from class NullablePrimitiveVectorfillna, getNullCount, getNullMask, isNullable, isNullAt, max, mean, median, min, q1, q3, setNullMask, stdevMethods inherited from class AbstractVectorfield, toStringMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ValueVectoranyNull, apply, apply, doubleStream, dtype, eq, ge, get, getScale, getString, gt, isin, isNull, le, longStream, lt, measure, name, ne, slice, slice, stream, toDoubleArray, toIntArray, toLongArray, toStringArray, toStringArray, update
- 
Constructor Details- 
NullableShortVector
- 
NullableShortVectorConstructor.- Parameters:
- field- the struct field of vector.
- vector- the elements of vector.
- nullMask- The null bitmap. The bit is 1 if the value is null.
 
 
- 
- 
Method Details- 
sizepublic int size()Description copied from interface:ValueVectorReturns the number of elements in the vector.- Returns:
- the number of elements in the vector.
 
- 
withNameDescription copied from interface:ValueVectorReturns the vector with the new name.- Parameters:
- name- the new name.
- Returns:
- the vector with the new name.
 
- 
intStreamDescription copied from interface:ValueVectorReturns an IntStream consisting of the elements of this vector, converted to integer.- Returns:
- an IntStream consisting of the elements of this vector.
 
- 
setDescription copied from interface:ValueVectorSets the value at position i.- Parameters:
- i- the index.
- value- the new value.
 
- 
getDescription copied from interface:ValueVectorReturns a new vector with selected entries.- Parameters:
- index- the index of selected entries.
- Returns:
- the new vector of selected entries.
 
- 
getDescription copied from interface:ValueVectorReturns the value at position i, which may be null.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getShortpublic short getShort(int i) Description copied from interface:ValueVectorReturns the short value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getBooleanpublic boolean getBoolean(int i) Description copied from interface:ValueVectorReturns the boolean value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getCharpublic char getChar(int i) Description copied from interface:ValueVectorReturns the character value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getBytepublic byte getByte(int i) Description copied from interface:ValueVectorReturns the byte value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getIntpublic int getInt(int i) Description copied from interface:ValueVectorReturns the integer value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getLongpublic long getLong(int i) Description copied from interface:ValueVectorReturns the long value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getFloatpublic float getFloat(int i) Description copied from interface:ValueVectorReturns the float value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
- 
getDoublepublic double getDouble(int i) Description copied from interface:ValueVectorReturns the double value at position i.- Parameters:
- i- the index.
- Returns:
- the value.
 
 
-