Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputResults ¶
func OutputResults(results []*QueryRes)
Types ¶
type QueryEngine ¶
type QueryEngine struct {
// contains filtered or unexported fields
}
Apache phoenix query engine supporting multiple query modes
func NewQueryEngine ¶
func NewQueryEngine(server string, concurrency int, num_connections int) (*QueryEngine, error)
Create a new query engine Connection pool is prepared
func (*QueryEngine) QueryConnectionPoolMode ¶
func (this *QueryEngine) QueryConnectionPoolMode(queries []string, single bool) []*QueryRes
Execute the queries using the pre-initialized connections in the connection pool.
func (*QueryEngine) QuerySequential ¶
func (this *QueryEngine) QuerySequential(queries []string, single bool) ([]*QueryRes, error)
Execute the queries using sequential mode
func (*QueryEngine) QueryThreadPoolMode ¶
func (this *QueryEngine) QueryThreadPoolMode(queries []string, single bool) []*QueryRes
Execute the queries in thread pool mode. Each query is executed in a thread.
Click to show internal directories.
Click to hide internal directories.