Documentation
¶
Index ¶
- func GenerateJSONFile(columns []string, data [][]interface{}) (string, int, error)
- type Source
- func (s *Source) DeleteAfterSync() error
- func (s *Source) GerMinMaxSplitKey() (int, int, error)
- func (s *Source) GetBatchNum(rows *sql.Rows) (int, int)
- func (s *Source) GetRows(conditionSql string) (*sql.Rows, error)
- func (s *Source) GetSourceReadRowsCount() (int, error)
- func (s *Source) QueryTableData(rows *sql.Rows) ([][]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
- 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) GetBatchNum ¶
GetBatchNum returns the number of batches to be processed
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
Click to show internal directories.
Click to hide internal directories.