systemlayer

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionRequests

type ExecutionRequests struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ExecutionRequests is an internal struct that keeps a list of sql execution requests this data allows visbility into queries that have been run and are running

func NewExecutionRequestsAPI

func NewExecutionRequestsAPI() *ExecutionRequests

func (*ExecutionRequests) AddRequest

func (e *ExecutionRequests) AddRequest(requestID string, userID string, startTime time.Time, sql string) error

AddRequest adds a new request to the ExecutionRequests struct

func (*ExecutionRequests) GetRequest

func (e *ExecutionRequests) GetRequest(requestID string) (pilosa.ExecutionRequest, error)

func (*ExecutionRequests) ListRequests

func (e *ExecutionRequests) ListRequests() ([]pilosa.ExecutionRequest, error)

ListRequests returns the content of the ExecutionRequests struct as copies

func (*ExecutionRequests) UpdateRequest

func (e *ExecutionRequests) UpdateRequest(requestID string,
	endTime time.Time,
	status string,
	waitType string,
	waitTime time.Duration,
	waitResource string,
	cpuTime time.Duration,
	reads int64,
	writes int64,
	logicalReads int64,
	rowCount int64,
	plan string) error

UpdateRequest updates the values for a request in the ExecutionRequests struct

type SystemLayer

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

SystemLayer is a struct to hold internal FeatureBase state Initially this is just the execution requests, but later may include other internal state (Buffer Pool?)

func NewSystemLayer

func NewSystemLayer() *SystemLayer

func (*SystemLayer) ExecutionRequests

func (e *SystemLayer) ExecutionRequests() pilosa.ExecutionRequestsAPI

Jump to

Keyboard shortcuts

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