lance_datagen::generator::array

Function cycle

Source
pub fn cycle<DataType>(values: Vec<DataType::Native>) -> Box<dyn ArrayGenerator>
where DataType::Native: Copy + 'static, DataType: ArrowPrimitiveType, PrimitiveArray<DataType>: From<Vec<DataType::Native>> + 'static,
Expand description

Create a generator from a vector of values

If more rows are requested than the length of values then it will restart from the beginning of the vector.