glue

package
v0.97.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MaxParts = 1000 // max possible 1000

Variables

This section is empty.

Functions

func DatabaseGlueToLocal added in v0.40.3

func DatabaseGlueToLocal(db *glue.Database) *metastore.Database

func DatabaseLocalToGlue added in v0.40.3

func DatabaseLocalToGlue(db *metastore.Database) *glue.DatabaseInput

func DatabasesGlueToLocal added in v0.40.3

func DatabasesGlueToLocal(glueDatabases []*glue.Database) []*metastore.Database

func NewMSClient

func NewMSClient(cfg *aws.Config, catalogID, baselLocationURI string) (metastore.Client, error)

func PartitionGlueToLocal added in v0.40.3

func PartitionGlueToLocal(gluePartition *glue.Partition) *metastore.Partition

func PartitionLocalToGlue added in v0.40.3

func PartitionLocalToGlue(partition *metastore.Partition) *glue.PartitionInput

func PartitionsGlueToLocal added in v0.40.3

func PartitionsGlueToLocal(gluePartitions []*glue.Partition) []*metastore.Partition

func PartitionsLocalToGlue added in v0.40.3

func PartitionsLocalToGlue(partitions []*metastore.Partition) []*glue.PartitionInput

func SDGlueToLocal added in v0.40.3

func SDLocalToGlue added in v0.40.3

func TableGlueToLocal added in v0.40.3

func TableGlueToLocal(glueTable *glue.TableData) *metastore.Table

func TableLocalToGlue added in v0.40.3

func TableLocalToGlue(table *metastore.Table) *glue.TableInput

func TablesGlueToLocal added in v0.40.3

func TablesGlueToLocal(glueTables []*glue.TableData) []*metastore.Table

Types

type MSClient

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

func (*MSClient) AddPartition added in v0.40.3

func (g *MSClient) AddPartition(ctx context.Context, tableName string, dbName string, newPartition *metastore.Partition) error

func (*MSClient) AddPartitions added in v0.40.3

func (g *MSClient) AddPartitions(ctx context.Context, tableName string, dbName string, newParts []*metastore.Partition) error

func (*MSClient) AlterPartition added in v0.40.3

func (g *MSClient) AlterPartition(ctx context.Context, dbName string, tableName string, partition *metastore.Partition) error

func (*MSClient) AlterPartitions added in v0.40.3

func (g *MSClient) AlterPartitions(ctx context.Context, dbName string, tableName string, newPartitions []*metastore.Partition) error

func (*MSClient) AlterTable added in v0.40.3

func (g *MSClient) AlterTable(ctx context.Context, dbName string, _ string, newTable *metastore.Table) error

func (*MSClient) CreateDatabase added in v0.54.0

func (g *MSClient) CreateDatabase(ctx context.Context, database *metastore.Database) error

func (*MSClient) CreateTable added in v0.40.3

func (g *MSClient) CreateTable(ctx context.Context, tbl *metastore.Table) error

func (*MSClient) DropPartition added in v0.40.3

func (g *MSClient) DropPartition(ctx context.Context, dbName string, tableName string, values []string) error

func (*MSClient) GetAllPartitions added in v0.40.3

func (g *MSClient) GetAllPartitions(ctx context.Context, dbName, tableName string) ([]*glue.Partition, error)

func (*MSClient) GetDBLocation added in v0.40.3

func (g *MSClient) GetDBLocation(dbName string) string

func (*MSClient) GetDatabase added in v0.40.3

func (g *MSClient) GetDatabase(ctx context.Context, name string) (*metastore.Database, error)

func (*MSClient) GetDatabases added in v0.40.3

func (g *MSClient) GetDatabases(ctx context.Context, pattern string) ([]*metastore.Database, error)

func (*MSClient) GetPartition added in v0.40.3

func (g *MSClient) GetPartition(ctx context.Context, dbName string, tableName string, values []string) (*metastore.Partition, error)

func (*MSClient) GetPartitions added in v0.40.3

func (g *MSClient) GetPartitions(ctx context.Context, dbName string, tableName string) ([]*metastore.Partition, error)

func (*MSClient) GetTable added in v0.40.3

func (g *MSClient) GetTable(ctx context.Context, dbName string, tableName string) (*metastore.Table, error)

func (*MSClient) GetTables added in v0.40.3

func (g *MSClient) GetTables(ctx context.Context, dbName string, pattern string) ([]*metastore.Table, error)

func (*MSClient) HasTable added in v0.40.3

func (g *MSClient) HasTable(ctx context.Context, dbName string, tableName string) (bool, error)

func (*MSClient) NormalizeDBName added in v0.40.3

func (g *MSClient) NormalizeDBName(db string) string

Jump to

Keyboard shortcuts

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