Documentation ¶
Index ¶
Constants ¶
View Source
const ( NilFlag byte = 0 BytesFlag byte = 1 CompactBytesFlag byte = 2 IntFlag byte = 3 UintFlag byte = 4 VarintFlag byte = 8 VaruintFlag byte = 9 )
First byte in the encoded value which specifies the encoding type.
View Source
const CodecVer = 128
CodecVer is the constant number that represent the new row format.
Variables ¶
This section is empty.
Functions ¶
func IsRowKeyWithShardByte ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decodes the row to chunk.Chunk.
func NewDecoder ¶
func NewDecoder(requestColIDs []int64, handleColID int64, tps []*types.FieldType, origDefaults [][]byte, loc *time.Location) (*Decoder, error)
NewDecoder creates a NewDecoder. requestColIDs is the columnIDs to decode. tps is the field types for request columns. origDefault is the original default value in old format, if the column ID is not found in the row, the origDefault will be used.
func (*Decoder) ColumnIsNull ¶
ColumnIsNull returns if the column value is null. Mainly used for count column aggregation.
Click to show internal directories.
Click to hide internal directories.