Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Query will initiate a query using the given query string, parameters, and memory allocator // against the iox instance. It returns an array.RecordReader from the arrow flight api. Query(ctx context.Context, query string, params []interface{}, mem memory.Allocator) (RecordReader, error) // GetSchema will retrieve a schema for the given table if this client supports that capability. // If this Client doesn't support this capability, it should return a flux error with the code // codes.Unimplemented. GetSchema(ctx context.Context, table string) (map[string]influxdbiox.ColumnType, error) }
Client provides a way to query an iox instance.
type Dependency ¶
type Dependency struct {
Provider Provider
}
Dependency holds the iox.Dependency to be injected.
type ErrorProvider ¶
type ErrorProvider struct{}
ErrorProvider is an implementation of the Provider that returns an error.
type Provider ¶
type Provider interface { // ClientFor will return a client with the given configuration. ClientFor(ctx context.Context, conf Config) (Client, error) }
Provider provides access to a Client with the given configuration.
func GetProvider ¶
GetProvider retrieves the iox Provider.
type RecordReader ¶ added in v0.192.0
type RecordReader interface { array.RecordReader Err() error }
RecordReader is similar to the RecordReader interface provided by Arrow's array package, but includes a method for detecting errors that are sent mid-stream.
Click to show internal directories.
Click to hide internal directories.