multi

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Copyright 2021 - 2022 Matrix Origin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	MaxSpacePerRowOfLpad  = int64(16 * 1024 * 1024)
	ParameterSourceString = int(0)
	ParameterLengths      = int(1)
	ParameterPadString    = int(2)
)
View Source
const UINT16_MAX = ^uint16(0)
View Source
const UUID_LENGTH uint32 = 36

Variables

View Source
var (
	Decimal128Zero = types.Decimal128_FromInt32(0)
)
View Source
var (
	MaxPad int64
)

Functions

func AddFaultPoint added in v0.6.0

func AddFaultPoint(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func CeilDecimal128 added in v0.6.0

func CeilDecimal128(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func CeilFloat64

func CeilFloat64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func CeilInt64

func CeilInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func CeilUint64

func CeilUint64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func Concat

func Concat(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func Concat_ws

func Concat_ws(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

todo(broccoli): revise this, maybe rewrite this? at least clean up the logic

func CurrentTimestamp

func CurrentTimestamp(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

a general round method is needed for timestamp fsp

func DateAdd

func DateAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func DateStringAdd

func DateStringAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func DateStringSub

func DateStringSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func DateSub

func DateSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func DatetimeAdd

func DatetimeAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func DatetimeSub

func DatetimeSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func DisableFaultInjection added in v0.6.0

func DisableFaultInjection(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func EnableFaultInjection added in v0.6.0

func EnableFaultInjection(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func FloorDecimal128 added in v0.6.0

func FloorDecimal128(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func FloorFloat64

func FloorFloat64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

floor function's evaluation for arguments: [float64]

func FloorInt64

func FloorInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

floor function's evaluation for arguments: [int64]

func FloorUInt64

func FloorUInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

floor function's evaluation for arguments: [uint64]

func FromUnixTimeFloat64

func FromUnixTimeFloat64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func FromUnixTimeFloat64Format added in v0.6.0

func FromUnixTimeFloat64Format(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func FromUnixTimeInt64 added in v0.6.0

func FromUnixTimeInt64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func FromUnixTimeInt64Format added in v0.6.0

func FromUnixTimeInt64Format(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func FromUnixTimeUint64

func FromUnixTimeUint64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func FromUnixTimeUint64Format added in v0.6.0

func FromUnixTimeUint64Format(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func Hash added in v0.6.0

func Hash(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func Lpad

func Lpad(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

First Parameter: source string Second Parameter: length Third Parameter: pad string

func MustTimestamp added in v0.6.0

func MustTimestamp(loc *time.Location, s string) types.Timestamp

func Pi

func Pi(_ []*vector.Vector, _ *process.Process) (*vector.Vector, error)

func RegularInstr added in v0.6.0

func RegularInstr(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func RegularLike added in v0.6.0

func RegularLike(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func RegularReplace added in v0.6.0

func RegularReplace(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func RegularSubstr added in v0.6.0

func RegularSubstr(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func RemoveFaultPoint added in v0.6.0

func RemoveFaultPoint(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func RoundFloat64

func RoundFloat64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func RoundInt64

func RoundInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func RoundUint64

func RoundUint64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func Rpad

func Rpad(origVecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func Serial added in v0.6.0

func Serial(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func SerialWithSomeCols added in v0.6.0

func SerialWithSomeCols(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func Substring

func Substring(inputVecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func TimeAdd added in v0.6.0

func TimeAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func TimeStampAdd

func TimeStampAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func TimeStampDiff added in v0.6.0

func TimeStampDiff(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func TimeStampSub

func TimeStampSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func TriggerFaultPoint added in v0.6.0

func TriggerFaultPoint(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func UTCTimestamp

func UTCTimestamp(_ []*vector.Vector, _ *process.Process) (*vector.Vector, error)

func UUID added in v0.6.0

func UUID(inputVecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func UnixTimestamp

func UnixTimestamp(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func UnixTimestampVarcharToDecimal128 added in v0.6.0

func UnixTimestampVarcharToDecimal128(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func UnixTimestampVarcharToFloat64 added in v0.6.0

func UnixTimestampVarcharToFloat64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)

func UnixTimestampVarcharToInt64 added in v0.6.0

func UnixTimestampVarcharToInt64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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