Documentation ¶
Index ¶
- func AddAggregates(table *Table, rAggs reflect.Value)
- func AddDimensions(table *Table, rDims reflect.Value)
- func VisitAggregates(wrapper reflect.Value, ...)
- func VisitDimensions(wrapper reflect.Value, ...)
- func VisitWrapper(wrapper reflect.Value, ...)
- type AggregateColumn
- type Column
- type CountCol
- type DefaultCol
- type Executor
- func (e *Executor) CreateBaseTable()
- func (e *Executor) CreateForeignTable(serverName string)
- func (e *Executor) CreateForeignTableView(serverNames []string, selfServerName string)
- func (e *Executor) DropAllTables()
- func (e *Executor) DropForeignTable(serverName string)
- func (e *Executor) DropForeignTableView()
- func (e *Executor) DropPartition(p cube.Partition)
- func (e *Executor) Exec(sql string, args ...interface{}) driver.Result
- func (e *Executor) ExecErr(sql string, args ...interface{}) (driver.Result, error)
- func (e *Executor) UpsertCube(p cube.Partition, c cube.Cuber)
- func (e *Executor) UpsertCubes(p cube.Partition, c []cube.Cuber)
- type HllCol
- type IntCol
- type Partition
- type StringCol
- type Table
- func (t *Table) AddAgg(c AggregateColumn)
- func (t *Table) AddDim(c Column)
- func (t *Table) BaseTableName() string
- func (t *Table) ColumnDefinitionsSql() string
- func (t *Table) CopyDataFull(c cube.Cuber) []byte
- func (t *Table) CopyDataLine(dims cube.Dimensions, aggs cube.Aggregates) string
- func (t *Table) CopyTableSql(p Partition) string
- func (t *Table) CreateForeignTableSql(serverName string) string
- func (t *Table) CreateForeignTableViewSql(serverNames []string, selfServerName string) string
- func (t *Table) CreatePartitionTableSql(p Partition) string
- func (t *Table) CreateTableNameSql(temp bool, name string) string
- func (t *Table) CreateTableSql(temp bool) string
- func (t *Table) CreateTemporaryCopyTableSql(p Partition) string
- func (t *Table) DropForeignTableSql(serverName string) string
- func (t *Table) DropForeignTableViewSql() string
- func (t *Table) DropPartitionTableSql(p Partition) string
- func (t *Table) DropTableSql() string
- func (t *Table) ForeignTableName(serverName string) string
- func (t *Table) ForeignTablesViewName() string
- func (t *Table) GetOnePkColSql(intoTableName string) string
- func (t *Table) GetTemporaryCopyTableName(p Partition) string
- func (t *Table) ListColumnsSql() string
- func (t *Table) MergeCopySql(p Partition) string
- func (t *Table) PrimaryKeyJoinConstraintsSql(intoTableName string, updateTableName string) string
- func (t *Table) PrimaryKeyListSql(intoTableName string) string
- func (t *Table) PrimaryKeySql() string
- func (t *Table) SelectFromTableSql(where *string, limit *string, offset *string) string
- func (t *Table) SetTimeCol(c Column)
- func (t *Table) UpdateAggregateSql(intoTableName string, updateTableName string) string
- type TimeCol
- type TimePartition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAggregates ¶
func AddDimensions ¶
func VisitAggregates ¶
func VisitDimensions ¶
func VisitWrapper ¶
Types ¶
type AggregateColumn ¶
type DefaultCol ¶
type DefaultCol struct {
// contains filtered or unexported fields
}
func NewDefaultCol ¶
func NewDefaultCol(name string) *DefaultCol
func (*DefaultCol) Name ¶
func (c *DefaultCol) Name() string
func (*DefaultCol) PrintFormat ¶
func (c *DefaultCol) PrintFormat() string
func (*DefaultCol) PrintInterface ¶
func (c *DefaultCol) PrintInterface(in interface{}) interface{}
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewUpsertOp ¶
func NewUpsertOp(dbconnect string, tableName string, cd cube.CubeDescriber) (stream.Operator, stream.ProcessedNotifier, *Executor)
func (*Executor) CreateBaseTable ¶
func (e *Executor) CreateBaseTable()
func (*Executor) CreateForeignTable ¶
func (*Executor) CreateForeignTableView ¶
func (*Executor) DropAllTables ¶
func (e *Executor) DropAllTables()
func (*Executor) DropForeignTable ¶
func (*Executor) DropForeignTableView ¶
func (e *Executor) DropForeignTableView()
func (*Executor) DropPartition ¶
type HllCol ¶
type HllCol struct { *DefaultCol // contains filtered or unexported fields }
HLL code
func (*HllCol) PrintInterface ¶
func (c *HllCol) PrintInterface(in interface{}) interface{}
This guy is how the value is supposed to be printed out (for a COPY command to PG).
type IntCol ¶
type IntCol struct { *DefaultCol // contains filtered or unexported fields }
type StringCol ¶
type StringCol struct {
*DefaultCol
}
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) AddAgg ¶
func (t *Table) AddAgg(c AggregateColumn)
func (*Table) BaseTableName ¶
func (*Table) ColumnDefinitionsSql ¶
func (*Table) CopyDataLine ¶
func (t *Table) CopyDataLine(dims cube.Dimensions, aggs cube.Aggregates) string
func (*Table) CopyTableSql ¶
func (*Table) CreateForeignTableSql ¶
func (*Table) CreateForeignTableViewSql ¶
func (*Table) CreatePartitionTableSql ¶
func (*Table) CreateTableNameSql ¶
func (*Table) CreateTableSql ¶
func (*Table) CreateTemporaryCopyTableSql ¶
func (*Table) DropForeignTableSql ¶
func (*Table) DropForeignTableViewSql ¶
func (*Table) DropPartitionTableSql ¶
func (*Table) DropTableSql ¶
func (*Table) ForeignTableName ¶
func (*Table) ForeignTablesViewName ¶
func (*Table) GetOnePkColSql ¶
func (*Table) GetTemporaryCopyTableName ¶
func (*Table) ListColumnsSql ¶
func (*Table) MergeCopySql ¶
func (*Table) PrimaryKeyJoinConstraintsSql ¶
func (*Table) PrimaryKeyListSql ¶
func (*Table) PrimaryKeySql ¶
func (*Table) SelectFromTableSql ¶
func (*Table) SetTimeCol ¶
type TimeCol ¶
type TimeCol struct {
*DefaultCol
}
func (*TimeCol) PrintInterface ¶
func (c *TimeCol) PrintInterface(in interface{}) interface{}
type TimePartition ¶
type TimePartition struct {
*cube.TimePartition
}
func (TimePartition) GetConstraint ¶
func (p TimePartition) GetConstraint(t *Table) string
func (TimePartition) GetTableName ¶
func (p TimePartition) GetTableName(basename string) string
Click to show internal directories.
Click to hide internal directories.