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