import { MemoryResource } from '@rapidsai/rmm'; import { Series } from '../series'; import { Struct, Utf8String } from '../types/dtypes'; import { TypeMap } from '../types/mappings'; /** * A Series of structs. */ export declare class StructSeries extends Series> { /** @ignore */ _castAsString(_memoryResource?: MemoryResource): Series; /** * Return a child series by name. * * @param name Name of the Series to return. * * @example * ```typescript * import {Series} = require('@rapidsai/cudf'); * import * as arrow from 'apache-arrow'; * * const vec = arrow.vectorFromArray( * [{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }], * new arrow.Struct([ * arrow.Field.new({ name: 'x', type: new arrow.Int32 }), * arrow.Field.new({ name: 'y', type: new arrow.Int32 }) * ]), * ); * const a = Series.new(vec); * * a.getChild('x') // Int32Series [0, 1, 2] * a.getChild('y') // Int32Series [3, 4, 5] * ``` */ getChild

(name: P): 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([{a: 0, b: 1}]).getValue(0) // {a: 0, b: 1} * ``` */ getValue(index: number): {} | null; } //# sourceMappingURL=struct.d.ts.map