Documentation ¶
Index ¶
- Constants
- type Bool
- type Int32
- type LSN
- type PageID
- type TxnID
- type TypeID
- type UInt16
- type UInt32
- type UInt64
- type Value
- func (v Value) Add(other *Value) *Value
- func (v Value) CompareEquals(right Value) bool
- func (v Value) CompareGreaterThan(right Value) bool
- func (v Value) CompareGreaterThanOrEqual(right Value) bool
- func (v Value) CompareLessThan(right Value) bool
- func (v Value) CompareLessThanOrEqual(right Value) bool
- func (v Value) CompareNotEquals(right Value) bool
- func (v Value) GetDeepCopy() *Value
- func (v Value) IsInfMax() bool
- func (v Value) IsInfMin() bool
- func (v Value) IsNull() bool
- func (v Value) Max(other *Value) *Value
- func (v Value) Min(other *Value) *Value
- func (v Value) Serialize() []byte
- func (v Value) SerializeOnlyVal() []byte
- func (v Value) SetInfMax() *Value
- func (v Value) SetInfMin() *Value
- func (v Value) SetNull() *Value
- func (v Value) Size() uint32
- func (v Value) Sub(other *Value) *Value
- func (v Value) Swap(other *Value)
- func (v Value) ToBoolean() bool
- func (v Value) ToFloat() float32
- func (v Value) ToIFValue() interface{}
- func (v Value) ToInteger() int32
- func (v Value) ToString() string
- func (v Value) ToVarchar() string
- func (v Value) ValueType() TypeID
Constants ¶
const DeallocatedPageErr = errors.Error("dellocated Page ID is passed.")
const InvalidPageID = PageID(-1)
InvalidPageID represents an invalid page GetPageId
const SizeOfLSN = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LSN ¶
type LSN int32
LSN is the type of the log identifier
func NewLSNFromBytes ¶
NewLSNFromBytes creates a LSN from []byte
type PageID ¶
type PageID int32
PageID is the type of the page identifier
func NewPageIDFromBytes ¶
NewPageIDFromBytes creates a page id from []byte
type TxnID ¶
type TxnID int32
TxnID is the type of the transaction identifier
func NewTxnIDFromBytes ¶
NewPageIDFromBytes creates a page id from []byte
type TypeID ¶
type TypeID int
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
A value is an class that represents a view over SQL data stored in some materialized state. All values have a type and comparison functions, and implement other type-specific functionality.
func NewBoolean ¶
func NewInteger ¶
func NewNull ¶
func NewNull() Value
it can be used only when you can not know value type to be compared or something
func NewValueFromBytes ¶
NewValueFromBytes is used for deserialization
func NewVarchar ¶
func (Value) CompareEquals ¶
func (Value) CompareGreaterThan ¶
func (Value) CompareGreaterThanOrEqual ¶
func (Value) CompareLessThan ¶
func (Value) CompareLessThanOrEqual ¶
func (Value) CompareNotEquals ¶
func (Value) GetDeepCopy ¶
func (Value) SerializeOnlyVal ¶
no length info and isNull info
func (Value) SetNull ¶
note: (need to be) only way to get Value object which has NULL value
a value filed correspoding to value type is initialized to default value