Documentation ¶
Index ¶
- Constants
- type Client
- type ColDesc
- type Operation
- func (op *Operation) Close(ctx context.Context) error
- func (op *Operation) FetchResults(ctx context.Context, schema *TableSchema) (*ResultSet, error)
- func (op *Operation) GetResultSetMetadata(ctx context.Context) (*TableSchema, error)
- func (op *Operation) HasResultSet() bool
- func (op *Operation) RowsAffected() float64
- type Options
- type RPCResponse
- type ResultSet
- type Session
- type TableSchema
Constants ¶
View Source
const (
// TimestampFormat is JDBC compliant timestamp format
TimestampFormat = "2006-01-02 15:04:05.999999999"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents Hive Client
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation represents hive operation
func (*Operation) FetchResults ¶
FetchResults fetches query result from server
func (*Operation) GetResultSetMetadata ¶
func (op *Operation) GetResultSetMetadata(ctx context.Context) (*TableSchema, error)
GetResultSetMetadata return schema
func (*Operation) HasResultSet ¶
HasResultSet return if operation has result set
func (*Operation) RowsAffected ¶
RowsAffected return number of rows affected by operation
type Options ¶
type Options struct { MaxRows int64 MemLimit string QueryTimeout int FetchRowsTimeout int Database string }
Options for Hive Client
type RPCResponse ¶
type RPCResponse interface {
GetStatus() *cli_service.TStatus
}
RPCResponse respresents thrift rpc response
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents hive session
func (*Session) ExecuteStatement ¶
ExecuteStatement returns hive operation
type TableSchema ¶
type TableSchema struct {
Columns []*ColDesc
}
Click to show internal directories.
Click to hide internal directories.