ssql

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0:  "list",
		1:  "struct",
		2:  "int8",
		3:  "uint8",
		4:  "int16",
		5:  "uint16",
		6:  "int32",
		7:  "uint32",
		8:  "date32",
		9:  "float32",
		10: "int64",
		11: "uint64",
		12: "date64",
		13: "float64",
		14: "bool",
		15: "text",
		16: "null",
	}
	Type_value = map[string]int32{
		"list":    0,
		"struct":  1,
		"int8":    2,
		"uint8":   3,
		"int16":   4,
		"uint16":  5,
		"int32":   6,
		"uint32":  7,
		"date32":  8,
		"float32": 9,
		"int64":   10,
		"uint64":  11,
		"date64":  12,
		"float64": 13,
		"bool":    14,
		"text":    15,
		"null":    16,
	}
)

Enum value maps for Type.

View Source
var (
	Operator_name = map[int32]string{
		0: "EQ",
		1: "NEQ",
		2: "GT",
		3: "GE",
		4: "LT",
		5: "LE",
		6: "BETWEEN",
		7: "CONTAIN",
		8: "EXIST",
		9: "ISNULL",
	}
	Operator_value = map[string]int32{
		"EQ":      0,
		"NEQ":     1,
		"GT":      2,
		"GE":      3,
		"LT":      4,
		"LE":      5,
		"BETWEEN": 6,
		"CONTAIN": 7,
		"EXIST":   8,
		"ISNULL":  9,
	}
)

Enum value maps for Operator.

View Source
var (
	Function_Func_name = map[int32]string{
		0: "AVG",
		1: "SUM",
		2: "MIN",
		3: "MAX",
		4: "COUNT",
		5: "PERCENTILE",
		6: "PARTITION",
	}
	Function_Func_value = map[string]int32{
		"AVG":        0,
		"SUM":        1,
		"MIN":        2,
		"MAX":        3,
		"COUNT":      4,
		"PERCENTILE": 5,
		"PARTITION":  6,
	}
)

Enum value maps for Function_Func.

View Source
var (
	Timestamp_TimeUnit_name = map[int32]string{
		0: "Second",
		1: "Millisecond",
		2: "Microsecond",
		3: "Nanosecond",
	}
	Timestamp_TimeUnit_value = map[string]int32{
		"Second":      0,
		"Millisecond": 1,
		"Microsecond": 2,
		"Nanosecond":  3,
	}
)

Enum value maps for Timestamp_TimeUnit.

