Expand description
Contains Row enum that is used to represent record in Rust.
Macros§
- list_
complex_ πaccessor - Macro to generate type-safe get_xxx methods for reference types e.g. get_list, get_map
- list_
primitive_ πaccessor - Macro to generate type-safe get_xxx methods for primitive types, e.g. get_bool, get_short
- map_
list_ πprimitive_ accessor - Macro to generate type-safe get_xxx methods for primitive types, e.g. get_bool, get_short
- nyi π
- Macro as a shortcut to generate βnot yet implementedβ panic error.
- row_
complex_ πaccessor - Macro to generate type-safe get_xxx methods for reference types,
e.g.
get_list
,get_map
. - row_
primitive_ πaccessor - Macro to generate type-safe get_xxx methods for primitive types,
e.g.
get_bool
,get_short
.
Structs§
- List
List
represents a list which contains an array of elements.- Map
Map
represents a map which contains a list of key->value pairs.- MapList π
- Row
Row
represents a nested Parquet record.- RowColumn
Iter RowColumnIter
represents an iterator over column names and values in a Row.
Enums§
- Field
- API to represent a single field in a
Row
.
Traits§
- List
Accessor - Trait for type-safe access of an index for a
List
. Note that the get_XXX methods do not do bound checking. - MapAccessor
- Trait for type-safe access of an index for a
Map
- RowAccessor
- Trait for type-safe convenient access to fields within a Row.
- RowFormatter
- Trait for formatting fields within a Row.
Functions§
- convert_
date_ πto_ string - Helper method to convert Parquet date into a string.
Input
value
is a number of days since the epoch in UTC. Date is displayed in local timezone. - convert_
decimal_ πto_ string - Helper method to convert Parquet decimal into a string.
We assert that
scale >= 0
andprecision > scale
, but this will be enforced when constructing Parquet schema. - convert_
timestamp_ πmicros_ to_ string - Helper method to convert Parquet timestamp into a string.
Input
value
is a number of microseconds since the epoch in UTC. Datetime is displayed in local timezone. - convert_
timestamp_ πmillis_ to_ string - Helper method to convert Parquet timestamp into a string.
Input
value
is a number of milliseconds since the epoch in UTC. Datetime is displayed in local timezone. - convert_
timestamp_ πsecs_ to_ string - Helper method to convert Parquet timestamp into a string.
Input
value
is a number of seconds since the epoch in UTC. Datetime is displayed in local timezone. - make_
list - Constructs a
List
from the list offields
and returns it. - make_
map - Constructs a
Map
from the list ofentries
and returns it.