Interface CharVector

All Superinterfaces:
BaseVector<Character,Integer,IntStream>, Serializable

public interface CharVector extends BaseVector<Character,Integer,IntStream>
An immutable char vector.
  • Method Details

    • type

      default DataType type()
      Description copied from interface: BaseVector
      Returns the data type of elements.
      Specified by:
      type in interface BaseVector<Character,Integer,IntStream>
      Returns:
      the data type of elements.
    • array

      char[] array()
      Description copied from interface: BaseVector
      Returns the array that backs this vector. This is mostly for smile internal use for high performance. The application developers should not use this method.
      Specified by:
      array in interface BaseVector<Character,Integer,IntStream>
      Returns:
      the array that backs this vector.
    • get

      CharVector get(int... index)
      Description copied from interface: BaseVector
      Returns a new vector with selected entries.
      Specified by:
      get in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      index - the index of selected entries.
      Returns:
      the new vector of selected entries.
    • getBoolean

      default boolean getBoolean(int i)
      Description copied from interface: BaseVector
      Returns the boolean value at position i.
      Specified by:
      getBoolean in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      i - the index.
      Returns:
      the value.
    • getByte

      default byte getByte(int i)
      Description copied from interface: BaseVector
      Returns the byte value at position i.
      Specified by:
      getByte in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      i - the index.
      Returns:
      the value.
    • getShort

      default short getShort(int i)
      Description copied from interface: BaseVector
      Returns the short value at position i.
      Specified by:
      getShort in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      i - the index.
      Returns:
      the value.
    • getInt

      default int getInt(int i)
      Description copied from interface: BaseVector
      Returns the integer value at position i.
      Specified by:
      getInt in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      i - the index.
      Returns:
      the value.
    • getLong

      default long getLong(int i)
      Description copied from interface: BaseVector
      Returns the long value at position i.
      Specified by:
      getLong in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      i - the index.
      Returns:
      the value.
    • getFloat

      default float getFloat(int i)
      Description copied from interface: BaseVector
      Returns the float value at position i.
      Specified by:
      getFloat in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      i - the index.
      Returns:
      the value.
    • getDouble

      default double getDouble(int i)
      Description copied from interface: BaseVector
      Returns the double value at position i.
      Specified by:
      getDouble in interface BaseVector<Character,Integer,IntStream>
      Parameters:
      i - the index.
      Returns:
      the value.
    • toString

      default String toString(int n)
      Returns the string representation of vector.
      Parameters:
      n - the number of elements to show.
      Returns:
      the string representation of vector.
    • of

      static CharVector of(String name, char[] vector)
      Creates a named char vector.
      Parameters:
      name - the name of vector.
      vector - the data of vector.
      Returns:
      the vector.
    • of

      static CharVector of(StructField field, char[] vector)
      Creates a named char vector.
      Parameters:
      field - the struct field of vector.
      vector - the data of vector.
      Returns:
      the vector.