Documentation ¶
Index ¶
- Constants
- Variables
- type Connection
- type Options
- type RowSet
- type Status
- type TSaslTransport
- func (p *TSaslTransport) Close() (err error)
- func (p *TSaslTransport) Flush(ctx context.Context) (err error)
- func (p *TSaslTransport) IsOpen() bool
- func (p *TSaslTransport) Open() (err error)
- func (p *TSaslTransport) Read(buf []byte) (l int, err error)
- func (p *TSaslTransport) RemainingBytes() uint64
- func (p *TSaslTransport) Write(buf []byte) (int, error)
Constants ¶
View Source
const ( START = 1 OK = 2 BAD = 3 ERROR = 4 COMPLETE = 5 )
View Source
const DEFAULT_MAX_LENGTH = 16384000
Variables ¶
View Source
var (
DefaultOptions = Options{PollIntervalSeconds: 0.1, BatchSize: 10000}
)
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) QueryWithContext ¶
type RowSet ¶
type RowSet interface { Columns() []string ColumnsWithContext(ctx context.Context) []string Next() bool NextWithContext(ctx context.Context) bool Scan(dest ...interface{}) error Poll() (*Status, error) PollWithContext(ctx context.Context) (*Status, error) Wait() (*Status, error) WaitWithContext(ctx context.Context) (*Status, error) FetchAll() []map[string]interface{} FetchAllWithContext(ctx context.Context) []map[string]interface{} MapScan(dest map[string]interface{}) error }
A RowSet represents an asyncronous hive operation. You can Reattach to a previously submitted hive operation if you have a valid thrift client, and the serialized Handle() from the prior operation.
type Status ¶
type Status struct { Error error // contains filtered or unexported fields }
Represents job status, including success state and time the status was updated.
func (*Status) IsComplete ¶
type TSaslTransport ¶
type TSaslTransport struct { OpeningContext context.Context // contains filtered or unexported fields }
TSaslTransport is a tranport thrift struct that uses SASL
func NewTSaslTransport ¶
func NewTSaslTransport(trans thrift.TTransport, host string, mechanismName string, configuration map[string]string) (*TSaslTransport, error)
NewTSaslTransport return a TSaslTransport
func (*TSaslTransport) Close ¶
func (p *TSaslTransport) Close() (err error)
Close close a SASL transport connection
func (*TSaslTransport) Flush ¶
func (p *TSaslTransport) Flush(ctx context.Context) (err error)
Flush the bytes in the buffer
func (*TSaslTransport) IsOpen ¶
func (p *TSaslTransport) IsOpen() bool
IsOpen opens a SASL connection
func (*TSaslTransport) Open ¶
func (p *TSaslTransport) Open() (err error)
Open check if a SASL transport connection is opened
func (*TSaslTransport) RemainingBytes ¶
func (p *TSaslTransport) RemainingBytes() uint64
RemainingBytes return the size of the unwrapped bytes
Click to show internal directories.
Click to hide internal directories.