comm

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOption

type CallOption struct {
	Call *influxql.Call
	Ref  *influxql.VarRef
}

type Cursor

type Cursor interface {
	SetOps(ops []*CallOption)
	Next() (*record.Record, error)
	Close() error
	StartSpan(span *tracing.Span)
	EndSpan()
}

type Cursors

type Cursors []Cursor

func (Cursors) Close

func (cursors Cursors) Close() error

type ExprOptions

type ExprOptions struct {
	Expr influxql.Expr
	Ref  influxql.VarRef
}

type FileInfo

type FileInfo struct {
	MinTime    int64
	MaxTime    int64
	SeriesInfo SeriesInfoIntf
}

type KeyCursor

type KeyCursor interface {
	SetOps(ops []*CallOption)
	SinkPlan(plan hybridqp.QueryNode)
	Next() (*record.Record, SeriesInfoIntf, error)
	Name() string
	Close() error
	GetSchema() record.Schemas
	StartSpan(span *tracing.Span)
	EndSpan()
	NextAggData() (*record.Record, *FileInfo, error)
}

type KeyCursors

type KeyCursors []KeyCursor

func (KeyCursors) Close

func (cursors KeyCursors) Close() error

Close we must continue to close all cursors even if some cursors close failed to avoid resource leak

func (KeyCursors) SetOps

func (cursors KeyCursors) SetOps(ops []*CallOption)

func (KeyCursors) SinkPlan

func (cursors KeyCursors) SinkPlan(plan hybridqp.QueryNode)

type SeriesInfoIntf

type SeriesInfoIntf interface {
	GetSeriesKey() []byte
	GetSeriesTags() *influx.PointTags
	GetSid() uint64
	Set(sid uint64, key []byte, tags *influx.PointTags)
}

type TSIndexInfo added in v1.4.0

type TSIndexInfo interface {
	// SetCursors used to set the created groupCursor
	SetCursors([]KeyCursor)
	// GetCursors used to get the created groupCursor
	GetCursors() []KeyCursor
	// IsEmpty used to check whether is empty based on groupCursor.
	IsEmpty() bool
	// Ref used to add reference counting to the file of the immTables, memTables and TagSetInfos.
	Ref()
	// Unref used to release reference counting to the file of the immTables, memTables and TagSetInfos.
	Unref()
}

TSIndexInfo indicates the index scan result of the tsstore,

type TimeCutKeyCursor added in v1.3.0

type TimeCutKeyCursor interface {
	KeyCursor
	UpdateTime(time int64)
}

Jump to

Keyboard shortcuts

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