UNPKG

@punchcard/data-lake

Version:
82 lines 3.85 kB
declare const PT1H_base: import("@punchcard/shape").TypeClass<{ year: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; month: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; day: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; hour: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; }, undefined>; export declare class PT1H extends PT1H_base { } declare const PT1M_base: import("@punchcard/shape").TypeClass<{ year: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; month: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; day: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; hour: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; minute: import("@punchcard/shape").IntegerShape & import("@punchcard/shape").Decorated<import("@punchcard/shape").IntegerShape, import("@punchcard/shape").Maximum<32767, false> & { readonly numberType: "integer"; } & import("@punchcard/shape").Minimum<-32768, false> & { glueType: "smallint"; }>; }, undefined>; export declare class PT1M extends PT1M_base { } export declare namespace Period { /** * Shape of a minutely `Glue.Partition`. */ type PT1H = typeof PT1H; /** * Shape of an hourly `Glue.Partition`. */ type PT1M = typeof PT1M; } /** * Represents a `Glue.Partition` partitioned by time. */ export declare class Period<P> { readonly id: string; readonly schema: P; readonly milliseconds: number; /** * Minutely partitions. */ static readonly PT1M: Period<Period.PT1M>; /** * Hourly partitions. */ static readonly PT1H: Period<Period.PT1H>; constructor(id: string, schema: P, milliseconds: number); } export {}; //# sourceMappingURL=period.d.ts.map