gw_phoenix

package
v0.0.0-...-4419cec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2017 License: MIT Imports: 4 Imported by: 0

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.

type QueryRes

type QueryRes struct {
	Res Result
	Err error
}

type Result

type Result interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL