Documentation
¶
Index ¶
- func GenerateJSONFile(columns []string, data [][]interface{}) (string, int, error)
- 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(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 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.