hybridse::codec

Classes

Types

Name

typedef ::google::protobuf::RepeatedPtrField<::hybridse::type::ColumnDef >

typedef ConstIterator< uint64_t, Row >

Functions

Name

const uint32_t

BitMapSize(uint32_t size)

const std::unordered_map<::hybridse::type::Type, uint8_t > &

uint8_t

GetAddrLength(uint32_t size)

uint32_t

GetBitmapSize(uint32_t column_size)

uint32_t

GetStartOffset(int32_t column_count)

void

FillNullStringOffset(int8_t * buf, uint32_t start, uint32_t addr_length, uint32_t str_idx, uint32_t str_offset)

Attributes

Name

constexpr uint8_t

constexpr uint8_t

constexpr uint8_t

constexpr uint32_t

const std::string

const std::string

const uint32_t

const uint32_t

const uint16_t

Types Documentation

typedef Schema

typedef ::google::protobuf::RepeatedPtrField<::hybridse::type::ColumnDef> hybridse::codec::Schema;

typedef RowIterator

typedef ConstIterator<uint64_t, Row> hybridse::codec::RowIterator;

Functions Documentation

function BitMapSize

const uint32_t BitMapSize(
    uint32_t size
)

function GetTypeSizeMap

const std::unordered_map<::hybridse::type::Type, uint8_t > & GetTypeSizeMap()

function GetAddrLength

inline uint8_t GetAddrLength(
    uint32_t size
)

function GetBitmapSize

inline uint32_t GetBitmapSize(
    uint32_t column_size
)

function GetStartOffset

inline uint32_t GetStartOffset(
    int32_t column_count
)

function FillNullStringOffset

void FillNullStringOffset(
    int8_t * buf,
    uint32_t start,
    uint32_t addr_length,
    uint32_t str_idx,
    uint32_t str_offset
)

Attributes Documentation

variable VERSION_LENGTH

static constexpr uint8_t VERSION_LENGTH = 2;

variable SIZE_LENGTH

static constexpr uint8_t SIZE_LENGTH = 4;

variable HEADER_LENGTH

static constexpr uint8_t HEADER_LENGTH = VERSION_LENGTH + SIZE_LENGTH;

variable UINT24_MAX

static constexpr uint32_t UINT24_MAX = (1 << 24) - 1;

variable NONETOKEN

const std::string NONETOKEN = "!N@U#L$L%";

variable EMPTY_STRING

const std::string EMPTY_STRING = "!@#$%";

variable MAX_ROW_BYTE_SIZE

const uint32_t MAX_ROW_BYTE_SIZE = 1024 * 1024;

variable FIELD_BYTE_SIZE

const uint32_t FIELD_BYTE_SIZE = 3;

variable HEADER_SIZE

const uint16_t HEADER_SIZE = 2;

Last updated