Documentation
¶
Index ¶
- Constants
- Variables
- func FastFormat(buf *bytes.Buffer, v interface{}) string
- func NewBenchmark(dbName string, opts *LoadingOptions, dataSourceConfig *source.DataSourceConfig) (targets.Benchmark, error)
- func NewTarget() targets.ImplementedTarget
- func TargetSpecificFlags(flagPrefix string, flagSet *pflag.FlagSet)
- type BatchFactory
- type Ctx
- type DbCreator
- type LoadingOptions
- type Serializer
- type Table
Constants ¶
View Source
const ( Insert = '1' CreateSTable = '2' CreateSubTable = '3' Modify = '4' )
View Source
const Size1M = 1 * 1024 * 1024
Variables ¶
View Source
var GlobalTable = sync.Map{}
Functions ¶
func FastFormat ¶
func NewBenchmark ¶
func NewBenchmark(dbName string, opts *LoadingOptions, dataSourceConfig *source.DataSourceConfig) (targets.Benchmark, error)
func NewTarget ¶
func NewTarget() targets.ImplementedTarget
func TargetSpecificFlags ¶
Types ¶
type BatchFactory ¶
type BatchFactory struct {
// contains filtered or unexported fields
}
func NewBatchFactory ¶
func NewBatchFactory() *BatchFactory
func (*BatchFactory) New ¶
func (b *BatchFactory) New() targets.Batch
type DbCreator ¶
type DbCreator struct {
Opts *LoadingOptions
Db *commonpool.Conn
}
func (*DbCreator) RemoveOldDB ¶
type LoadingOptions ¶
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.