comm

package
v1.5.3-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWrapIterator

func NewWrapIterator(itr KeyCursor, sidCnt int) record.Iterator

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)
}

func NewWrapCursor

func NewWrapCursor(itr record.Iterator) KeyCursor

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 SourceIterator

type SourceIterator struct {
	KeyCursor
	// contains filtered or unexported fields
}

func NewSourceIterator

func NewSourceIterator(itrs []record.Iterator, opt hybridqp.Options) *SourceIterator

func (*SourceIterator) Close

func (s *SourceIterator) Close() error

func (*SourceIterator) NextAggData

func (s *SourceIterator) NextAggData() (*record.Record, *FileInfo, error)

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)
}

type WrapCursor

type WrapCursor struct {
	KeyCursor
	// contains filtered or unexported fields
}

func (*WrapCursor) Close

func (w *WrapCursor) Close() error

func (*WrapCursor) Next

func (w *WrapCursor) Next() (*record.Record, SeriesInfoIntf, error)

type WrapIterator

type WrapIterator struct {
	record.Iterator
	// contains filtered or unexported fields
}

func (*WrapIterator) Next

func (w *WrapIterator) Next() (*record.ConsumeRecord, error)

func (*WrapIterator) Release

func (w *WrapIterator) Release()

func (*WrapIterator) SidCnt

func (w *WrapIterator) SidCnt() int

Jump to

Keyboard shortcuts

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