Sign in

    superbigcup325/colenc/types does not have a README file

    EncodingError

    pub(all) suberror EncodingError {
    Truncated(Int, Int, Int)
    Unsupported(Encoding)
    InvalidCount(Int)
    InvalidBitWidth(Int)
    TypeMismatch(PhysicalType, Encoding)
    Incomplete(Int, Int)
    InvalidIndex(Int, Int)
    InvalidTag(Int)
    }

    EncodingError::message

    fn EncodingError::message(self : EncodingError) -> String

    ColBuf

    pub(all) enum ColBuf {
    Int32s(Array[Int])
    Int64s(Array[Int64])
    Floats(Array[Float])
    Doubles(Array[Double])
    ByteArrays(Array[Bytes])
    Bools(Array[Bool])
    }

    A flat column of values, one variant per physical type.

    ColBuf::physical_type

    fn ColBuf::physical_type(self : ColBuf) -> PhysicalType

    ColBuf::value_count

    fn ColBuf::value_count(self : ColBuf) -> Int

    DictionaryEncoding

    pub(all) struct DictionaryEncoding {
    dictionary : Bytes
    indices : Bytes
    dictionary_size : Int
    bit_width : Int
    }

    A dictionary-encoded column: the distinct values as their page payload, the data page payload (bit-width byte plus hybrid indices), and the size and width a reader needs.

    Encoding

    pub(all) enum Encoding {
    Plain
    Rle
    Dictionary
    DeltaBinaryPacked
    DeltaLength
    DeltaByteArray
    ByteStreamSplit
    Fsst
    }

    EncodingStats

    pub(all) struct EncodingStats {
    value_count : Int
    encoded_bytes : Int
    }

    What an encode reports: how many values went in and how many bytes came out. Compression ratios against the PLAIN baseline are computed from this.

    PhysicalType

    pub(all) enum PhysicalType {
    Int32
    Int64
    Float
    Double
    ByteArray
    Bool
    }

    encoding_name

    fn encoding_name(encoding : Encoding) -> String

    physical_type_name

    fn physical_type_name(ty : PhysicalType) -> String

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io