Crate tiders_query

Crate tiders_query 

Source
Expand description

§tiders-query

Arrow RecordBatch query engine with row filtering, column projection, and cross-table joins.

This crate operates on BTreeMap<String, RecordBatch> where keys are table names (e.g. “blocks”, “transactions”, “logs”). It supports:

  • Row filtering via Contains (set membership) and StartsWith (prefix matching).
  • Column projection via select_fields.
  • Cross-table joins via Include, which filters rows in one table based on matching column values in another.

Filtering uses xxhash3 for fast hash-table lookups (for sets >= 128 elements) and rayon for parallel execution across tables and selections.

Structs§

Contains
Set membership filter backed by a hash table for fast lookups.
Include
Defines a cross-table join: after filtering the source table, include rows from other_table_name whose other_table_field_names columns match the source table’s field_names columns.
Query
A query definition specifying which rows and columns to return from a set of tables.
StartsWith
Prefix matching filter for binary and string columns.
TableSelection
A single selection rule for one table: column filters (AND-combined) plus cross-table join includes.

Enums§

Filter
A row-level filter applied to a single column.

Functions§

run_query
Executes a query against a set of named tables, returning filtered and projected results.
select_fields
Projects each table to include only the specified columns.