import { MemoryResource } from '@rapidsai/rmm'; import { Series } from '../series'; import { DataType, Int32, List, Utf8String } from '../types/dtypes'; /** * A Series of lists of values. */ export declare class ListSeries extends Series> { /** @ignore */ _castAsString(memoryResource?: MemoryResource): Series; /** * Series of integer offsets for each list * @example * ```typescript * import {Series} from '@rapidsai/cudf'; * import * as arrow from 'apache-arrow'; * * const vec = arrow.vectorFromArray( * [[0, 1, 2], [3, 4, 5], [6, 7, 8]], * new arrow.List(arrow.Field.new({ name: 'ints', type: new arrow.Int32 })), * ); * const a = Series.new(vec); * * a.offsets // Int32Series [0, 3, 6, 9] * ``` */ get offsets(): import("./integral").Int32Series; /** * Series containing the elements of each list * @example * ```typescript * import {Series} from '@rapidsai/cudf'; * import * as arrow from 'apache-arrow'; * * const vec = arrow.vectorFromArray( * [[0, 1, 2], [3, 4, 5], [6, 7, 8]], * new arrow.List(arrow.Field.new({ name: 'ints', type: new arrow.Int32 })), * ); * const a = Series.new(vec); * * a.elements // Int32Series [0, 1, 2, 3, 4, 5, 6, 7, 8] * ``` */ get elements(): Series; /** * Return a value at the specified index to host memory * * @param index the index in this Series to return a value for * * @example * ```typescript * import {Series} from "@rapidsai/cudf"; * * // Series> * Series.new([[1, 2], [3]]).getValue(0) // Series([1, 2]) * * // Series> * Series.new([["foo", "bar"], ["test"]]).getValue(1) // Series(["test"]) * * // Series> * Series.new([[false, true], [true]]).getValue(2) // throws index out of bounds error * ``` */ getValue(index: number): any; /** * @summary Flatten the list elements. */ flatten(memoryResource?: MemoryResource): Series; /** * @summary Flatten the list elements and return a Series of each element's position in * its original list. */ flattenIndices(memoryResource?: MemoryResource): Series; } //# sourceMappingURL=list.d.ts.map