Documentation
¶
Index ¶
- Variables
- type Client
- func (this *Client) CopyTable(database, existingTable, newTable string) (*CopyTableResponse, error)
- func (this *Client) CreateColumn(database, table, column string) (*CreateColumnResponse, error)
- func (this *Client) CreateDatabase(database string, in *CreateDatabaseInput) (*CreateDatabaseResponse, error)
- func (this *Client) CreatePartition(database, table string, partitions map[string]string) (*CreatePartitionResponse, error)
- func (this *Client) CreateProperty(database, table, property string) (*CreatePropertyResponse, error)
- func (this *Client) CreateTable(database, table string, in *CreateTableInput) (*CreateTableResponse, error)
- func (this *Client) DeletePartition(database, table string, partitions map[string]string) (*DeletePartitionResponse, error)
- func (this *Client) DropDatabase(database string) (*DropDatabaseResponse, error)
- func (this *Client) DropTable(database, table string) (*DropTableResponse, error)
- func (this *Client) Exec(sql string) (*ExecResponse, error)
- func (this *Client) ListColumn(database, table string) (*ListColumnResponse, error)
- func (this *Client) ListDatabase() (*ListDatabaseResponse, error)
- func (this *Client) ListPartition(database, table string) (*ListPartitionResponse, error)
- func (this *Client) ListProperty(database, table string) (*ListPropertyResponse, error)
- func (this *Client) ListTable(database string) (*ListTableResponse, error)
- func (this *Client) RenameTable(database, table string, in *RenameTableInput) (*RenameTableResponse, error)
- func (this *Client) ShowColumn(database, table, column string) (*ShowColumnResponse, error)
- func (this *Client) ShowDatabase(database string) (*ShowDatabaseResponse, error)
- func (this *Client) ShowPartition(database, table string) (*ShowPartitionResponse, error)
- func (this *Client) ShowProperty(database, table, property string) (*ShowPropertyResponse, error)
- func (this *Client) ShowTable(database, table string) (*ShowTableResponse, error)
- func (this *Client) Status() (*StatusResponse, error)
- func (this *Client) UpdateTable(database, table string) (*UpdateTableResponse, error)
- type Column
- type CopyTableResponse
- type CreateColumnResponse
- type CreateDatabaseInput
- type CreateDatabaseResponse
- type CreatePartitionResponse
- type CreatePropertyResponse
- type CreateTableInput
- type CreateTableResponse
- type DeletePartitionResponse
- type DropDatabaseResponse
- type DropTableResponse
- type ExecResponse
- type ListColumnResponse
- type ListDatabaseResponse
- type ListPartitionResponse
- type ListPropertyResponse
- type ListTableResponse
- type Property
- type RenameTableInput
- type RenameTableResponse
- type RowFormat
- type ShowColumnResponse
- type ShowDatabaseResponse
- type ShowPartitionResponse
- type ShowPropertyResponse
- type ShowTableResponse
- type SortedBy
- type StatusResponse
- type UpdateTableResponse
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ENDPOINT_COLUMN = `%v:%v/templeton/v1/ddl/database/%v/table/:%v/column?user.name=%v` ENDPOINT_COLUMN_DETAIL = `%v:%v/templeton/v1/ddl/database/%v/table/:%v/column/%v?user.name=%v` )
View Source
var ( ENDPOINT_DATABASE = `%v:%v/templeton/v1/ddl/database?user.name=%v` ENDPOINT_DATABASE_DETAIL = `%v:%v/templeton/v1/ddl/database/%v?user.name=%v` )
View Source
var ( HTTP_GET = "GET" HTTP_POST = "POST" HTTP_PUT = "PUT" HTTP_DELETE = "DELETE" )
View Source
var ( ENDPOINT_PARTITION = `%v:%v/templeton/v1/ddl/database/%v/table/:%v/partition?user.name=%v` ENDPOINT_PARTITION_DETAIL = `%v:%v/templeton/v1/ddl/database/%v/table/:%v/partition/%v?user.name=%v` )
View Source
var ( ENDPOINT_PROPERTY = `%v:%v/templeton/v1/ddl/database/%v/table/:%v/property?user.name=%v` ENDPOINT_PROPERTY_DETAIL = `%v:%v/templeton/v1/ddl/database/%v/table/:%v/property/%v?user.name=%v` )
View Source
var ( ENDPOINT_TABLE = `%v:%v/templeton/v1/ddl/database/%v/table?user.name=%v` ENDPOINT_TABLE_DETAIL = `%v:%v/templeton/v1/ddl/database/%v/table/%v?user.name=%v` ENDPOINT_TABLE_COPY = `%v:%v/templeton/v1/ddl/database/%v/table/%v/like/%v?user.name=%v` )
View Source
var (
ENDPOINT_EXEC = `%v:%v/templeton/v1/ddl?user.name=%v`
)
View Source
var (
ENDPOINT_STATUS = `%v:%v/templeton/v1/status?user.name=%v`
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CopyTable ¶
func (this *Client) CopyTable(database, existingTable, newTable string) (*CopyTableResponse, error)
func (*Client) CreateColumn ¶
func (this *Client) CreateColumn(database, table, column string) (*CreateColumnResponse, error)
func (*Client) CreateDatabase ¶
func (this *Client) CreateDatabase(database string, in *CreateDatabaseInput) (*CreateDatabaseResponse, error)
func (*Client) CreatePartition ¶
func (*Client) CreateProperty ¶
func (this *Client) CreateProperty(database, table, property string) (*CreatePropertyResponse, error)
TODO
func (*Client) CreateTable ¶
func (this *Client) CreateTable(database, table string, in *CreateTableInput) (*CreateTableResponse, error)
func (*Client) DeletePartition ¶
func (*Client) DropDatabase ¶
func (this *Client) DropDatabase(database string) (*DropDatabaseResponse, error)
func (*Client) DropTable ¶
func (this *Client) DropTable(database, table string) (*DropTableResponse, error)
func (*Client) ListColumn ¶
func (this *Client) ListColumn(database, table string) (*ListColumnResponse, error)
func (*Client) ListDatabase ¶
func (this *Client) ListDatabase() (*ListDatabaseResponse, error)
func (*Client) ListPartition ¶
func (this *Client) ListPartition(database, table string) (*ListPartitionResponse, error)
func (*Client) ListProperty ¶
func (this *Client) ListProperty(database, table string) (*ListPropertyResponse, error)
func (*Client) ListTable ¶
func (this *Client) ListTable(database string) (*ListTableResponse, error)
func (*Client) RenameTable ¶
func (this *Client) RenameTable(database, table string, in *RenameTableInput) (*RenameTableResponse, error)
func (*Client) ShowColumn ¶
func (this *Client) ShowColumn(database, table, column string) (*ShowColumnResponse, error)
func (*Client) ShowDatabase ¶
func (this *Client) ShowDatabase(database string) (*ShowDatabaseResponse, error)
func (*Client) ShowPartition ¶
func (this *Client) ShowPartition(database, table string) (*ShowPartitionResponse, error)
func (*Client) ShowProperty ¶
func (this *Client) ShowProperty(database, table, property string) (*ShowPropertyResponse, error)
func (*Client) ShowTable ¶
func (this *Client) ShowTable(database, table string) (*ShowTableResponse, error)
func (*Client) Status ¶
func (this *Client) Status() (*StatusResponse, error)
func (*Client) UpdateTable ¶
func (this *Client) UpdateTable(database, table string) (*UpdateTableResponse, error)
TODO: params
type CopyTableResponse ¶
type CreateColumnResponse ¶
type CreateDatabaseInput ¶
type CreateDatabaseResponse ¶
type CreateDatabaseResponse struct {
Database string `json:"database"`
}
type CreatePartitionResponse ¶
type CreatePropertyResponse ¶
type CreateTableInput ¶
type CreateTableInput struct {
Comment string `json:"comment,omitempty"`
Columns []Column `json:"columns,omitempty"`
PartitionBy []Column `json:"partitionedBy,omitempty"`
ClusteredBy struct {
ColumnNames []string `json:"columnNames"`
SortedBy SortedBy `json:"sortedBy"`
NumberOfBuckets string `json:"numberOfBuckets"`
} `json:"clusteredBy"`
IfNotExists bool `json:"ifNotExists,omitempty"`
External bool `json:"external,omitempty"`
Format interface{} `json:"format,omitempty"`
Location string `json:"location,omitempty"`
}
type CreateTableResponse ¶
type DeletePartitionResponse ¶
type DropDatabaseResponse ¶
type DropDatabaseResponse struct {
Database string `json:"database"`
}
type DropTableResponse ¶
type ExecResponse ¶
type ListColumnResponse ¶
type ListDatabaseResponse ¶
type ListDatabaseResponse struct {
Databases []string `json:"databases"`
}
type ListPartitionResponse ¶
type ListPropertyResponse ¶
type ListTableResponse ¶
type RenameTableInput ¶
type RenameTableInput struct {
Rename string `json:"rename,omitempty"`
}
type RenameTableResponse ¶
type ShowColumnResponse ¶
type ShowDatabaseResponse ¶
type ShowPartitionResponse ¶
type ShowPartitionResponse struct {
Database string `json:"database"`
Table string `json:"table"`
Partition string `json:"partition"`
Columns []Column `json:"columns"`
// extend
Partitioned bool `json:"partitioned"`
Location string `json:"location"`
OutputFormat string `json:"outputFormat"`
Owner string `json:"owner"`
PartitionColumns []Column `json:"partitionColumns"`
InputFormat string `json:"inputFormat"`
}
type ShowPropertyResponse ¶
type ShowTableResponse ¶
type ShowTableResponse struct {
Columns []Column `json:"columns"`
Database string `json:"database"`
Table string `json:"table"`
// extend
Partitioned bool `json:"partitioned"`
Location string `json:"location"`
OutputFormat string `json:"outputFormat"`
Owner string `json:"owner"`
PartitionColumns []Column `json:"partitionColumns"`
InputFormat string `json:"inputFormat"`
}
type StatusResponse ¶
type UpdateTableResponse ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.