Documentation ¶
Index ¶
- Variables
- func AddColumn(m *metastore.Partition, col *metastore.FieldSchema)
- func GetByPrefix(m map[string]*metastore.Partition, prefix string) []*metastore.Partition
- func GetKey(dbName, tableName string) string
- func GetPartitionKey(dbName, tableName string, partition []string) string
- func PartitionsListToMap(partitions []*metastore.Partition) map[string]*metastore.Partition
- type MSClient
- func (m *MSClient) AddPartition(_ context.Context, tableName string, dbName string, ...) error
- func (m *MSClient) AddPartitions(ctx context.Context, tableName string, dbName string, ...) error
- func (m *MSClient) AlterPartition(_ context.Context, dbName string, tableName string, ...) error
- func (m *MSClient) AlterPartitions(ctx context.Context, dbName string, tableName string, ...) error
- func (m *MSClient) AlterTable(_ context.Context, dbName string, tableName string, newTable *metastore.Table) error
- func (m *MSClient) CreateDatabase(_ context.Context, db *metastore.Database) error
- func (m *MSClient) CreateTable(_ context.Context, table *metastore.Table) error
- func (m *MSClient) DropPartition(_ context.Context, dbName string, tableName string, values []string) error
- func (m *MSClient) GetDBLocation(dbName string) string
- func (m *MSClient) GetDatabase(_ context.Context, name string) (*metastore.Database, error)
- func (m *MSClient) GetDatabases(_ context.Context, name string) ([]*metastore.Database, error)
- func (m *MSClient) GetPartition(_ context.Context, dbName string, tableName string, values []string) (*metastore.Partition, error)
- func (m *MSClient) GetPartitionCollection(_ context.Context, _ string, _ string) (metastore.Collection, error)
- func (m *MSClient) GetPartitions(_ context.Context, dbName string, tableName string) ([]*metastore.Partition, error)
- func (m *MSClient) GetTable(_ context.Context, dbname string, tableName string) (*metastore.Table, error)
- func (m *MSClient) GetTableCollection(_ context.Context, _ string, _ string) (metastore.Collection, error)
- func (m *MSClient) GetTables(_ context.Context, _ string, _ string) ([]*metastore.Table, error)
- func (m *MSClient) HasTable(_ context.Context, dbname string, tableName string) (bool, error)
- func (m *MSClient) NormalizeDBName(name string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrAlreadyExists = errors.New("already exists") )
Functions ¶
func AddColumn ¶ added in v0.40.3
func AddColumn(m *metastore.Partition, col *metastore.FieldSchema)
func GetByPrefix ¶ added in v0.40.3
func GetPartitionKey ¶ added in v0.40.3
Types ¶
type MSClient ¶ added in v0.40.3
type MSClient struct { Databases map[string]*metastore.Database Tables map[string]*metastore.Table // contains filtered or unexported fields }
func NewMSClient ¶ added in v0.40.3
func (*MSClient) AddPartition ¶ added in v0.40.3
func (*MSClient) AddPartitions ¶ added in v0.40.3
func (*MSClient) AlterPartition ¶ added in v0.40.3
func (*MSClient) AlterPartitions ¶ added in v0.40.3
func (*MSClient) AlterTable ¶ added in v0.40.3
func (*MSClient) CreateDatabase ¶ added in v0.54.0
func (*MSClient) CreateTable ¶ added in v0.40.3
func (*MSClient) DropPartition ¶ added in v0.40.3
func (*MSClient) GetDBLocation ¶ added in v0.40.3
func (*MSClient) GetDatabase ¶ added in v0.40.3
func (*MSClient) GetDatabases ¶ added in v0.40.3
func (*MSClient) GetPartition ¶ added in v0.40.3
func (*MSClient) GetPartitionCollection ¶ added in v0.40.3
func (*MSClient) GetPartitions ¶ added in v0.40.3
func (*MSClient) GetTableCollection ¶ added in v0.40.3
func (*MSClient) NormalizeDBName ¶ added in v0.40.3
Click to show internal directories.
Click to hide internal directories.