Documentation ¶
Index ¶
- type Column
- func (c *Column) FixedLength() uint32
- func (c *Column) GetColumnName() string
- func (c *Column) GetExpr() interface{}
- func (c *Column) GetOffset() uint32
- func (c *Column) GetType() types.TypeID
- func (c *Column) HasIndex() bool
- func (c *Column) IndexHeaderPageId() types.PageID
- func (c *Column) IndexKind() index_constants.IndexKind
- func (c *Column) IsInlined() bool
- func (c *Column) IsLeft() bool
- func (c *Column) SetColumnName(colName string)
- func (c *Column) SetExpr(expr interface{})
- func (c *Column) SetFixedLength(fixedLength uint32)
- func (c *Column) SetHasIndex(hasIndex bool)
- func (c *Column) SetIndexHeaderPageId(pageId types.PageID)
- func (c *Column) SetIndexKind(kind index_constants.IndexKind)
- func (c *Column) SetIsLeft(isLeft bool)
- func (c *Column) SetOffset(offset uint32)
- func (c *Column) SetVariableLength(variableLength uint32)
- func (c *Column) VariableLength() uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func NewColumn ¶
func NewColumn(name string, columnType types.TypeID, hasIndex bool, indexKind index_constants.IndexKind, indexHeaderPageID types.PageID, expr interface{}) *Column
indexHeaderPageID should be types.PageID(-1) if there is no special reason the ID is set when CreateTable is called expr argument should be pointer of subtype of expression.Expression
func (*Column) FixedLength ¶
func (*Column) GetColumnName ¶
func (*Column) GetExpr ¶
func (c *Column) GetExpr() interface{}
returned value should be used with type validation at expression.Expression
func (*Column) IndexHeaderPageId ¶
func (*Column) IndexKind ¶
func (c *Column) IndexKind() index_constants.IndexKind
func (*Column) SetColumnName ¶
func (*Column) SetFixedLength ¶
func (*Column) SetHasIndex ¶
func (*Column) SetIndexHeaderPageId ¶
func (*Column) SetIndexKind ¶
func (c *Column) SetIndexKind(kind index_constants.IndexKind)
func (*Column) SetVariableLength ¶
func (*Column) VariableLength ¶
Click to show internal directories.
Click to hide internal directories.