Documentation
¶
Index ¶
- func EndOffset(info *flight.FlightInfo) ([]byte, error)
- func UnauthError(err error) bool
- type Client
- func (c *Client) Close() error
- func (c *Client) Dead() <-chan struct{}
- func (c *Client) DeadErr() error
- func (c *Client) DoGet(ctx context.Context, ticket *flight.Ticket) (flight.FlightService_DoGetClient, error)
- func (c *Client) DoPut(ctx context.Context, desc contract.DoPutRequest, schema *arrow.Schema, ...) error
- func (c *Client) Flush(ctx context.Context) error
- func (c *Client) GetFlightInfo(ctx context.Context, req contract.GetFlightInfoRequest) (*flight.FlightInfo, error)
- func (c *Client) GetSchema(ctx context.Context, req contract.GetFlightInfoRequest) (*arrow.Schema, error)
- func (c *Client) Healthy() bool
- func (c *Client) ListActions(ctx context.Context) ([]*flight.ActionType, error)
- func (c *Client) ListTables(ctx context.Context) (*contract.ListTablesResponse, error)
- func (c *Client) Shutdown(ctx context.Context) error
- func (c *Client) Status(ctx context.Context) (*contract.StatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndOffset ¶
func EndOffset(info *flight.FlightInfo) ([]byte, error)
EndOffset extracts the snapshot handoff offset from a snapshot FlightInfo's app_metadata (contract §6/§7).
func UnauthError ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a plugin Flight client with auth, heartbeat, and health monitoring. No mutex around RPCs: grpc.ClientConn is safe for concurrent use and multiplexes over HTTP/2. A shared lock would starve the heartbeat during long DoPuts — liveness never waits on the data path.
func (*Client) DoPut ¶
func (c *Client) DoPut(ctx context.Context, desc contract.DoPutRequest, schema *arrow.Schema, records []arrow.RecordBatch) error
DoPut writes records to a sink (contract §10). Uses flight.NewRecordWriter for correct wire format. Drains ack stream to surface sink errors.
func (*Client) GetFlightInfo ¶
func (c *Client) GetFlightInfo(ctx context.Context, req contract.GetFlightInfoRequest) (*flight.FlightInfo, error)
func (*Client) ListActions ¶
func (*Client) ListTables ¶
Click to show internal directories.
Click to hide internal directories.