Documentation ¶
Index ¶
- Constants
- Variables
- func Init()
- type ColumnInfo
- type ColumnType
- type DataHandleStatus
- type SimpleTableDataHandle
- func (tds *SimpleTableDataHandle) Cols() int
- func (tds *SimpleTableDataHandle) GetData(rowId int, colId int) []byte
- func (tds *SimpleTableDataHandle) GetStatus() DataHandleStatus
- func (tds *SimpleTableDataHandle) Load(tableName string, columns []int) error
- func (tds *SimpleTableDataHandle) Rows() int
- func (tds *SimpleTableDataHandle) SetStatus(status DataHandleStatus)
- type TableDataHandle
Constants ¶
View Source
const RowCount int = 1000000
Variables ¶
View Source
var HashMap = make(map[string][][][]byte)
Hacky mock for a table in memory
View Source
var QueryMap = make(map[string]TableDataHandle)
View Source
var SchemaMap = make(map[string]map[string]*ColumnInfo)
Functions ¶
Types ¶
type ColumnInfo ¶
type ColumnInfo struct { Index int Typ ColumnType }
type DataHandleStatus ¶
type DataHandleStatus int
const ( DataHandleStatus_NotReady DataHandleStatus = iota DataHandleStatus_Loading DataHandleStatus_Ready DataHandleStatus_Error )
type SimpleTableDataHandle ¶
type SimpleTableDataHandle struct { Status DataHandleStatus DataSet [][][]byte }
func NewSimpleTableDataHandle ¶
func NewSimpleTableDataHandle() *SimpleTableDataHandle
func (*SimpleTableDataHandle) Cols ¶
func (tds *SimpleTableDataHandle) Cols() int
func (*SimpleTableDataHandle) GetData ¶
func (tds *SimpleTableDataHandle) GetData(rowId int, colId int) []byte
func (*SimpleTableDataHandle) GetStatus ¶
func (tds *SimpleTableDataHandle) GetStatus() DataHandleStatus
func (*SimpleTableDataHandle) Load ¶
func (tds *SimpleTableDataHandle) Load(tableName string, columns []int) error
func (*SimpleTableDataHandle) Rows ¶
func (tds *SimpleTableDataHandle) Rows() int
func (*SimpleTableDataHandle) SetStatus ¶
func (tds *SimpleTableDataHandle) SetStatus(status DataHandleStatus)
type TableDataHandle ¶
type TableDataHandle interface { Load(tableName string, columns []int) error Cols() int Rows() int GetData(rowInd int, colInd int) []byte SetStatus(status DataHandleStatus) GetStatus() DataHandleStatus }
Click to show internal directories.
Click to hide internal directories.