ConstantsΒ§
- BLOCK_
CONTINUATION - The continuation token
- BLOCK_
SIZE - The block size of the variable length encoding
- EMPTY_
SENTINEL - Indicates an empty string
- MINI_
BLOCK_ COUNT - The first block is split into
MINI_BLOCK_COUNTmini-blocks - MINI_
BLOCK_ SIZE - The mini block size
- NON_
EMPTY_ SENTINEL - Indicates a non-empty string
- NULL_
VALUE_ SENTINEL - Indicates a Null value (for DataType::Null)
FunctionsΒ§
- decode_
binary - Decodes a binary array from
rowswith the providedoptions - decode_
binary_ view - Decodes a binary view array from
rowswith the providedoptions - decode_
binary_ πview_ inner - decode_
blocks - Decodes a single block of data
The
ffunction accepts a slice of the decoded data, it may be called multiple times - decode_
null_ value - decode_
string β - Decodes a string array from
rowswith the providedoptions - decode_
string_ βview - Decodes a string view array from
rowswith the providedoptions - decoded_
len π - Returns the number of bytes of encoded data
- encode
- Variable length values are encoded as
- encode_
blocks π - Writes
valinSIZEblocks with the appropriate continuation tokens - encode_
empty - encode_
generic_ πbyte_ array - Calls
encodewith optimized iterator for generic byte arrays - encode_
null - encode_
null_ value - Ensure
NullArrays donβt get encoded as empty lists which can lose their length - encode_
one - non_
null_ πpadded_ length - Returns the padded length of the encoded length of the given length
- padded_
length - Returns the padded length of the encoded length of the given length