@Namespace(value="arrow::flight") @NoOffset @Properties(inherit=arrow_flight.class) public class FlightClient extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FlightClient(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
Authenticate(FlightCallOptions options,
ClientAuthHandler auth_handler)
\brief Authenticate to the server using the given handler.
|
StringPairResult |
AuthenticateBasicToken(FlightCallOptions options,
BytePointer username,
BytePointer password) |
StringPairResult |
AuthenticateBasicToken(FlightCallOptions options,
String username,
String password)
\brief Authenticate to the server using basic HTTP style authentication.
|
static Status |
Connect(Location location,
FlightClient client)
\brief Connect to an unauthenticated flight service
|
static Status |
Connect(Location location,
FlightClientOptions options,
FlightClient client)
\brief Connect to an unauthenticated flight service
|
Status |
DoAction(Action action,
ResultStream results) |
Status |
DoAction(FlightCallOptions options,
Action action,
ResultStream results)
\brief Perform the indicated action, returning an iterator to the stream
of results, if any
|
Status |
DoExchange(FlightCallOptions options,
FlightDescriptor descriptor,
FlightStreamWriter writer,
FlightStreamReader reader) |
Status |
DoExchange(FlightDescriptor descriptor,
FlightStreamWriter writer,
FlightStreamReader reader) |
Status |
DoGet(FlightCallOptions options,
Ticket ticket,
FlightStreamReader stream)
\brief Given a flight ticket and schema, request to be sent the
stream.
|
Status |
DoGet(Ticket ticket,
FlightStreamReader stream) |
Status |
DoPut(FlightCallOptions options,
FlightDescriptor descriptor,
Schema schema,
FlightStreamWriter stream,
FlightMetadataReader reader)
\brief Upload data to a Flight described by the given
descriptor.
|
Status |
DoPut(FlightDescriptor descriptor,
Schema schema,
FlightStreamWriter stream,
FlightMetadataReader reader) |
Status |
GetFlightInfo(FlightCallOptions options,
FlightDescriptor descriptor,
FlightInfo info)
\brief Request access plan for a single flight, which may be an existing
dataset or a command to be executed
|
Status |
GetFlightInfo(FlightDescriptor descriptor,
FlightInfo info) |
Status |
GetSchema(FlightCallOptions options,
FlightDescriptor descriptor,
SchemaResult schema_result)
\brief Request schema for a single flight, which may be an existing
dataset or a command to be executed
|
Status |
GetSchema(FlightDescriptor descriptor,
SchemaResult schema_result) |
Status |
ListActions(ActionType actions) |
Status |
ListActions(FlightCallOptions options,
ActionType actions)
\brief Retrieve a list of available Action types
|
Status |
ListFlights(FlightCallOptions options,
Criteria criteria,
FlightListing listing)
\brief List available flights given indicated filter criteria
|
Status |
ListFlights(FlightListing listing)
\brief List all available flights known to the server
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public FlightClient(Pointer p)
Pointer(Pointer)
.@ByVal public static Status Connect(@Const @ByRef Location location, @UniquePtr FlightClient client)
location
- [in] the URIclient
- [out] the created FlightClient@ByVal public static Status Connect(@Const @ByRef Location location, @Const @ByRef FlightClientOptions options, @UniquePtr FlightClient client)
location
- [in] the URIoptions
- [in] Other options for setting up the clientclient
- [out] the created FlightClient@ByVal public Status Authenticate(@Const @ByRef FlightCallOptions options, @UniquePtr ClientAuthHandler auth_handler)
options
- [in] Per-RPC optionsauth_handler
- [in] The authentication mechanism to use@ByVal public StringPairResult AuthenticateBasicToken(@Const @ByRef FlightCallOptions options, @StdString String username, @StdString String password)
options
- [in] Per-RPC optionsusername
- [in] Username to usepassword
- [in] Password to use@ByVal public StringPairResult AuthenticateBasicToken(@Const @ByRef FlightCallOptions options, @StdString BytePointer username, @StdString BytePointer password)
@ByVal public Status DoAction(@Const @ByRef FlightCallOptions options, @Const @ByRef Action action, @UniquePtr ResultStream results)
options
- [in] Per-RPC optionsaction
- [in] the action to be performedresults
- [out] an iterator object for reading the returned results@ByVal public Status DoAction(@Const @ByRef Action action, @UniquePtr ResultStream results)
@ByVal public Status ListActions(@Const @ByRef FlightCallOptions options, @StdVector ActionType actions)
options
- [in] Per-RPC optionsactions
- [out] the available actions@ByVal public Status ListActions(@StdVector ActionType actions)
@ByVal public Status GetFlightInfo(@Const @ByRef FlightCallOptions options, @Const @ByRef FlightDescriptor descriptor, @UniquePtr FlightInfo info)
options
- [in] Per-RPC optionsdescriptor
- [in] the dataset request, whether a named dataset or
commandinfo
- [out] the FlightInfo describing where to access the dataset@ByVal public Status GetFlightInfo(@Const @ByRef FlightDescriptor descriptor, @UniquePtr FlightInfo info)
@ByVal public Status GetSchema(@Const @ByRef FlightCallOptions options, @Const @ByRef FlightDescriptor descriptor, @UniquePtr SchemaResult schema_result)
options
- [in] Per-RPC optionsdescriptor
- [in] the dataset request, whether a named dataset or
commandschema_result
- [out] the SchemaResult describing the dataset schema@ByVal public Status GetSchema(@Const @ByRef FlightDescriptor descriptor, @UniquePtr SchemaResult schema_result)
@ByVal public Status ListFlights(@UniquePtr FlightListing listing)
listing
- [out] an iterator that returns a FlightInfo for each flight@ByVal public Status ListFlights(@Const @ByRef FlightCallOptions options, @Const @ByRef Criteria criteria, @UniquePtr FlightListing listing)
options
- [in] Per-RPC optionscriteria
- [in] the filter criteria (opaque)listing
- [out] an iterator that returns a FlightInfo for each flight@ByVal public Status DoGet(@Const @ByRef FlightCallOptions options, @Const @ByRef Ticket ticket, @UniquePtr FlightStreamReader stream)
options
- [in] Per-RPC optionsticket
- [in] The flight ticket to usestream
- [out] the returned RecordBatchReader@ByVal public Status DoGet(@Const @ByRef Ticket ticket, @UniquePtr FlightStreamReader stream)
@ByVal public Status DoPut(@Const @ByRef FlightCallOptions options, @Const @ByRef FlightDescriptor descriptor, @Const @SharedPtr @ByRef Schema schema, @UniquePtr FlightStreamWriter stream, @UniquePtr FlightMetadataReader reader)
options
- [in] Per-RPC optionsdescriptor
- [in] the descriptor of the streamschema
- [in] the schema for the data to uploadstream
- [out] a writer to write record batches toreader
- [out] a reader for application metadata from the server@ByVal public Status DoPut(@Const @ByRef FlightDescriptor descriptor, @Const @SharedPtr @ByRef Schema schema, @UniquePtr FlightStreamWriter stream, @UniquePtr FlightMetadataReader reader)
@ByVal public Status DoExchange(@Const @ByRef FlightCallOptions options, @Const @ByRef FlightDescriptor descriptor, @UniquePtr FlightStreamWriter writer, @UniquePtr FlightStreamReader reader)
@ByVal public Status DoExchange(@Const @ByRef FlightDescriptor descriptor, @UniquePtr FlightStreamWriter writer, @UniquePtr FlightStreamReader reader)
Copyright © 2022. All rights reserved.