Documentation ¶
Index ¶
- func GetConfiguredGenerator(t spansql.Type, col *config.Column) (data.Generator, error)
- func GetDataGeneratorMap(cfg config.Config, s schema.Schema) (map[string]data.GeneratorMap, error)
- func GetDataGeneratorMapForTable(cfg config.Config, t schema.Table) (data.GeneratorMap, error)
- func GetDefaultGeneratorForType(t spansql.Type, cfg data.Config) (data.Generator, error)
- func GetReadGeneratorMap(samples map[string]interface{}, cols []string) (*sample.SampleGenerator, error)
- func SampleTable(cfg *config.Config, ctx context.Context, client *spanner.Client, ...) (map[string]interface{}, error)
- func SetDataConfigFromRange(cpCfg data.Config, r *config.Range)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfiguredGenerator ¶
func GetDataGeneratorMap ¶
func GetDataGeneratorMapForTable ¶
TODO: Check that schema column and config column are compatible types TODO: Check that generator config and column type are compatible types
func GetDefaultGeneratorForType ¶
GetDefaultGeneratorForType will assemble a generator for a spanner column type. If a config is passed, it will us that config when initializing the generator
func GetReadGeneratorMap ¶
func GetReadGeneratorMap(samples map[string]interface{}, cols []string) (*sample.SampleGenerator, error)
func SampleTable ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
package sample is used to sample rows from a table in order to generate point reads
|
package sample is used to sample rows from a table in order to generate point reads |
selector package provides a mechanism for selecting between things
|
selector package provides a mechanism for selecting between things |
Click to show internal directories.
Click to hide internal directories.