Skip to content

[JS] Use enums from flatbuffers #39048

@domoritz

Description

@domoritz

arrow/js/src/enum.ts

Lines 159 to 177 in 47dadb0

NONE = 0, /** The default placeholder type */
Null = 1, /** A NULL type having no physical storage */
Int = 2, /** Signed or unsigned 8, 16, 32, or 64-bit little-endian integer */
Float = 3, /** 2, 4, or 8-byte floating point value */
Binary = 4, /** Variable-length bytes (no guarantee of UTF8-ness) */
Utf8 = 5, /** UTF8 variable-length string as List<Char> */
Bool = 6, /** Boolean as 1 bit, LSB bit-packed ordering */
Decimal = 7, /** Precision-and-scale-based decimal type. Storage type depends on the parameters. */
Date = 8, /** int32_t days or int64_t milliseconds since the UNIX epoch */
Time = 9, /** Time as signed 32 or 64-bit integer, representing either seconds, milliseconds, microseconds, or nanoseconds since midnight since midnight */
Timestamp = 10, /** Exact timestamp encoded with int64 since UNIX epoch (Default unit millisecond) */
Interval = 11, /** YEAR_MONTH or DAY_TIME interval in SQL style */
List = 12, /** A list of some logical data type */
Struct = 13, /** Struct of logical types */
Union = 14, /** Union of logical types */
FixedSizeBinary = 15, /** Fixed-size binary. Each value occupies the same number of bytes */
FixedSizeList = 16, /** Fixed-size list. Each value occupies the same number of bytes */
Map = 17, /** Map of named logical types */
Duration = 18, /** Measure of elapsed time in either seconds, milliseconds, microseconds or nanoseconds. */
should extend
export enum Type {
instead of listing things again we already have defined in the flat buffers.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions