parse

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLoadRampStart = 2

Variables

This section is empty.

Functions

func ProcessInputs added in v0.1.9

func ProcessInputs(inputStr map[string]string, inputNum map[string]int64, input map[string]string, chunkSize int64) []byte

func ProcessOnlineQueryContext added in v0.1.9

func ProcessOnlineQueryContext(useNativeSql bool, staticUnderscoreExprs bool, queryName string, queryNameVersion string, tags []string) *commonv1.OnlineQueryContext

func ProcessOutputs added in v0.1.9

func ProcessOutputs(output []string) []*commonv1.OutputExpr

func ReadJSONFile

func ReadJSONFile(filePath string) []byte

func ReadParquetFile

func ReadParquetFile(featuresFile string, chunkSize int64) ([][]byte, error)

Types

type BufferWriteSeeker added in v0.1.9

type BufferWriteSeeker struct {
	// contains filtered or unexported fields
}

func (*BufferWriteSeeker) Bytes added in v0.1.9

func (b *BufferWriteSeeker) Bytes() []byte

func (*BufferWriteSeeker) Seek added in v0.1.9

func (b *BufferWriteSeeker) Seek(offset int64, whence int) (int64, error)

func (*BufferWriteSeeker) Write added in v0.1.9

func (b *BufferWriteSeeker) Write(p []byte) (n int, err error)

type ConstPacer

type ConstPacer struct {
	RPS      uint64 `json:"rps"`
	Duration string `json:"duration"`
}

type QueryRun

type QueryRun struct {
	Options  []runner.Option
	Duration time.Duration
	Type     string
}

func ParseScheduleFile

func ParseScheduleFile(scheduleFile string, rampDuration time.Duration) []QueryRun

func QueryRateOptions

func QueryRateOptions(rps uint, benchmarkDuration time.Duration, rampDuration time.Duration, totalRequests uint, scheduleFile string) []QueryRun

type RawPipelineStep

type RawPipelineStep struct {
	Type   string           `json:"type"`
	Params *json.RawMessage `json:"params"`
}

type StepPacer

type StepPacer struct {
	StepSize     int64  `json:"step_size"`
	StepStart    uint64 `json:"step_start"`
	Duration     string `json:"duration"`
	StepDuration string `json:"step_duration"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL