import { Int32Buffer, Int64Buffer } from '@rapidsai/cuda'; import { MemoryResource } from '@rapidsai/rmm'; import { Series } from '../series'; import { Timestamp, TimestampDay, TimestampMicrosecond, TimestampMillisecond, TimestampNanosecond, TimestampSecond, Utf8String } from '../types/dtypes'; export declare abstract class TimestampSeries extends Series { /** @ignore */ _castAsString(memoryResource?: MemoryResource): Series; /** @ignore */ _castAsTimeStampDay(memoryResource?: MemoryResource): Series; /** @ignore */ _castAsTimeStampSecond(memoryResource?: MemoryResource): Series; /** @ignore */ _castAsTimeStampMillisecond(memoryResource?: MemoryResource): Series; /** @ignore */ _castAsTimeStampMicrosecond(memoryResource?: MemoryResource): Series; /** @ignore */ _castAsTimeStampNanosecond(memoryResource?: MemoryResource): Series; } export declare class TimestampDaySeries extends TimestampSeries { get data(): Int32Buffer; /** * 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, TimestampDay} from "@rapidsai/cudf"; * * // TimestampDaySeries * const s = Series.new({ * type: new TimestampDay, * data: [new Date('May 13, 2021 16:38:30:100 GMT+00:00')] * }); * * s.getValue(0) // 2021-05-13T00:00:00.000Z * ``` */ getValue(index: number): Date | null; } export declare class TimestampSecondSeries extends TimestampSeries { get data(): Int64Buffer; /** * 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, TimestampSecond} from "@rapidsai/cudf"; * * // TimestampSecondSeries * const s = Series.new({ * type: new TimestampSecond, * data: [new Date('May 13, 2021 16:38:30:100 GMT+00:00')] * }); * * s.getValue(0) // 2021-05-13T16:38:30.000Z * ``` */ getValue(index: number): Date | null; } export declare class TimestampMicrosecondSeries extends TimestampSeries { get data(): Int64Buffer; /** * 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, TimestampMicrosecond} from "@rapidsai/cudf"; * * // TimestampMicrosecondSeries * const s = Series.new({ * type: new TimestampMicrosecond, * data: [new Date('May 13, 2021 16:38:30:100 GMT+00:00')] * }); * * s.getValue(0) // 2021-05-13T16:38:30.100Z * ``` */ getValue(index: number): Date | null; } export declare class TimestampMillisecondSeries extends TimestampSeries { get data(): Int64Buffer; /** * 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, TimestampMillisecond} from "@rapidsai/cudf"; * * // TimestampMillisecondSeries * const s = Series.new({ * type: new TimestampMillisecond, * data: [new Date('May 13, 2021 16:38:30:100 GMT+00:00')] * }); * * s.getValue(0) // 2021-05-13T16:38:30.100Z * ``` */ getValue(index: number): Date | null; } export declare class TimestampNanosecondSeries extends TimestampSeries { get data(): Int64Buffer; /** * 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, TimestampNanosecond} from "@rapidsai/cudf"; * * // TimestampNanosecondSeries * const s = Series.new({ * type: new TimestampNanosecond, * data: [new Date('May 13, 2021 16:38:30:100 GMT+00:00')] * }); * * s.getValue(0) // 2021-05-13T16:38:30.100Z * ``` */ getValue(index: number): Date | null; } //# sourceMappingURL=timestamp.d.ts.map