// NewRegionScatterer creates a region scatterer.
// RegionScatter is used for the `Lightning`, it will scatter the specified regions before import data.
NewRegionScatterer creates a region scatterer.
RegionScatter is used for the `Lightning`, it will scatter the specified regions before import data.
// NewRegionScatterer creates a region scatterer . // RegionScatter is used for the ` Lightning ` it will scatter the specified regions before import data .
func NewRegionScatterer(ctx context.Context, cluster opt.Cluster) *RegionScatterer {
	return &RegionScatterer{
		ctx:            ctx,
		name:           regionScatterName,
		cluster:        cluster,
		ordinaryEngine: newEngineContext(ctx, filter.NewOrdinaryEngineFilter(regionScatterName)),
		specialEngines: make(map[string]engineContext),
	}
}
func NewRegionScatterer ( ctx context . Context , cluster opt . Cluster ) * RegionScatterer { return & RegionScatterer { ctx : ctx , name : regionScatterName , cluster : cluster , ordinaryEngine : newEngineContext ( ctx , filter . NewOrdinaryEngineFilter ( regionScatterName ) ) , specialEngines : make ( map [ string ] engineContext ) , } }
NewRegionScatterer creates a region scatterer.
NewRegionScatterer creates a region scatterer .