Skip to main content

Module datatable

Module datatable 

Source

Re-exports§

pub use crate::column_types::dtype_label;

Structs§

CellHit
What a click on the table lands on: the row on screen, counted from the top (none on the header), and the column (none on the rail or the row numbers).
CollectRequest
Parameters for a background buffer load. Produced by prepare_async_collect().
CollectResult
Result of a background buffer load, made by FillPlan::fit on the worker and installed as it is by apply_async_collect().
DataTable
DataTableState
DatasetAtOpen
The footers’ account of a dataset of many files.
ExportFrame
The rows an export writes. See DataTableState::export_frame.
FillPlan
What the worker that reads a fill needs to make it the buffer: the rows on hand it runs on from or up to, the view, and the caps, as they were when it was planned.
FootersFound
What reading every footer turned up, and everything built from it that the dataset has to be given together — the schema and the scans that read at that schema.
InspectField
One field the row inspector lists: a column of the frame on screen.
InspectRow
The selected row as the buffer holds it; see DataTableState::inspect_row.
OpenFacts
What an open learned about a dataset besides its frame and schema: given to the state once, by DataTableState::with_open, so the count, the row groups, the files and the notes all describe the same open. Each field’s default means the open did not find it.
PivotJob
A pivot of the view as it was when planned, to be read off the UI thread.
RemoteFiles
A dataset of many files, and how to read only some of them: a remote one, or a local Hive directory once every footer is known.
RemoteRead
How a remote dataset reads some of its files, as the pass behind an open found them.
Sampled
A view’s sample: the step between the source and the query. The view’s frames scan Self::frame, the chunks kept so far, which grows as the draw goes on.
Typing
The columns a read gave a type, the frame before it did, and its notes.
ViewRollback
The view as it stood before a query or view replaced it: a checkpoint. A query plans without reading anything and can still fail once it runs — a value that will not cast — and then the table goes back to this, rows and all, rather than keep a frame that fails on every scroll. Frames and buffers are shared, not copied.

Enums§

DrillRow
The row a drill into a group reads, from DataTableState::drill_row.
NullKind
What a null means where the files of a dataset differ.

Constants§

DEFAULT_MAX_BUFFERED_ROWS
Rows the display buffer may hold when performance.max_buffered_rows is not set. Also the window a remote scan buffers when the cap is switched off.
PIVOT_COLUMN_LIMIT
The most columns a pivot may make. Past it the table, the schema and every view of them slow to a crawl; a pivot on a column with this many values is almost always a mistake (an id or a timestamp picked for Columns).

Type Aliases§

DrawnColumns
Each column drawn: its cells across, [from, to), and its name.
FileCounter
Counts the rows in each row group of every file of a dataset. Blocks.
FileScan
Builds a scan of some of a dataset’s files, as the full scan reads them, with the columns named in the second argument read as text from every file rather than as the type most rows have.
FootersJoin
Reads every footer of a dataset that opened from a couple of them, and returns what they say. None when they could not be read, in which case the dataset stays as it opened. Blocks, and counts itself off against the progress it is given.