metadata

package
v0.0.0-...-f51b26c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIndexOIDForResource

func GetIndexOIDForResource(resource string) string

GetIndexOIDForResource returns the index OID for a specific resource

Types

type Store

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

Store MetadataStore stores metadata scalarValues

func NewMetadataStore

func NewMetadataStore() *Store

NewMetadataStore returns a new metadata Store

func (Store) AddColumnValue

func (s Store) AddColumnValue(field string, index string, value valuestore.ResultValue)

AddColumnValue add column value to metadata store

func (Store) AddIDTags

func (s Store) AddIDTags(resource string, index string, tags []string)

AddIDTags add idTags for a specific resource and index

func (Store) AddScalarValue

func (s Store) AddScalarValue(field string, value valuestore.ResultValue)

AddScalarValue add scalar value to metadata store

func (Store) GetColumnAsByteArray

func (s Store) GetColumnAsByteArray(field string, index string) []byte

GetColumnAsByteArray get column value as []byte

func (Store) GetColumnAsFloat

func (s Store) GetColumnAsFloat(field string, index string) float64

GetColumnAsFloat get column value as float

func (Store) GetColumnAsString

func (s Store) GetColumnAsString(field string, index string) string

GetColumnAsString get column value as string

func (Store) GetColumnIndexes

func (s Store) GetColumnIndexes(field string) []string

GetColumnIndexes get column indexes for a field

func (Store) GetIDTags

func (s Store) GetIDTags(resource string, index string) []string

GetIDTags get idTags for a specific resource and index

func (Store) GetScalarAsString

func (s Store) GetScalarAsString(field string) string

GetScalarAsString get scalar value as string

func (Store) ScalarFieldHasValue

func (s Store) ScalarFieldHasValue(field string) bool

ScalarFieldHasValue test if scalar field has value

Jump to

Keyboard shortcuts

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