Class BooleanVector

All Implemented Interfaces:
Serializable, ValueVector

public class BooleanVector extends PrimitiveVector
A boolean vector.
See Also:
  • Constructor Details

    • BooleanVector

      public BooleanVector(String name, boolean[] vector)
      Constructor.
      Parameters:
      name - the name of vector.
      vector - the elements of vector.
    • BooleanVector

      public BooleanVector(StructField field, boolean[] vector)
      Constructor.
      Parameters:
      field - the struct field of vector.
      vector - the elements of vector.
    • BooleanVector

      public BooleanVector(String name, int size, BitSet bits)
      Constructor.
      Parameters:
      name - the name of vector.
      size - the length of vector.
      bits - the bit map of vector.
    • BooleanVector

      public BooleanVector(StructField field, int size, BitSet bits)
      Constructor.
      Parameters:
      field - the struct field of vector.
      size - the length of vector.
      bits - the bit map of vector.
  • Method Details

    • size

      public int size()
      Description copied from interface: ValueVector
      Returns the number of elements in the vector.
      Returns:
      the number of elements in the vector.
    • withName

      public BooleanVector withName(String name)
      Description copied from interface: ValueVector
      Returns the vector with the new name.
      Parameters:
      name - the new name.
      Returns:
      the vector with the new name.
    • intStream

      public IntStream intStream()
      Description copied from interface: ValueVector
      Returns an IntStream consisting of the elements of this vector, converted to integer.
      Returns:
      an IntStream consisting of the elements of this vector.
    • set

      public void set(int i, Object value)
      Description copied from interface: ValueVector
      Sets the value at position i.
      Parameters:
      i - the index.
      value - the new value.
    • get

      public BooleanVector get(Index index)
      Description copied from interface: ValueVector
      Returns a new vector with selected entries.
      Parameters:
      index - the index of selected entries.
      Returns:
      the new vector of selected entries.
    • get

      public Boolean get(int i)
      Description copied from interface: ValueVector
      Returns the value at position i, which may be null.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getBoolean

      public boolean getBoolean(int i)
      Description copied from interface: ValueVector
      Returns the boolean value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getChar

      public char getChar(int i)
      Description copied from interface: ValueVector
      Returns the character value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getByte

      public byte getByte(int i)
      Description copied from interface: ValueVector
      Returns the byte value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getShort

      public short getShort(int i)
      Description copied from interface: ValueVector
      Returns the short value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getInt

      public int getInt(int i)
      Description copied from interface: ValueVector
      Returns the integer value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getLong

      public long getLong(int i)
      Description copied from interface: ValueVector
      Returns the long value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getFloat

      public float getFloat(int i)
      Description copied from interface: ValueVector
      Returns the float value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.
    • getDouble

      public double getDouble(int i)
      Description copied from interface: ValueVector
      Returns the double value at position i.
      Parameters:
      i - the index.
      Returns:
      the value.