Documentation ¶
Index ¶
- Constants
- Variables
- type GroupReader
- type Reader
- type Row
- type Rows
- type RowsBuffer
- type RowsGroup
- func (rg *RowsGroup) AppendKeyColumns(keys ...[]interface{})
- func (rg *RowsGroup) AppendRowGroupColumns(_rg *RowsGroup)
- func (rg *RowsGroup) AppendRowGroupRows(_rg *RowsGroup)
- func (rg *RowsGroup) AppendRowKeys(keys ...interface{})
- func (rg *RowsGroup) AppendRowVals(vals ...interface{})
- func (rg *RowsGroup) AppendValColumns(cols ...[]interface{})
- func (rg *RowsGroup) ClearColumns()
- func (rg *RowsGroup) ClearRows()
- func (rg *RowsGroup) GetColumnIndex(name string) int
- func (rg *RowsGroup) GetColumnsNumber() int
- func (rg *RowsGroup) GetKeyColumnsNumber() int
- func (rg *RowsGroup) GetKeyString(index int) string
- func (rg *RowsGroup) GetRow(ri int) *Row
- func (rg *RowsGroup) GetRowKeys(ri int) []interface{}
- func (rg *RowsGroup) GetRowVals(ri int) []interface{}
- func (rg *RowsGroup) GetRowsNumber() int
- func (rg *RowsGroup) Read() (*Row, error)
- func (rg *RowsGroup) ResetIndex()
- func (rg *RowsGroup) SetColumn(index int, col []interface{})
- func (rg *RowsGroup) Write(r *Row)
Constants ¶
View Source
const RowsBufferSize = 10000
Variables ¶
View Source
var Pool *sync.Pool
Functions ¶
This section is empty.
Types ¶
type GroupReader ¶
type Row ¶
type Row struct { Keys []interface{} Vals []interface{} }
func (*Row) AppendKeys ¶
func (*Row) AppendVals ¶
func (*Row) GetKeyString ¶
type RowsBuffer ¶
type RowsBuffer struct { sync.Mutex MD *metadata.Metadata BufferSize int RowsNumber int Index int ValueBuffers [][]interface{} ValueNilFlags [][]interface{} //bool KeyBuffers [][]interface{} KeyNilFlags [][]interface{} //bool Reader io.Reader Writer io.Writer }
func NewRowsBuffer ¶
func (*RowsBuffer) ClearValues ¶
func (rb *RowsBuffer) ClearValues()
func (*RowsBuffer) Flush ¶
func (rb *RowsBuffer) Flush() error
func (*RowsBuffer) Read ¶
func (rb *RowsBuffer) Read() (*RowsGroup, error)
func (*RowsBuffer) ReadRow ¶
func (rb *RowsBuffer) ReadRow() (*Row, error)
func (*RowsBuffer) Write ¶
func (rb *RowsBuffer) Write(rg *RowsGroup) error
func (*RowsBuffer) WriteRow ¶
func (rb *RowsBuffer) WriteRow(rows ...*Row) error
type RowsGroup ¶
type RowsGroup struct { Metadata *metadata.Metadata RowsNumber int Keys [][]interface{} Vals [][]interface{} Index int }
func NewRowsGroup ¶
func (*RowsGroup) AppendKeyColumns ¶
func (rg *RowsGroup) AppendKeyColumns(keys ...[]interface{})
func (*RowsGroup) AppendRowGroupColumns ¶
func (*RowsGroup) AppendRowGroupRows ¶
func (*RowsGroup) AppendRowKeys ¶
func (rg *RowsGroup) AppendRowKeys(keys ...interface{})
func (*RowsGroup) AppendRowVals ¶
func (rg *RowsGroup) AppendRowVals(vals ...interface{})
func (*RowsGroup) AppendValColumns ¶
func (rg *RowsGroup) AppendValColumns(cols ...[]interface{})
func (*RowsGroup) ClearColumns ¶
func (rg *RowsGroup) ClearColumns()
func (*RowsGroup) GetColumnIndex ¶
func (*RowsGroup) GetColumnsNumber ¶
func (*RowsGroup) GetKeyColumnsNumber ¶
func (*RowsGroup) GetKeyString ¶
func (*RowsGroup) GetRowKeys ¶
func (*RowsGroup) GetRowVals ¶
func (*RowsGroup) GetRowsNumber ¶
func (*RowsGroup) ResetIndex ¶
func (rg *RowsGroup) ResetIndex()
Click to show internal directories.
Click to hide internal directories.