applycache

package
v1.1.0-beta.0...-68d6b99 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyCache

type ApplyCache struct {
	// contains filtered or unexported fields
}

ApplyCache is used in the apply executor. When we get the same value of the outer row. We fetch the inner rows in the cache not to fetch them in the inner executor.

func NewApplyCache

func NewApplyCache(ctx sessionctx.Context) (*ApplyCache, error)

NewApplyCache creates a new ApplyCache.

func (*ApplyCache) Get

func (c *ApplyCache) Get(key applyCacheKey) (*chunk.List, error)

Get gets a cache item according to cache key. It's thread-safe.

func (*ApplyCache) GetMemTracker

func (c *ApplyCache) GetMemTracker() *memory.Tracker

GetMemTracker returns the memory tracker of this apply cache.

func (*ApplyCache) Set

func (c *ApplyCache) Set(key applyCacheKey, value *chunk.List) (bool, error)

Set inserts an item to the cache. It's thread-safe.

Jump to

Keyboard shortcuts

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