@Namespace(value="arrow::flight") @NoOffset @Properties(inherit=arrow_flight.class) public class FlightServerBase extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FlightServerBase() |
FlightServerBase(long size)
Native array allocator.
|
FlightServerBase(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
DoAction(ServerCallContext context,
Action action,
ResultStream result)
\brief Execute an action, return stream of zero or more results
|
Status |
DoExchange(ServerCallContext context,
FlightMessageReader reader,
FlightMessageWriter writer)
\brief Process a bidirectional stream of IPC payloads
|
Status |
DoGet(ServerCallContext context,
Ticket request,
FlightDataStream stream)
\brief Get a stream of IPC payloads to put on the wire
|
Status |
DoPut(ServerCallContext context,
FlightMessageReader reader,
FlightMetadataWriter writer)
\brief Process a stream of IPC payloads sent from a client
|
Status |
GetFlightInfo(ServerCallContext context,
FlightDescriptor request,
FlightInfo info)
\brief Retrieve the schema and an access plan for the indicated
descriptor
|
FlightServerBase |
getPointer(long i) |
Status |
GetSchema(ServerCallContext context,
FlightDescriptor request,
SchemaResult schema)
\brief Retrieve the schema for the indicated descriptor
|
int |
GotSignal()
\brief Query whether Serve() was interrupted by a signal.
|
Status |
Init(FlightServerOptions options)
\brief Initialize a Flight server listening at the given location.
|
Status |
ListActions(ServerCallContext context,
ActionType actions)
\brief Retrieve the list of available actions
|
Status |
ListFlights(ServerCallContext context,
Criteria criteria,
FlightListing listings)
\brief Retrieve a list of available fields given an optional opaque
criteria
|
int |
port()
\brief Get the port that the Flight server is listening on.
|
FlightServerBase |
position(long position) |
Status |
Serve()
\brief Start serving.
|
Status |
SetShutdownOnSignals(int[] sigs) |
Status |
SetShutdownOnSignals(IntBuffer sigs) |
Status |
SetShutdownOnSignals(IntPointer sigs)
\brief Set the server to stop when receiving any of the given signal
numbers.
|
Status |
Shutdown()
\brief Shut down the server.
|
Status |
Wait()
\brief Block until server is terminated with Shutdown.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public FlightServerBase(Pointer p)
Pointer(Pointer)
.public FlightServerBase(long size)
Pointer.position(long)
.public FlightServerBase()
public FlightServerBase position(long position)
public FlightServerBase getPointer(long i)
getPointer
in class Pointer
@ByVal public Status Init(@Const @ByRef FlightServerOptions options)
options
- [in] The configuration for this server.public int port()
@ByVal public Status SetShutdownOnSignals(@StdVector IntPointer sigs)
@ByVal public Status SetShutdownOnSignals(@StdVector IntBuffer sigs)
@ByVal public Status SetShutdownOnSignals(@StdVector int[] sigs)
@ByVal public Status Serve()
public int GotSignal()
@ByVal public Status Shutdown()
@ByVal public Status ListFlights(@Const @ByRef ServerCallContext context, @Const Criteria criteria, @UniquePtr FlightListing listings)
context
- [in] The call context.criteria
- [in] may be nulllistings
- [out] the returned listings iterator@ByVal public Status GetFlightInfo(@Const @ByRef ServerCallContext context, @Const @ByRef FlightDescriptor request, @UniquePtr FlightInfo info)
context
- [in] The call context.request
- [in] may be nullinfo
- [out] the returned flight info provider@ByVal public Status GetSchema(@Const @ByRef ServerCallContext context, @Const @ByRef FlightDescriptor request, @UniquePtr SchemaResult schema)
context
- [in] The call context.request
- [in] may be nullschema
- [out] the returned flight schema provider@ByVal public Status DoGet(@Const @ByRef ServerCallContext context, @Const @ByRef Ticket request, @UniquePtr FlightDataStream stream)
context
- [in] The call context.request
- [in] an opaque ticketstream
- [out] the returned stream provider@ByVal public Status DoPut(@Const @ByRef ServerCallContext context, @UniquePtr FlightMessageReader reader, @UniquePtr FlightMetadataWriter writer)
context
- [in] The call context.reader
- [in] a sequence of uploaded record batcheswriter
- [in] send metadata back to the client@ByVal public Status DoExchange(@Const @ByRef ServerCallContext context, @UniquePtr FlightMessageReader reader, @UniquePtr FlightMessageWriter writer)
context
- [in] The call context.reader
- [in] a sequence of uploaded record batcheswriter
- [in] send data back to the client@ByVal public Status DoAction(@Const @ByRef ServerCallContext context, @Const @ByRef Action action, @UniquePtr ResultStream result)
context
- [in] The call context.action
- [in] the action to execute, with type and bodyresult
- [out] the result iterator@ByVal public Status ListActions(@Const @ByRef ServerCallContext context, @StdVector ActionType actions)
context
- [in] The call context.actions
- [out] a vector of available action typesCopyright © 2022. All rights reserved.