frame/type
src/frame/type.tur
defn
type-int32
(type-int32 :int)
int32 type tag.
Returns
:int 1
Example
(type-int32) ; => 1
Since: FR0
defn
type-int64
(type-int64 :int)
int64 type tag. Since: FR0
defn
type-float32
(type-float32 :int)
float32 type tag. Since: FR0
defn
type-float64
(type-float64 :int)
float64 type tag. Since: FR0
defn
type-bool
(type-bool :int)
bool type tag (Arrow 1-bit packed). Since: FR0
defn
type-utf8
(type-utf8 :int)
variable-length utf8 string type tag. Since: FR1
defn
type-date32
(type-date32 :int)
days-since-epoch date type tag. Since: FR9
defn
type-timestamp
(type-timestamp :int)
microseconds-since-epoch timestamp tag. Since: FR9
defn
type-null
(type-null :int)
all-null sentinel tag. Since: FR0
defn
type-name
(type-name [t :int] :cstr)
human-readable name for a type tag.
Parameters
| t | type tag (e.g. (type-int32)) |
Returns
:cstr "int32" / "int64" / "float32" / ... / "unknown"
Example
(type-name (type-int32)) ; => "int32"
Since: FR0
defn
type-arrow-fmt
(type-arrow-fmt [t :int] :cstr)
Arrow C Data Interface format string for a type tag.
Since: FR0
defn
type-size
(type-size [t :int] :int)
byte size of one element for a fixed-width type.
Since: FR0
defn
type-numeric?
(type-numeric? [t :int] :bool)
true if the type tag is a numeric primitive
defn
type-variable-length?
(type-variable-length? [t :int] :bool)
true if the type tag is variable-length (utf8). Since: FR0