Documentation
¶
Index ¶
- func GenerateJSONFile(columns []string, data [][]interface{}) (string, int, error)
- type DatabendIngesterStatsData
- type DatabendSourceStatsRecorder
- type Source
- func (s *Source) AdjustBatchSizeAccordingToSourceDbTable() int64
- func (s *Source) DeleteAfterSync() error
- func (s *Source) GetAllSourceReadRowsCount() (int, error)
- func (s *Source) GetDatabasesAccordingToSourceDbRegex(sourceDatabasePattern string) ([]string, error)
- func (s *Source) GetDbTablesAccordingToSourceDbTables() (map[string][]string, error)
- func (s *Source) GetMinMaxSplitKey() (int64, int64, error)
- func (s *Source) GetMinMaxTimeSplitKey() (string, string, error)
- func (s *Source) GetSourceReadRowsCount(table, db string) (int, error)
- func (s *Source) GetTablesAccordingToSourceTableRegex(sourceTablePattern string, databases []string) (map[string][]string, error)
- func (s *Source) QueryTableData(threadNum int, conditionSql string) ([][]interface{}, []string, error)
- func (s *Source) SlimCondition(minSplitKey, maxSplitKey int64) [][]int64
- func (s *Source) SplitCondition(minSplitKey, maxSplitKey int64) []string
- func (s *Source) SplitConditionAccordingMaxGoRoutine(minSplitKey, maxSplitKey, allMax int64) <-chan 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) AdjustBatchSizeAccordingToSourceDbTable ¶ added in v0.1.7
AdjustBatchSizeAccordingToSourceDbTable has a concept called s, s = (maxKey - minKey) / sourceTableRowCount if s == 1 it means the data is uniform in the table, if s is much bigger than 1, it means the data is not uniform in the table
func (*Source) DeleteAfterSync ¶
func (*Source) GetAllSourceReadRowsCount ¶ added in v0.1.5
func (*Source) GetDatabasesAccordingToSourceDbRegex ¶ added in v0.1.5
func (*Source) GetDbTablesAccordingToSourceDbTables ¶ added in v0.1.5
func (*Source) GetMinMaxSplitKey ¶ added in v0.0.6
func (*Source) GetMinMaxTimeSplitKey ¶ added in v0.0.6
func (*Source) GetSourceReadRowsCount ¶
func (*Source) GetTablesAccordingToSourceTableRegex ¶ added in v0.1.5
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.