xapi

package
v0.0.0-...-887f819 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportExpression

func SupportExpression(client kv.Client, expr *tipb.Expr) bool

SupportExpression checks if the expression is supported by the client.

Types

type SelectResult

type SelectResult struct {
	// contains filtered or unexported fields
}

SelectResult is used to get response rows from SelectRequest.

func Select

func Select(client kv.Client, req *tipb.SelectRequest, concurrency int) (*SelectResult, error)

Select do a select request, returns SelectResult.

func (*SelectResult) Close

func (r *SelectResult) Close() error

Close closes SelectResult.

func (*SelectResult) Next

func (r *SelectResult) Next() (subResult *SubResult, err error)

Next returns the next row.

type SubResult

type SubResult struct {
	// contains filtered or unexported fields
}

SubResult represents a subset of select result.

func (*SubResult) Close

func (r *SubResult) Close() error

Close closes the sub result.

func (*SubResult) Next

func (r *SubResult) Next() (handle int64, data []types.Datum, err error)

Next returns the next row of the sub result. If no more row to return, data would be nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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