tuple

package
v0.0.0-...-0601960 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TupleSizeOffsetInLogrecord = 4 // payload size info in Bytes

Variables

This section is empty.

Functions

This section is empty.

Types

type Tuple

type Tuple struct {
	// contains filtered or unexported fields
}

*

  • Tuple format:
  • ---------------------------------------------------------------------
  • | FIXED-SIZE or VARIED-SIZED OFFSET | PAYLOAD OF VARIED-SIZED FIELD |
  • ---------------------------------------------------------------------

func GenTupleForIndexSearch

func GenTupleForIndexSearch(schema_ *schema.Schema, colIndex uint32, keyVal *types.Value) *Tuple

generate tuple obj for hash index search generated tuple filled only specifed column only due to use methods defined on Index interface

func NewTuple

func NewTuple(rid *page.RID, size uint32, data []byte) *Tuple

func NewTupleFromSchema

func NewTupleFromSchema(values []types.Value, schema_ *schema.Schema) *Tuple

NewTupleFromSchema creates a new tuple based on input value

func (*Tuple) Copy

func (t *Tuple) Copy(offset uint32, data []byte)

func (*Tuple) Data

func (t *Tuple) Data() []byte

func (*Tuple) DeserializeFrom

func (tuple_ *Tuple) DeserializeFrom(storage []byte)

func (*Tuple) GetDeepCopy

func (tuple_ *Tuple) GetDeepCopy() *Tuple

func (*Tuple) GetRID

func (t *Tuple) GetRID() *page.RID

func (*Tuple) GetValue

func (t *Tuple) GetValue(schema *schema.Schema, colIndex uint32) types.Value

func (*Tuple) GetValueInBytes

func (t *Tuple) GetValueInBytes(schema *schema.Schema, colIndex uint32) []byte

func (*Tuple) SerializeTo

func (tuple_ *Tuple) SerializeTo(storage []byte)

func (*Tuple) SetData

func (t *Tuple) SetData(data []byte)

func (*Tuple) SetRID

func (t *Tuple) SetRID(rid *page.RID)

func (*Tuple) SetSize

func (t *Tuple) SetSize(size uint32)

func (*Tuple) Size

func (t *Tuple) Size() uint32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL