Documentation ¶
Index ¶
- type ColumnIndex
- type DataBlock
- func (block *DataBlock) AggregateSelectionByPlan(fields []string, plan *planners.SelectionPlan) ([]expressions.IExpression, error)
- func (block *DataBlock) Append(blocks ...*DataBlock) error
- func (block *DataBlock) Clone() *DataBlock
- func (block *DataBlock) Close()
- func (block *DataBlock) Column(name string) (*columns.Column, error)
- func (block *DataBlock) ColumnIterator(name string) (*DataBlockColumnIterator, error)
- func (block *DataBlock) ColumnIterators() []*DataBlockColumnIterator
- func (block *DataBlock) Columns() []*columns.Column
- func (block *DataBlock) DataBlockValue(name string) (*DataBlockValue, error)
- func (block *DataBlock) DeepClone() *DataBlock
- func (block *DataBlock) Dump()
- func (block *DataBlock) FilterByPlan(fields []string, plan *planners.FilterPlan) error
- func (block *DataBlock) GroupBySelectionByPlan(plan *planners.SelectionPlan) (*collections.HashMap, error)
- func (block *DataBlock) Info() *DataBlockInfo
- func (block *DataBlock) Limit(offset, limit int) (cutOffset, cutLimit int)
- func (block *DataBlock) MixsIterator(columns []string) (*DataBlockMixsIterator, error)
- func (block *DataBlock) NormalSelectionByPlan(fields []string, plan *planners.SelectionPlan) (*DataBlock, error)
- func (block *DataBlock) NumColumns() int
- func (block *DataBlock) NumRows() int
- func (block *DataBlock) OrderByPlan(fields []string, plan *planners.OrderByPlan) error
- func (block *DataBlock) ProjectionByPlan(plan *planners.MapPlan) (*DataBlock, error)
- func (block *DataBlock) RowIterator() *DataBlockRowIterator
- func (block *DataBlock) SetToLast()
- func (block *DataBlock) Split(chunksize int) ([]*DataBlock, error)
- func (block *DataBlock) TotalBytes() uint64
- func (block *DataBlock) WriteRow(values []datavalues.IDataValue) error
- type DataBlockColumnIterator
- type DataBlockInfo
- type DataBlockMixsIterator
- type DataBlockRowIterator
- type DataBlockValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnIndex ¶
type DataBlock ¶
type DataBlock struct {
// contains filtered or unexported fields
}
DataBlock 表示一个数据块,一个数据块中可能会有多个值,一个值认为是一行数据,合起来称之为一个块
func BuildOneBlockFromExpressions ¶
func BuildOneBlockFromExpressions(exprs []expressions.IExpression) (*DataBlock, error)
func NewDataBlock ¶
func (*DataBlock) AggregateSelectionByPlan ¶
func (block *DataBlock) AggregateSelectionByPlan(fields []string, plan *planners.SelectionPlan) ([]expressions.IExpression, error)
AggregateSelectionByPlan 聚合,杂聚?
func (*DataBlock) ColumnIterator ¶
func (block *DataBlock) ColumnIterator(name string) (*DataBlockColumnIterator, error)
func (*DataBlock) ColumnIterators ¶
func (block *DataBlock) ColumnIterators() []*DataBlockColumnIterator
func (*DataBlock) DataBlockValue ¶
func (block *DataBlock) DataBlockValue(name string) (*DataBlockValue, error)
func (*DataBlock) FilterByPlan ¶
func (block *DataBlock) FilterByPlan(fields []string, plan *planners.FilterPlan) error
func (*DataBlock) GroupBySelectionByPlan ¶
func (block *DataBlock) GroupBySelectionByPlan(plan *planners.SelectionPlan) (*collections.HashMap, error)
func (*DataBlock) Info ¶
func (block *DataBlock) Info() *DataBlockInfo
func (*DataBlock) MixsIterator ¶
func (block *DataBlock) MixsIterator(columns []string) (*DataBlockMixsIterator, error)
func (*DataBlock) NormalSelectionByPlan ¶
func (*DataBlock) NumColumns ¶
func (*DataBlock) OrderByPlan ¶
func (block *DataBlock) OrderByPlan(fields []string, plan *planners.OrderByPlan) error
OrderByPlan 对数据块中的值排序,拍完序会根据limit把多余的值丢弃掉
func (*DataBlock) ProjectionByPlan ¶
ProjectionByPlan 根据投影执行计划裁剪列
func (*DataBlock) RowIterator ¶
func (block *DataBlock) RowIterator() *DataBlockRowIterator
func (*DataBlock) TotalBytes ¶
func (*DataBlock) WriteRow ¶
func (block *DataBlock) WriteRow(values []datavalues.IDataValue) error
type DataBlockColumnIterator ¶
type DataBlockColumnIterator struct {
// contains filtered or unexported fields
}
func (*DataBlockColumnIterator) Column ¶
func (it *DataBlockColumnIterator) Column() *columns.Column
func (*DataBlockColumnIterator) Next ¶
func (it *DataBlockColumnIterator) Next() bool
func (*DataBlockColumnIterator) Value ¶
func (it *DataBlockColumnIterator) Value() datavalues.IDataValue
type DataBlockInfo ¶
DataBlockInfo 数据库块的元信息描述
type DataBlockMixsIterator ¶
type DataBlockMixsIterator struct {
// contains filtered or unexported fields
}
func (*DataBlockMixsIterator) Column ¶
func (it *DataBlockMixsIterator) Column(idx int) *columns.Column
func (*DataBlockMixsIterator) Last ¶
func (it *DataBlockMixsIterator) Last() []datavalues.IDataValue
func (*DataBlockMixsIterator) Next ¶
func (it *DataBlockMixsIterator) Next() bool
func (*DataBlockMixsIterator) Value ¶
func (it *DataBlockMixsIterator) Value() []datavalues.IDataValue
type DataBlockRowIterator ¶
type DataBlockRowIterator struct {
// contains filtered or unexported fields
}
func (*DataBlockRowIterator) Column ¶
func (it *DataBlockRowIterator) Column(idx int) *columns.Column
func (*DataBlockRowIterator) Last ¶
func (it *DataBlockRowIterator) Last() []datavalues.IDataValue
func (*DataBlockRowIterator) Next ¶
func (it *DataBlockRowIterator) Next() bool
func (*DataBlockRowIterator) Value ¶
func (it *DataBlockRowIterator) Value() []datavalues.IDataValue
type DataBlockValue ¶
type DataBlockValue struct {
// contains filtered or unexported fields
}
DataBlockValue 用于表示数据块中的一个值
func NewDataBlockValue ¶
func NewDataBlockValue(col *columns.Column) *DataBlockValue
func (*DataBlockValue) ColumnName ¶
func (v *DataBlockValue) ColumnName() string
func (*DataBlockValue) DeepClone ¶
func (v *DataBlockValue) DeepClone() *DataBlockValue
Source Files ¶
- datablock.go
- datablock_filter.go
- datablock_info.go
- datablock_iterator_column.go
- datablock_iterator_mixs.go
- datablock_iterator_row.go
- datablock_limit.go
- datablock_operator.go
- datablock_orderby.go
- datablock_projection.go
- datablock_selection_aggregate.go
- datablock_selection_groupby.go
- datablock_selection_normal.go
- datablock_value.go
- metrics.go
Click to show internal directories.
Click to hide internal directories.