stream

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConcurrencyFunc

func BuildConcurrencyFunc(fieldCall *FieldCall) error

func BuildSingleThreadFunc

func BuildSingleThreadFunc(fieldCall *FieldCall) error

Types

type BuilderPool

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

func NewBuilderPool

func NewBuilderPool() *BuilderPool

func (*BuilderPool) Get

func (p *BuilderPool) Get() *StringBuilder

func (*BuilderPool) Len

func (p *BuilderPool) Len() int64

func (*BuilderPool) Put

func (p *BuilderPool) Put(r *StringBuilder)

func (*BuilderPool) Size

func (p *BuilderPool) Size() int64

type FieldCall

type FieldCall struct {
	Name             string
	Alias            string
	Call             string
	InFieldType      int32
	OutFieldType     int32
	ConcurrencyFunc  func(*float64, float64) float64
	SingleThreadFunc func(float64, float64) float64
}

func NewFieldCall

func NewFieldCall(inFieldType, outFieldType int32, name, alias, call string, concurrency bool) (*FieldCall, error)

type FieldCalls

type FieldCalls []*FieldCall

func (FieldCalls) Len

func (f FieldCalls) Len() int

func (FieldCalls) Less

func (f FieldCalls) Less(i, j int) bool

func (FieldCalls) Swap

func (f FieldCalls) Swap(i, j int)

type StringBuilder

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

func (*StringBuilder) AppendByte

func (b *StringBuilder) AppendByte(c byte)

func (*StringBuilder) AppendString

func (b *StringBuilder) AppendString(s string)

func (*StringBuilder) NewString

func (b *StringBuilder) NewString() string

func (*StringBuilder) Reset

func (b *StringBuilder) Reset()

func (*StringBuilder) String

func (b *StringBuilder) String() string

Jump to

Keyboard shortcuts

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