pub struct Vector(_);
Expand description

Vector of values of a specified PhysicalType.

Implementations

Retrieves the data pointer of the vector.

The data pointer can be used to read or write values from the vector. How to read or write values depends on the type of the vector.

Assigns a string element in the vector at the specified location.

Arguments
  • index - The row position in the vector to assign the string to
  • str - The string
  • str_len - The length of the string (in bytes)
Safety

Assigns a string element in the vector at the specified location.

Arguments
  • index - The row position in the vector to assign the string to
  • str - The null-terminated string“]
Safety

Retrieves the column type of the specified vector.

Retrieves the validity mask pointer of the specified vector.

If all values are valid, this function MIGHT return NULL!

The validity mask is a bitset that signifies null-ness within the data chunk. It is a series of uint64_t values, where each uint64_t value contains validity for 64 tuples. The bit is set to 1 if the value is valid (i.e. not NULL) or 0 if the value is invalid (i.e. NULL).

Validity of a specific value can be obtained like this:

idx_t entry_idx = row_idx / 64; idx_t idx_in_entry = row_idx % 64; bool is_valid = validity_maskentry_idx & (1 << idx_in_entry);

Alternatively, the (slower) row_is_valid function can be used.

returns: The pointer to the validity mask, or NULL if no validity mask is present

Ensures the validity mask is writable by allocating it.

After this function is called, get_validity will ALWAYS return non-NULL. This allows null values to be written to the vector, regardless of whether a validity mask was present before.

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.