Documentation
¶
Index ¶
- Constants
- Variables
- type IStorageCreator
- type Params
- type Storage
- func (t *Storage) Execute(sql string, isExec bool) (string, error)
- func (t *Storage) GetDistributedSQL() (string, bool)
- func (t *Storage) GetKafkaEngineSQL() (string, bool)
- func (t *Storage) GetMaterializeViewSQL() (string, bool)
- func (t *Storage) GetMergeTreeSQL() (string, bool)
- func (t *Storage) SetParams(req Params)
- type TraceCal
Constants ¶
View Source
const (
// StorageTypeTraceCal Used to store using jaegerJson format otel trace data calculation results
StorageTypeTraceCal = "trace_calculate"
)
Variables ¶
View Source
var (
ErrorStorageType = errors.New("storage type error")
)
Functions ¶
This section is empty.
Types ¶
type IStorageCreator ¶
type IStorageCreator interface { // SetParams Initialization parameter SetParams(Params) // GetDistributedSQL get distribution table sql GetDistributedSQL() (string, bool) // GetMergeTreeSQL get mergeTree table sql GetMergeTreeSQL() (string, bool) // GetKafkaEngineSQL get kafka engine table sql GetKafkaEngineSQL() (string, bool) // GetMaterializeViewSQL get materialized view table sql GetMaterializeViewSQL() (string, bool) // Execute SQL and return the results Execute(string, bool) (string, error) }
func GetTableCreator ¶
func GetTableCreator(storageType string) (IStorageCreator, error)
GetTableCreator Through specific types of logging library access to build table objects, obtain four different SQL statements on the basis of the process to create
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) GetDistributedSQL ¶
func (*Storage) GetKafkaEngineSQL ¶
func (*Storage) GetMaterializeViewSQL ¶
func (*Storage) GetMergeTreeSQL ¶
type TraceCal ¶
type TraceCal struct {
Storage
}
func (*TraceCal) GetDistributedSQL ¶
GetDistributedSQL get distribution table sql
func (*TraceCal) GetKafkaEngineSQL ¶
func (*TraceCal) GetMaterializeViewSQL ¶
func (*TraceCal) GetMergeTreeSQL ¶
Click to show internal directories.
Click to hide internal directories.