vlstorage

package
v0.21.0-victorialogs Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanWriteData added in v1.94.0

func CanWriteData() error

CanWriteData returns non-nil error if it cannot write data to vlstorage.

func GetFieldNames added in v1.97.7

func GetFieldNames(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query) ([]logstorage.ValueWithHits, error)

GetFieldNames executes q and returns field names seen in results.

func GetFieldValues added in v1.97.7

func GetFieldValues(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query, fieldName string, limit uint64) ([]logstorage.ValueWithHits, error)

GetFieldValues executes q and returns unique values for the fieldName seen in results.

If limit > 0, then up to limit unique values are returned.

func GetStreamFieldNames added in v1.97.7

func GetStreamFieldNames(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query) ([]logstorage.ValueWithHits, error)

GetStreamFieldNames executes q and returns stream field names seen in results.

func GetStreamFieldValues added in v1.97.7

func GetStreamFieldValues(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query, fieldName string, limit uint64) ([]logstorage.ValueWithHits, error)

GetStreamFieldValues executes q and returns stream field values for the given fieldName seen in results.

If limit > 0, then up to limit unique stream field values are returned.

func GetStreams added in v1.97.7

func GetStreams(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query, limit uint64) ([]logstorage.ValueWithHits, error)

GetStreams executes q and returns streams seen in query results.

If limit > 0, then up to limit unique streams are returned.

func Init

func Init()

Init initializes vlstorage.

Stop must be called when vlstorage is no longer needed

func MustAddRows

func MustAddRows(lr *logstorage.LogRows)

MustAddRows adds lr to vlstorage

It is advised to call CanWriteData() before calling MustAddRows()

func RunQuery

func RunQuery(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query, writeBlock logstorage.WriteBlockFunc) error

RunQuery runs the given q and calls writeBlock for the returned data blocks

func Stop

func Stop()

Stop stops vlstorage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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