package integer_parameters

import "github.com/substrait-io/substrait-go/v3/types/integer_parameters"

Index

Types

type ConcreteIntParam

type ConcreteIntParam int32

ConcreteIntParam represents a single integer concrete parameter for a concrete type Example: VARCHAR(6) -> 6 is an ConcreteIntParam DECIMAL<P, 0> --> 0 Is an ConcreteIntParam but P not

func (*ConcreteIntParam) IsCompatible

func (m *ConcreteIntParam) IsCompatible(o IntegerParameter) bool

func (*ConcreteIntParam) String

func (m *ConcreteIntParam) String() string

type IntegerParameter

type IntegerParameter interface {
	// IsCompatible is type compatible with other
	// compatible is other can be used in place of this type
	IsCompatible(other IntegerParameter) bool
	fmt.Stringer
}

IntegerParameter represents a parameter type parameter can of concrete (38) or abstract type (P) or another parameterized type like VARCHAR<"L1">

func NewConcreteIntParam

func NewConcreteIntParam(v int32) IntegerParameter

func NewVariableIntParam

func NewVariableIntParam(s string) IntegerParameter

type VariableIntParam

type VariableIntParam string

VariableIntParam represents an integer parameter for a parameterized type Example: VARCHAR(L1) -> L1 is an VariableIntParam DECIMAL<P, 0> --> P Is an VariableIntParam

func (*VariableIntParam) GetAbstractParamName

func (m *VariableIntParam) GetAbstractParamName() string

func (*VariableIntParam) IsCompatible

func (m *VariableIntParam) IsCompatible(o IntegerParameter) bool

func (*VariableIntParam) String

func (m *VariableIntParam) String() string

Source Files

concrete_int_param.go integer_parameter_type.go variable_int_param.go

Version
v3.9.1 (latest)
Published
Apr 7, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
8 hours ago

Tools for package owners.