hybridse::codec::RowView

#include <fe_row_codec.h>

Summary

Public functions

RowView(const hybridse::codec::Schema & schema, const int8_t * row, uint32_t size)

RowView(const RowView & row_view)

~RowView() =default

Reset(const int8_t * row, uint32_t size)

bool

Reset(const int8_t * row)

bool

Reset(const hybridse::base::RawBuffer & buf)

bool

GetBool(uint32_t idx, bool * val)

int32_t

GetInt32(uint32_t idx, int32_t * val)

int32_t

GetInt64(uint32_t idx, int64_t * val)

int32_t

GetTimestamp(uint32_t idx, int64_t * val)

int32_t

GetInt16(uint32_t idx, int16_t * val)

int32_t

GetFloat(uint32_t idx, float * val)

int32_t

GetDouble(uint32_t idx, double * val)

int32_t

GetString(uint32_t idx, const char ** val, uint32_t * length)

int32_t

GetDate(uint32_t idx, int32_t * year, int32_t * month, int32_t * day)

int32_t

GetDate(uint32_t idx, int32_t * date)

int32_t

GetBoolUnsafe(uint32_t idx)

bool

GetInt32Unsafe(uint32_t idx)

int32_t

GetInt64Unsafe(uint32_t idx)

int64_t

GetTimestampUnsafe(uint32_t idx)

int64_t

GetDateUnsafe(uint32_t idx)

int32_t

GetYearUnsafe(int32_t days)

int32_t

GetMonthUnsafe(int32_t days)

int32_t

GetDayUnsafe(int32_t idx)

int32_t

GetInt16Unsafe(uint32_t idx)

int16_t

GetFloatUnsafe(uint32_t idx)

float

GetDoubleUnsafe(uint32_t idx)

double

GetStringUnsafe(uint32_t idx)

std::string

IsNULL(uint32_t idx)

bool

uint32_t

GetValue(const int8_t * row, uint32_t idx, ::hybridse::type::Type type, void * val) const

int32_t

GetInteger(const int8_t * row, uint32_t idx, ::hybridse::type::Type type, int64_t * val)

int32_t

GetValue(const int8_t * row, uint32_t idx, const char ** val, uint32_t * length) const

int32_t

GetAsString(uint32_t idx)

std::string

std::string

GetPrimaryFieldOffset(uint32_t idx)

int32_t

GetSchema() const

const Schema *

IsNULL(const int8_t * row, uint32_t idx) const

bool

GetSize(const int8_t * row)

uint32_t

Public Functions

function RowView

RowView()

function RowView

RowView(
    const hybridse::codec::Schema & schema,
    const int8_t * row,
    uint32_t size
)

function RowView

explicit RowView(
    const hybridse::codec::Schema & schema
)

function RowView

RowView(
    const RowView & row_view
)

function ~RowView

~RowView() =default

function Reset

bool Reset(
    const int8_t * row,
    uint32_t size
)

function Reset

bool Reset(
    const int8_t * row
)

function Reset

bool Reset(
    const hybridse::base::RawBuffer & buf
)

function GetBool

int32_t GetBool(
    uint32_t idx,
    bool * val
)

function GetInt32

int32_t GetInt32(
    uint32_t idx,
    int32_t * val
)

function GetInt64

int32_t GetInt64(
    uint32_t idx,
    int64_t * val
)

function GetTimestamp

int32_t GetTimestamp(
    uint32_t idx,
    int64_t * val
)

function GetInt16

int32_t GetInt16(
    uint32_t idx,
    int16_t * val
)

function GetFloat

int32_t GetFloat(
    uint32_t idx,
    float * val
)

function GetDouble

int32_t GetDouble(
    uint32_t idx,
    double * val
)

function GetString

int32_t GetString(
    uint32_t idx,
    const char ** val,
    uint32_t * length
)

function GetDate

int32_t GetDate(
    uint32_t idx,
    int32_t * year,
    int32_t * month,
    int32_t * day
)

function GetDate

int32_t GetDate(
    uint32_t idx,
    int32_t * date
)

function GetBoolUnsafe

bool GetBoolUnsafe(
    uint32_t idx
)

function GetInt32Unsafe

int32_t GetInt32Unsafe(
    uint32_t idx
)

function GetInt64Unsafe

int64_t GetInt64Unsafe(
    uint32_t idx
)

function GetTimestampUnsafe

int64_t GetTimestampUnsafe(
    uint32_t idx
)

function GetDateUnsafe

int32_t GetDateUnsafe(
    uint32_t idx
)

function GetYearUnsafe

int32_t GetYearUnsafe(
    int32_t days
)

function GetMonthUnsafe

int32_t GetMonthUnsafe(
    int32_t days
)

function GetDayUnsafe

int32_t GetDayUnsafe(
    int32_t idx
)

function GetInt16Unsafe

int16_t GetInt16Unsafe(
    uint32_t idx
)

function GetFloatUnsafe

float GetFloatUnsafe(
    uint32_t idx
)

function GetDoubleUnsafe

double GetDoubleUnsafe(
    uint32_t idx
)

function GetStringUnsafe

std::string GetStringUnsafe(
    uint32_t idx
)

function IsNULL

inline bool IsNULL(
    uint32_t idx
)

function GetSize

inline uint32_t GetSize()

function GetValue

int32_t GetValue(
    const int8_t * row,
    uint32_t idx,
    ::hybridse::type::Type type,
    void * val
) const

function GetInteger

int32_t GetInteger(
    const int8_t * row,
    uint32_t idx,
    ::hybridse::type::Type type,
    int64_t * val
)

function GetValue

int32_t GetValue(
    const int8_t * row,
    uint32_t idx,
    const char ** val,
    uint32_t * length
) const

function GetAsString

std::string GetAsString(
    uint32_t idx
)

function GetRowString

std::string GetRowString()

function GetPrimaryFieldOffset

int32_t GetPrimaryFieldOffset(
    uint32_t idx
)

function GetSchema

inline const Schema * GetSchema() const

function IsNULL

inline bool IsNULL(
    const int8_t * row,
    uint32_t idx
) const

function GetSize

static inline uint32_t GetSize(
    const int8_t * row
)

Last updated