types

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryOp

type BinaryOp uint32

BinaryOp denotes the kind of BinaryOp operation to perform.

const (
	// BinaryOpInvalid indicates an invalid binary operation.
	BinaryOpInvalid BinaryOp = iota

	BinaryOpEq  // Equality comparison (==).
	BinaryOpNeq // Inequality comparison (!=).
	BinaryOpGt  // Greater than comparison (>).
	BinaryOpGte // Greater than or equal comparison (>=).
	BinaryOpLt  // Less than comparison (<).
	BinaryOpLte // Less than or equal comparison (<=).
	BinaryOpAnd // Logical AND operation (&&).
	BinaryOpOr  // Logical OR operation (||).
	BinaryOpXor // Logical XOR operation (^).
	BinaryOpNot // Logical NOT operation (!).

	BinaryOpAdd // Addition operation (+).
	BinaryOpSub // Subtraction operation (-).
	BinaryOpMul // Multiplication operation (*).
	BinaryOpDiv // Division operation (/).
	BinaryOpMod // Modulo operation (%).

	BinaryOpMatchStr    // String matching operation (|=).
	BinaryOpNotMatchStr // String non-matching operation (!=).
	BinaryOpMatchRe     // Regular expression matching operation (|~).
	BinaryOpNotMatchRe  // Regular expression non-matching operation (!~).
)

Recognized values of BinaryOp.

func (BinaryOp) String

func (t BinaryOp) String() string

String returns a human-readable representation of the binary operation kind.

type ColumnType

type ColumnType int

ColumnType denotes the column type for a [ColumnRef].

const (
	// ColumnTypeInvalid indicates an invalid column type.
	ColumnTypeInvalid ColumnType = iota

	ColumnTypeBuiltin  // ColumnTypeBuiltin represents a builtin column (such as timestamp).
	ColumnTypeLabel    // ColumnTypeLabel represents a column from a stream label.
	ColumnTypeMetadata // ColumnTypeMetadata represents a column from a log metadata.
)

Recognized values of ColumnType.

func (ColumnType) String

func (ct ColumnType) String() string

String returns a human-readable representation of the column type.

type LiteralKind

type LiteralKind int

LiteralKind denotes the kind of [Literal] value.

const (
	// LiteralKindInvalid indicates an invalid literal value.
	LiteralKindInvalid LiteralKind = iota

	LiteralKindNull      // NULL literal value.
	LiteralKindString    // String literal value.
	LiteralKindInt64     // 64-bit integer literal value.
	LiteralKindUint64    // 64-bit unsigned integer literal value.
	LiteralKindByteArray // Byte array literal value.
)

Recognized values of LiteralKind.

func (LiteralKind) String

func (k LiteralKind) String() string

String returns the string representation of the LiteralKind.

type UnaryOp

type UnaryOp uint32

UnaryOp denotes the kind of UnaryOp operation to perform.

const (
	// UnaryOpKindInvalid indicates an invalid unary operation.
	UnaryOpInvalid UnaryOp = iota

	UnaryOpNot // Logical NOT operation (!).
	UnaryOpAbs // Mathematical absolute operation (abs).
)

Recognized values of UnaryOp.

func (UnaryOp) String

func (t UnaryOp) String() string

String returns the string representation of the UnaryOp.

type ValueType

type ValueType uint32

ValueType represents the type of a value, which can either be a literal value, or a column value.

const (
	ValueTypeInvalid ValueType = iota // zero-value is an invalid type

	ValueTypeNull      // NULL value.
	ValueTypeBool      // Boolean value
	ValueTypeInt       // Signed 64bit integer value
	ValueTypeTimestamp // Unsigned 64bit integer value (nanosecond timestamp)
	ValueTypeStr       // String value
	ValueTypeBytes     // Byte-slice value
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