metadata

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedStore

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

CachedStore store that get metadata from cache

func NewCachedStore

func NewCachedStore(cacheExpirationSeconds int, source protocol.MetadataStore) *CachedStore

func (*CachedStore) GetMetadata

func (c *CachedStore) GetMetadata(urn string) (*meta.TableSpec, error)

func (*CachedStore) GetUniqueConstraints

func (c *CachedStore) GetUniqueConstraints(urn string) ([]string, error)

type FieldCache

type FieldCache struct {
	Name      string
	ID        string
	FieldType meta.FieldType
	Mode      meta.Mode

	Level    int
	ParentID string
}

type Store

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

Store store to get table metadata

func NewStore

func NewStore(client bqiface.Client, constraintStore protocol.ConstraintStore) *Store

NewStore is constructor of MetadataStore

func (*Store) GetMetadata

func (store *Store) GetMetadata(tableID string) (*meta.TableSpec, error)

GetMetadata to get metadata

func (*Store) GetUniqueConstraints

func (store *Store) GetUniqueConstraints(tableID string) ([]string, error)

GetUniqueConstraints to fetch unique constraints

type TableCache

type TableCache struct {
	ProjectName            string
	DatasetName            string
	TableName              string
	PartitionField         string
	RequirePartitionFilter bool

	TimePartitioningType meta.TimePartitioning

	Labels map[string]string
	Fields []*FieldCache
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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