View Source
var (
	OrderBy_Direction_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	OrderBy_Direction_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for OrderBy_Direction.

Functions

func Parse

func Parse(query string) (*Statement, []Error)

Types

type Attribute

type Attribute struct {
	Name  string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Group bool      `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty"`
	Func  *Function `protobuf:"bytes,3,opt,name=func,proto3" json:"func,omitempty"`
	//Type type = 4;
	Arrow   *Field `protobuf:"bytes,4,opt,name=arrow,proto3" json:"arrow,omitempty"`
	TupleId uint32 `protobuf:"varint,5,opt,name=tuple_id,json=tupleId,proto3" json:"tuple_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated

func (*Attribute) Descriptor() ([]byte, []int)

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetArrow

func (x *Attribute) GetArrow() *Field

func (*Attribute) GetFunc

func (x *Attribute) GetFunc() *Function

func (*Attribute) GetGroup

func (x *Attribute) GetGroup() bool

func (*Attribute) GetName

func (x *Attribute) GetName() string

func (*Attribute) GetTupleId

func (x *Attribute) GetTupleId() uint32

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

func (x *Attribute) ProtoReflect() protoreflect.Message

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type Aux

type Aux struct {
	LocalOnly           bool     `protobuf:"varint,1,opt,name=local_only,json=localOnly,proto3" json:"local_only,omitempty"`
	TupleCount          uint32   `protobuf:"varint,2,opt,name=tuple_count,json=tupleCount,proto3" json:"tuple_count,omitempty"`
	AggregateAttributes []uint32 `` /* 126-byte string literal not displayed */
	GroupAttributes     []uint32 `protobuf:"varint,4,rep,packed,name=group_attributes,json=groupAttributes,proto3" json:"group_attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*Aux) Descriptor deprecated

func (*Aux) Descriptor() ([]byte, []int)

Deprecated: Use Aux.ProtoReflect.Descriptor instead.

func (*Aux) GetAggregateAttributes

func (x *Aux) GetAggregateAttributes() []uint32

func (*Aux) GetGroupAttributes

func (x *Aux) GetGroupAttributes() []uint32

func (*Aux) GetLocalOnly

func (x *Aux) GetLocalOnly() bool

func (*Aux) GetTupleCount

func (x *Aux) GetTupleCount() uint32

func (*Aux) ProtoMessage

func (*Aux) ProtoMessage()

func (*Aux) ProtoReflect

func (x *Aux) ProtoReflect() protoreflect.Message

func (*Aux) Reset

func (x *Aux) Reset()

func (*Aux) String

func (x *Aux) String() string

type Binary

type Binary struct {
	First  *Operand `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
	Second *Operand `protobuf:"bytes,2,opt,name=second,proto3" json:"second,omitempty"`
	// contains filtered or unexported fields
}

func (*Binary) Descriptor deprecated

func (*Binary) Descriptor() ([]byte, []int)

Deprecated: Use Binary.ProtoReflect.Descriptor instead.

func (*Binary) GetFirst

func (x *Binary) GetFirst() *Operand

func (*Binary) GetSecond

func (x *Binary) GetSecond() *Operand

func (*Binary) ProtoMessage

func (*Binary) ProtoMessage()

func (*Binary) ProtoReflect

func (x *Binary) ProtoReflect() protoreflect.Message

func (*Binary) Reset

func (x *Binary) Reset()

func (*Binary) String

func (x *Binary) String() string

type Error

type Error struct {
	Line    int    `json:"line"`
	Column  int    `json:"column"`
	Message string `json:"message"`
}

type Expr

type Expr struct {

	// Types that are assignable to Field:
	//	*Expr_Or
	//	*Expr_Tuple
	Field isExpr_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

func (*Expr) Descriptor deprecated

func (*Expr) Descriptor() ([]byte, []int)

Deprecated: Use Expr.ProtoReflect.Descriptor instead.

func (*Expr) GetField

func (m *Expr) GetField() isExpr_Field

func (*Expr) GetOr

func (x *Expr) GetOr() *OR

func (*Expr) GetTuple

func (x *Expr) GetTuple() *Tuple

func (*Expr) ProtoMessage

func (*Expr) ProtoMessage()

func (*Expr) ProtoReflect

func (x *Expr) ProtoReflect() protoreflect.Message

func (*Expr) Reset

func (x *Expr) Reset()

func (*Expr) String

func (x *Expr) String() string

type Expr_Or

type Expr_Or struct {
	Or *OR `protobuf:"bytes,1,opt,name=or,proto3,oneof"`
}

type Expr_Tuple

type Expr_Tuple struct {
	Tuple *Tuple `protobuf:"bytes,2,opt,name=tuple,proto3,oneof"`
}

type Field

type Field struct {
	Unicode   uint32     `protobuf:"varint,1,opt,name=unicode,proto3" json:"unicode,omitempty"`
	Name      string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type      Type       `protobuf:"varint,3,opt,name=type,proto3,enum=Type" json:"type,omitempty"`
	Timestamp *Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Types that are assignable to Nested:
	//	*Field_Struct_
	//	*Field_List
	Nested isField_Nested `protobuf_oneof:"nested"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetList

func (x *Field) GetList() *Field

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetNested

func (m *Field) GetNested() isField_Nested

func (*Field) GetStruct

func (x *Field) GetStruct() *Field_Struct

func (*Field) GetTimestamp

func (x *Field) GetTimestamp() *Timestamp

func (*Field) GetType

func (x *Field) GetType() Type

func (*Field) GetUnicode

func (x *Field) GetUnicode() uint32

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

func (x *Field) ProtoReflect() protoreflect.Message

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type Field_List

type Field_List struct {
	List *Field `protobuf:"bytes,6,opt,name=list,proto3,oneof"`
}

type Field_Struct

type Field_Struct struct {
	Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*Field_Struct) Descriptor deprecated

func (*Field_Struct) Descriptor() ([]byte, []int)

Deprecated: Use Field_Struct.ProtoReflect.Descriptor instead.

func (*Field_Struct) GetFields

func (x *Field_Struct) GetFields() []*Field

func (*Field_Struct) ProtoMessage

func (*Field_Struct) ProtoMessage()

func (*Field_Struct) ProtoReflect

func (x *Field_Struct) ProtoReflect() protoreflect.Message

func (*Field_Struct) Reset

func (x *Field_Struct) Reset()

func (*Field_Struct) String

func (x *Field_Struct) String() string

type Field_Struct_

type Field_Struct_ struct {
	Struct *Field_Struct `protobuf:"bytes,5,opt,name=struct,proto3,oneof"`
}

type Function

type Function struct {
	Name      Function_Func `protobuf:"varint,1,opt,name=name,proto3,enum=Function_Func" json:"name,omitempty"`
	Parameter []*Parameter  `protobuf:"bytes,2,rep,name=parameter,proto3" json:"parameter,omitempty"`
	// contains filtered or unexported fields
}

func (*Function) Descriptor deprecated

func (*Function) Descriptor() ([]byte, []int)

Deprecated: Use Function.ProtoReflect.Descriptor instead.

func (*Function) GetName

func (x *Function) GetName() Function_Func

func (*Function) GetParameter

func (x *Function) GetParameter() []*Parameter

func (*Function) ProtoMessage

func (*Function) ProtoMessage()

func (*Function) ProtoReflect

func (x *Function) ProtoReflect() protoreflect.Message

func (*Function) Reset

func (x *Function) Reset()

func (*Function) String

func (x *Function) String() string

type Function_Func

type Function_Func int32
const (
	Function_AVG        Function_Func = 0
	Function_SUM        Function_Func = 1
	Function_MIN        Function_Func = 2
	Function_MAX        Function_Func = 3
	Function_COUNT      Function_Func = 4
	Function_PERCENTILE Function_Func = 5
	Function_PARTITION  Function_Func = 6
)

func (Function_Func) Descriptor

func (Function_Func) Enum

func (x Function_Func) Enum() *Function_Func

func (Function_Func) EnumDescriptor deprecated

func (Function_Func) EnumDescriptor() ([]byte, []int)

Deprecated: Use Function_Func.Descriptor instead.

func (Function_Func) Number

func (Function_Func) String

func (x Function_Func) String() string

func (Function_Func) Type

type List

type List struct {
	Type     Type       `protobuf:"varint,1,opt,name=type,proto3,enum=Type" json:"type,omitempty"`
	Operands []*Operand `protobuf:"bytes,2,rep,name=operands,proto3" json:"operands,omitempty"`
	// contains filtered or unexported fields
}

func (*List) Descriptor deprecated

func (*List) Descriptor() ([]byte, []int)

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetOperands

func (x *List) GetOperands() []*Operand

func (*List) GetType

func (x *List) GetType() Type

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

func (x *List) ProtoReflect() protoreflect.Message

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

type Nested

type Nested struct {
	Expr []*Expr `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*Nested) Descriptor deprecated

func (*Nested) Descriptor() ([]byte, []int)

Deprecated: Use Nested.ProtoReflect.Descriptor instead.

func (*Nested) GetExpr

func (x *Nested) GetExpr() []*Expr

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) ProtoReflect

func (x *Nested) ProtoReflect() protoreflect.Message

func (*Nested) Reset

func (x *Nested) Reset()

func (*Nested) String

func (x *Nested) String() string

type OR

type OR struct {
	Expr []*Expr `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*OR) Descriptor deprecated

func (*OR) Descriptor() ([]byte, []int)

Deprecated: Use OR.ProtoReflect.Descriptor instead.

func (*OR) GetExpr

func (x *OR) GetExpr() []*Expr

func (*OR) ProtoMessage

func (*OR) ProtoMessage()

func (*OR) ProtoReflect

func (x *OR) ProtoReflect() protoreflect.Message

func (*OR) Reset

func (x *OR) Reset()

func (*OR) String

func (x *OR) String() string

type Operand

type Operand struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// Types that are assignable to Value:
	//	*Operand_Int8
	//	*Operand_Uint8
	//	*Operand_Int16
	//	*Operand_Uint16
	//	*Operand_Int32
	//	*Operand_Date32
	//	*Operand_Uint32
	//	*Operand_Float32
	//	*Operand_Int64
	//	*Operand_Date64
	//	*Operand_Uint64
	//	*Operand_Float64
	//	*Operand_Bool
	//	*Operand_Text
	//	*Operand_Null
	Value isOperand_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Operand) Descriptor deprecated

func (*Operand) Descriptor() ([]byte, []int)

Deprecated: Use Operand.ProtoReflect.Descriptor instead.

func (*Operand) GetBool

func (x *Operand) GetBool() bool

func (*Operand) GetContent

func (x *Operand) GetContent() string

func (*Operand) GetDate32

func (x *Operand) GetDate32() int32

func (*Operand) GetDate64

func (x *Operand) GetDate64() int64

func (*Operand) GetFloat32

func (x *Operand) GetFloat32() float32

func (*Operand) GetFloat64

func (x *Operand) GetFloat64() float64

func (*Operand) GetInt16

func (x *Operand) GetInt16() int32

func (*Operand) GetInt32

func (x *Operand) GetInt32() int32

func (*Operand) GetInt64

func (x *Operand) GetInt64() int64

func (*Operand) GetInt8

func (x *Operand) GetInt8() int32

func (*Operand) GetNull

func (x *Operand) GetNull() bool

func (*Operand) GetText

func (x *Operand) GetText() bool

func (*Operand) GetUint16

func (x *Operand) GetUint16() uint32

func (*Operand) GetUint32

func (x *Operand) GetUint32() uint32

func (*Operand) GetUint64

func (x *Operand) GetUint64() uint64

func (*Operand) GetUint8

func (x *Operand) GetUint8() uint32

func (*Operand) GetValue

func (m *Operand) GetValue() isOperand_Value

func (*Operand) ProtoMessage

func (*Operand) ProtoMessage()

func (*Operand) ProtoReflect

func (x *Operand) ProtoReflect() protoreflect.Message

func (*Operand) Reset

func (x *Operand) Reset()

func (*Operand) String

func (x *Operand) String() string

type Operand_Bool

type Operand_Bool struct {
	Bool bool `protobuf:"varint,14,opt,name=bool,proto3,oneof"`
}

type Operand_Date32

type Operand_Date32 struct {
	Date32 int32 `protobuf:"varint,7,opt,name=date32,proto3,oneof"`
}

type Operand_Date64

type Operand_Date64 struct {
	Date64 int64 `protobuf:"varint,11,opt,name=date64,proto3,oneof"`
}

type Operand_Float32

type Operand_Float32 struct {
	Float32 float32 `protobuf:"fixed32,9,opt,name=float32,proto3,oneof"`
}

type Operand_Float64

type Operand_Float64 struct {
	Float64 float64 `protobuf:"fixed64,13,opt,name=float64,proto3,oneof"`
}

type Operand_Int16

type Operand_Int16 struct {
	Int16 int32 `protobuf:"varint,4,opt,name=int16,proto3,oneof"`
}

type Operand_Int32

type Operand_Int32 struct {
	Int32 int32 `protobuf:"varint,6,opt,name=int32,proto3,oneof"`
}

type Operand_Int64

type Operand_Int64 struct {
	Int64 int64 `protobuf:"varint,10,opt,name=int64,proto3,oneof"`
}

type Operand_Int8

type Operand_Int8 struct {
	Int8 int32 `protobuf:"varint,2,opt,name=int8,proto3,oneof"`
}

type Operand_Null

type Operand_Null struct {
	Null bool `protobuf:"varint,16,opt,name=null,proto3,oneof"`
}

type Operand_Text

type Operand_Text struct {
	Text bool `protobuf:"varint,15,opt,name=text,proto3,oneof"`
}

type Operand_Uint16

type Operand_Uint16 struct {
	Uint16 uint32 `protobuf:"varint,5,opt,name=uint16,proto3,oneof"`
}

type Operand_Uint32

type Operand_Uint32 struct {
	Uint32 uint32 `protobuf:"varint,8,opt,name=uint32,proto3,oneof"`
}

type Operand_Uint64

type Operand_Uint64 struct {
	Uint64 uint64 `protobuf:"varint,12,opt,name=uint64,proto3,oneof"`
}

type Operand_Uint8

type Operand_Uint8 struct {
	Uint8 uint32 `protobuf:"varint,3,opt,name=uint8,proto3,oneof"`
}

type Operator

type Operator int32
const (
	Operator_EQ      Operator = 0
	Operator_NEQ     Operator = 1
	Operator_GT      Operator = 2
	Operator_GE      Operator = 3
	Operator_LT      Operator = 4
	Operator_LE      Operator = 5
	Operator_BETWEEN Operator = 6
	Operator_CONTAIN Operator = 7
	Operator_EXIST   Operator = 8
	Operator_ISNULL  Operator = 9
)

func (Operator) Descriptor

func (Operator) Descriptor() protoreflect.EnumDescriptor

func (Operator) Enum

func (x Operator) Enum() *Operator

func (Operator) EnumDescriptor deprecated

func (Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operator.Descriptor instead.

func (Operator) Number

func (x Operator) Number() protoreflect.EnumNumber

func (Operator) String

func (x Operator) String() string

func (Operator) Type

type OrderBy

type OrderBy struct {
	Name      string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Direction OrderBy_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=OrderBy_Direction" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderBy) Descriptor deprecated

func (*OrderBy) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy) GetDirection

func (x *OrderBy) GetDirection() OrderBy_Direction

func (*OrderBy) GetName

func (x *OrderBy) GetName() string

func (*OrderBy) ProtoMessage

func (*OrderBy) ProtoMessage()

func (*OrderBy) ProtoReflect

func (x *OrderBy) ProtoReflect() protoreflect.Message

func (*OrderBy) Reset

func (x *OrderBy) Reset()

func (*OrderBy) String

func (x *OrderBy) String() string

type OrderBy_Direction

type OrderBy_Direction int32
const (
	OrderBy_ASC  OrderBy_Direction = 0
	OrderBy_DESC OrderBy_Direction = 1
)

func (OrderBy_Direction) Descriptor

func (OrderBy_Direction) Enum

func (OrderBy_Direction) EnumDescriptor deprecated

func (OrderBy_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderBy_Direction.Descriptor instead.

func (OrderBy_Direction) Number

func (OrderBy_Direction) String

func (x OrderBy_Direction) String() string

func (OrderBy_Direction) Type

type Parameter

type Parameter struct {

	// Types that are assignable to Value:
	//	*Parameter_Double
	//	*Parameter_Int
	Value isParameter_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Parameter) Descriptor deprecated

func (*Parameter) Descriptor() ([]byte, []int)

Deprecated: Use Parameter.ProtoReflect.Descriptor instead.

func (*Parameter) GetDouble

func (x *Parameter) GetDouble() float64

func (*Parameter) GetInt

func (x *Parameter) GetInt() int64

func (*Parameter) GetValue

func (m *Parameter) GetValue() isParameter_Value

func (*Parameter) ProtoMessage

func (*Parameter) ProtoMessage()

func (*Parameter) ProtoReflect

func (x *Parameter) ProtoReflect() protoreflect.Message

func (*Parameter) Reset

func (x *Parameter) Reset()

func (*Parameter) String

func (x *Parameter) String() string

type Parameter_Double

type Parameter_Double struct {
	Double float64 `protobuf:"fixed64,1,opt,name=double,proto3,oneof"`
}

type Parameter_Int

type Parameter_Int struct {
	Int int64 `protobuf:"varint,2,opt,name=int,proto3,oneof"`
}

type Statement

type Statement struct {
	Find    []*Attribute `protobuf:"bytes,1,rep,name=find,proto3" json:"find,omitempty"`
	From    string       `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	Where   []*Expr      `protobuf:"bytes,3,rep,name=where,proto3" json:"where,omitempty"`
	OrderBy []*OrderBy   `protobuf:"bytes,4,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	Limit   uint32       `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	Aux     *Aux         `protobuf:"bytes,6,opt,name=aux,proto3" json:"aux,omitempty"`
	// contains filtered or unexported fields
}

func (*Statement) Descriptor deprecated

func (*Statement) Descriptor() ([]byte, []int)

Deprecated: Use Statement.ProtoReflect.Descriptor instead.

func (*Statement) GetAux

func (x *Statement) GetAux() *Aux

func (*Statement) GetFind

func (x *Statement) GetFind() []*Attribute

func (*Statement) GetFrom

func (x *Statement) GetFrom() string

func (*Statement) GetLimit

func (x *Statement) GetLimit() uint32

func (*Statement) GetOrderBy

func (x *Statement) GetOrderBy() []*OrderBy

func (*Statement) GetWhere

func (x *Statement) GetWhere() []*Expr

func (*Statement) ProtoMessage

func (*Statement) ProtoMessage()

func (*Statement) ProtoReflect

func (x *Statement) ProtoReflect() protoreflect.Message

func (*Statement) Reset

func (x *Statement) Reset()

func (*Statement) String

func (x *Statement) String() string

type Timestamp

type Timestamp struct {
	Timeunit Timestamp_TimeUnit `protobuf:"varint,1,opt,name=timeunit,proto3,enum=Timestamp_TimeUnit" json:"timeunit,omitempty"`
	Tz       string             `protobuf:"bytes,2,opt,name=tz,proto3" json:"tz,omitempty"`
	// contains filtered or unexported fields
}

func (*Timestamp) Descriptor deprecated

func (*Timestamp) Descriptor() ([]byte, []int)

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetTimeunit

func (x *Timestamp) GetTimeunit() Timestamp_TimeUnit

func (*Timestamp) GetTz

func (x *Timestamp) GetTz() string

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

func (x *Timestamp) ProtoReflect() protoreflect.Message

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

type Timestamp_TimeUnit

type Timestamp_TimeUnit int32
const (
	Timestamp_Second      Timestamp_TimeUnit = 0
	Timestamp_Millisecond Timestamp_TimeUnit = 1
	Timestamp_Microsecond Timestamp_TimeUnit = 2
	Timestamp_Nanosecond  Timestamp_TimeUnit = 3
)

func (Timestamp_TimeUnit) Descriptor

func (Timestamp_TimeUnit) Enum

func (Timestamp_TimeUnit) EnumDescriptor deprecated

func (Timestamp_TimeUnit) EnumDescriptor() ([]byte, []int)

Deprecated: Use Timestamp_TimeUnit.Descriptor instead.

func (Timestamp_TimeUnit) Number

func (Timestamp_TimeUnit) String

func (x Timestamp_TimeUnit) String() string

func (Timestamp_TimeUnit) Type

type Tuple

type Tuple struct {
	Id      uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Path    string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Unicode uint32 `protobuf:"varint,4,opt,name=unicode,proto3" json:"unicode,omitempty"`
	// Types that are assignable to Predicate:
	//	*Tuple_Nested
	//	*Tuple_Binary
	//	*Tuple_Unary
	//	*Tuple_List
	//	*Tuple_SelectOnly
	Predicate isTuple_Predicate `protobuf_oneof:"predicate"`
	// contains filtered or unexported fields
}

func (*Tuple) Descriptor deprecated

func (*Tuple) Descriptor() ([]byte, []int)

Deprecated: Use Tuple.ProtoReflect.Descriptor instead.

func (*Tuple) GetBinary

func (x *Tuple) GetBinary() *Binary

func (*Tuple) GetId

func (x *Tuple) GetId() uint32

func (*Tuple) GetList

func (x *Tuple) GetList() *List

func (*Tuple) GetName

func (x *Tuple) GetName() string

func (*Tuple) GetNested

func (x *Tuple) GetNested() *Nested

func (*Tuple) GetPath

func (x *Tuple) GetPath() string

func (*Tuple) GetPredicate

func (m *Tuple) GetPredicate() isTuple_Predicate

func (*Tuple) GetSelectOnly

func (x *Tuple) GetSelectOnly() Type

func (*Tuple) GetUnary

func (x *Tuple) GetUnary() *Unary

func (*Tuple) GetUnicode

func (x *Tuple) GetUnicode() uint32

func (*Tuple) ProtoMessage

func (*Tuple) ProtoMessage()

func (*Tuple) ProtoReflect

func (x *Tuple) ProtoReflect() protoreflect.Message

func (*Tuple) Reset

func (x *Tuple) Reset()

func (*Tuple) String

func (x *Tuple) String() string

type Tuple_Binary

type Tuple_Binary struct {
	Binary *Binary `protobuf:"bytes,6,opt,name=binary,proto3,oneof"`
}

type Tuple_List

type Tuple_List struct {
	List *List `protobuf:"bytes,8,opt,name=list,proto3,oneof"`
}

type Tuple_Nested

type Tuple_Nested struct {
	Nested *Nested `protobuf:"bytes,5,opt,name=nested,proto3,oneof"`
}

type Tuple_SelectOnly

type Tuple_SelectOnly struct {
	SelectOnly Type `protobuf:"varint,9,opt,name=select_only,json=selectOnly,proto3,enum=Type,oneof"`
}

type Tuple_Unary

type Tuple_Unary struct {
	Unary *Unary `protobuf:"bytes,7,opt,name=unary,proto3,oneof"`
}

type Type

type Type int32

note: ssd runtime contains static convert table to arrow2 data type

const (
	Type_list    Type = 0
	Type_struct  Type = 1
	Type_int8    Type = 2
	Type_uint8   Type = 3
	Type_int16   Type = 4
	Type_uint16  Type = 5
	Type_int32   Type = 6
	Type_uint32  Type = 7
	Type_date32  Type = 8
	Type_float32 Type = 9
	Type_int64   Type = 10
	Type_uint64  Type = 11
	Type_date64  Type = 12
	Type_float64 Type = 13
	Type_bool    Type = 14
	Type_text    Type = 15
	Type_null    Type = 16
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type Unary

type Unary struct {
	Op      Operator `protobuf:"varint,1,opt,name=op,proto3,enum=Operator" json:"op,omitempty"`
	Operand *Operand `protobuf:"bytes,2,opt,name=operand,proto3" json:"operand,omitempty"`
	// contains filtered or unexported fields
}

func (*Unary) Descriptor deprecated

func (*Unary) Descriptor() ([]byte, []int)

Deprecated: Use Unary.ProtoReflect.Descriptor instead.

func (*Unary) GetOp

func (x *Unary) GetOp() Operator

func (*Unary) GetOperand

func (x *Unary) GetOperand() *Operand

func (*Unary) ProtoMessage

func (*Unary) ProtoMessage()

func (*Unary) ProtoReflect

func (x *Unary) ProtoReflect() protoreflect.Message

func (*Unary) Reset

func (x *Unary) Reset()

func (*Unary) String

func (x *Unary) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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