crisol-core 1.3.0

Crisol core: an egui-free data model, themes, metrics, localization, commands, state, and storage.
Documentation
//! The typed, lazy data model shared by tables, viewers, and plots.
//!
//! A [`Dataset`] is columnar: floats, integers, booleans, text, dates, times, and
//! categories, with a validity mask and per-column units/metadata. A [`DataSource`] adds
//! paging, change notification, and cancellation without an async runtime. The query
//! language filters rows, the CSV connector opens delimited files, and the ring and
//! channel sources cover streaming data.
//!
//! ```
//! use crisol_core::data::{Column, Dataset, Query};
//!
//! let data = Dataset::from_columns([
//!     Column::floats("voltage", vec![0.1, 0.4, 0.2]),
//!     Column::ints("cycle", vec![1, 2, 3]),
//! ]);
//! let query = Query::parse("voltage > 0.15").expect("query");
//! assert_eq!(query.matching_rows(&data), [1, 2]);
//! ```

#[cfg(feature = "arrow")]
#[cfg(feature = "arrow")]
mod arrow_export;
#[cfg(feature = "arrow")]
mod arrow_ipc;
mod bounds;
#[cfg(feature = "channel")]
mod channel;
mod column;
#[cfg(feature = "conformance")]
#[cfg_attr(docsrs, doc(cfg(feature = "conformance")))]
pub mod conformance;
#[cfg(feature = "csv")]
mod csv;
mod dataset;
mod lineage;
mod link;
#[cfg(feature = "parquet")]
mod parquet_file;
mod pyramid;
mod quality;
mod query;
mod query_v2;
#[cfg(feature = "ring")]
mod ring;
#[cfg(any(feature = "hdf5", feature = "netcdf", feature = "zarr"))]
pub mod scientific;
mod source;
#[cfg(feature = "sqlite")]
mod sqlite;
mod stream;
mod units;
#[cfg(feature = "workbook")]
mod workbook;

#[cfg(feature = "arrow")]
#[cfg(feature = "arrow")]
pub use arrow_export::{dataset_to_batch, write_arrow_ipc};
#[cfg(feature = "arrow")]
pub use arrow_ipc::{ArrowSource, dataset_from_batch, read_arrow_ipc};
pub use bounds::Bounds;
#[cfg(feature = "channel")]
pub use channel::ChannelSource;
pub use column::{CellValue, Column, ColumnType, ColumnValues, DataValue};
#[cfg(feature = "csv")]
pub use csv::{CsvOptions, CsvSource, parse_csv};
pub use dataset::{ColumnStats, Dataset};
pub use lineage::{Lineage, LineageStep};
pub use link::{LinkHub, LinkMode, LinkSelection};
#[cfg(feature = "polars")]
#[cfg_attr(docsrs, doc(cfg(feature = "polars")))]
pub mod polars;

#[cfg(feature = "parquet")]
pub use parquet_file::{ParquetSource, read_parquet_bytes};
pub use pyramid::{LodTile, MinMaxPyramid};
pub use quality::{DatasetDiff, ValidationIssue, ValidationRule, diff, validate};
pub use query::{BoundQuery, Query, QueryError};
pub use query_v2::{JoinKind, QueryPlan, WindowFunction, join, plan, window, window_column};
#[cfg(feature = "ring")]
pub use ring::RingBuffer;
#[cfg(feature = "hdf5")]
pub use scientific::read_hdf5;
#[cfg(feature = "netcdf")]
pub use scientific::read_netcdf;
#[cfg(feature = "zarr")]
pub use scientific::read_zarr;
#[cfg(feature = "threads")]
pub use source::read_limited;
pub use source::{ColumnSchema, DataError, DataSource, MAX_FILE_BYTES, MemorySource};
#[cfg(feature = "sqlite")]
#[cfg(feature = "threads")]
pub use sqlite::{SqliteSource, read_sqlite};
pub use stream::{StreamMode, StreamingSeries, Trigger};
pub use units::{Unit, UnitError, convert as convert_unit, parse as parse_unit};
#[cfg(feature = "workbook")]
pub use workbook::WorkbookSource;