Documentation
¶
Index ¶
- func GenerateJSONFile(columns []string, data [][]interface{}) (string, int, error)
- type DatabendIngesterStatsData
- type DatabendSourceStatsRecorder
- type Source
- func (s *Source) DeleteAfterSync() error
- func (s *Source) GetMinMaxSplitKey() (int, int, error)
- func (s *Source) GetMinMaxTimeSplitKey() (string, string, error)
- func (s *Source) GetRowsCountByConditionSql(conditionSql string) (int, error)
- func (s *Source) GetSourceReadRowsCount() (int, error)
- func (s *Source) QueryTableData(threadNum int, conditionSql string) ([][]interface{}, []string, error)
- func (s *Source) SlimCondition(minSplitKey, maxSplitKey int) [][]int
- func (s *Source) SplitCondition(minSplitKey, maxSplitKey int) []string
- func (s *Source) SplitConditionAccordingMaxGoRoutine(minSplitKey, maxSplitKey, allMax int) []string
- func (s *Source) SplitConditionAccordingToTimeSplitKey(minTimeSplitKey, maxTimeSplitKey string) ([]string, error)
- func (s *Source) SplitTimeConditionsByMaxThread(conditions []string, maxThread int) [][]string
- type Sourcer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabendIngesterStatsData ¶ added in v0.1.3
type DatabendSourceStatsRecorder ¶ added in v0.1.3
type DatabendSourceStatsRecorder struct {
// contains filtered or unexported fields
}
func NewDatabendIntesterStatsRecorder ¶ added in v0.1.3
func NewDatabendIntesterStatsRecorder() *DatabendSourceStatsRecorder
func (*DatabendSourceStatsRecorder) RecordMetric ¶ added in v0.1.3
func (stats *DatabendSourceStatsRecorder) RecordMetric(rows int)
func (*DatabendSourceStatsRecorder) Stats ¶ added in v0.1.3
func (stats *DatabendSourceStatsRecorder) Stats(statsWindow time.Duration) DatabendIngesterStatsData
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) DeleteAfterSync ¶
func (*Source) GetMinMaxSplitKey ¶ added in v0.0.6
func (*Source) GetMinMaxTimeSplitKey ¶ added in v0.0.6
func (*Source) GetRowsCountByConditionSql ¶ added in v0.0.6
func (*Source) GetSourceReadRowsCount ¶
func (*Source) QueryTableData ¶
func (*Source) SlimCondition ¶ added in v0.0.4
func (*Source) SplitCondition ¶
func (*Source) SplitConditionAccordingMaxGoRoutine ¶ added in v0.0.4
func (*Source) SplitConditionAccordingToTimeSplitKey ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.