Documentation ¶
Index ¶
- Variables
- type Column
- type MetaStore
- func (m MetaStore) AddPartition(newPartition *MetastoreObject) error
- func (m MetaStore) AddPartitions(newPartitions []*MetastoreObject) error
- func (m MetaStore) AlterPartition(dbName string, tableName string, newPartition *MetastoreObject) error
- func (m MetaStore) AlterPartitions(dbName string, tableName string, newPartitions []*MetastoreObject) error
- func (m MetaStore) AlterTable(db, tableName string, table *MetastoreObject) error
- func (m MetaStore) CreateTable(dbName, tableName string, mockTable *MetastoreObject) error
- func (m MetaStore) DropPartition(db string, table string, partitions []string) error
- func (m MetaStore) GetPartition(db string, table string, vals []string) (*MetastoreObject, error)
- func (m MetaStore) GetPartitions(dbName string, tableName string) []*MetastoreObject
- func (m MetaStore) GetTable(dbname string, tableName string) (*MetastoreObject, error)
- type MetastoreObject
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrAlreadyExists = errors.New("already exists") )
Functions ¶
This section is empty.
Types ¶
type MetaStore ¶
type MetaStore struct { CreatedTable *MetastoreObject Tables map[string]*MetastoreObject // contains filtered or unexported fields }
func NewMockStore ¶
func NewMockStore() MetaStore
func (MetaStore) AddPartition ¶
func (m MetaStore) AddPartition(newPartition *MetastoreObject) error
func (MetaStore) AddPartitions ¶
func (m MetaStore) AddPartitions(newPartitions []*MetastoreObject) error
func (MetaStore) AlterPartition ¶
func (m MetaStore) AlterPartition(dbName string, tableName string, newPartition *MetastoreObject) error
func (MetaStore) AlterPartitions ¶
func (m MetaStore) AlterPartitions(dbName string, tableName string, newPartitions []*MetastoreObject) error
func (MetaStore) AlterTable ¶
func (m MetaStore) AlterTable(db, tableName string, table *MetastoreObject) error
func (MetaStore) CreateTable ¶
func (m MetaStore) CreateTable(dbName, tableName string, mockTable *MetastoreObject) error
func (MetaStore) DropPartition ¶
func (MetaStore) GetPartition ¶
func (MetaStore) GetPartitions ¶
func (m MetaStore) GetPartitions(dbName string, tableName string) []*MetastoreObject
Click to show internal directories.
Click to hide internal directories.