Module compat

Source
Expand description

Utilities to adapt readers with different schema.

Structsยง

CompatFields ๐Ÿ”’
Helper to make fields compatible.
CompatPrimaryKey ๐Ÿ”’
Helper to make primary key compatible.
CompatReader
Reader to adapt schema of underlying reader to expected schema.
FlatCompatBatch ๐Ÿ”’
A helper struct to adapt schema of the batch to an expected schema.
FlatCompatPrimaryKey ๐Ÿ”’
Helper to make primary key compatible for flat format.
FlatRewritePrimaryKey ๐Ÿ”’
Helper to rewrite primary key to another encoding for flat format.
PrimaryKeyCompatBatch ๐Ÿ”’
A helper struct to adapt schema of the batch to an expected schema.
RewritePrimaryKey ๐Ÿ”’
Adapter to rewrite primary key.

Enumsยง

CompatBatch ๐Ÿ”’
Helper to adapt schema of the batch to an expected schema.
IndexOrDefault ๐Ÿ”’
Index in source batch or a default value to fill a column.

Functionsยง

has_same_columns_and_pk_encoding ๐Ÿ”’
Returns true if left and right have same columns and primary key encoding.
is_primary_key_same ๐Ÿ”’
Returns true if the actual primary keys is the same as expected.
may_compat_fields ๐Ÿ”’
Creates a CompatFields if needed.
may_compat_primary_key ๐Ÿ”’
Creates a CompatPrimaryKey if needed.
may_rewrite_primary_key ๐Ÿ”’
repeat_vector ๐Ÿ”’
Repeats the vector value to_len times.