public class FlightSqlScenarioProducer extends Object implements FlightSqlProducer
FlightSqlProducer.SchemasFlightProducer.CallContext, FlightProducer.ServerStreamListener, FlightProducer.StreamListener<T>| Constructor and Description |
|---|
FlightSqlScenarioProducer(BufferAllocator allocator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptPut, cancelFlightInfo, closeSession, doAction, getFlightInfo, getSchema, getSessionOptions, getStream, listActions, renewFlightEndpoint, setSessionOptionsdoExchange, pollFlightInfopublic FlightSqlScenarioProducer(BufferAllocator allocator)
public void beginSavepoint(FlightSql.ActionBeginSavepointRequest request, FlightProducer.CallContext context, FlightProducer.StreamListener<FlightSql.ActionBeginSavepointResult> listener)
FlightSqlProducerbeginSavepoint in interface FlightSqlProducerrequest - The savepoint request.context - Per-call context.listener - The newly created savepoint ID.public void beginTransaction(FlightSql.ActionBeginTransactionRequest request, FlightProducer.CallContext context, FlightProducer.StreamListener<FlightSql.ActionBeginTransactionResult> listener)
FlightSqlProducerbeginTransaction in interface FlightSqlProducerrequest - The transaction request.context - Per-call context.listener - The newly created transaction ID.public void cancelQuery(FlightInfo info, FlightProducer.CallContext context, FlightProducer.StreamListener<CancelResult> listener)
FlightSqlProducercancelQuery in interface FlightSqlProducerinfo - The FlightInfo of the query to cancel.context - Per-call context.listener - Whether cancellation succeeded.public void createPreparedStatement(FlightSql.ActionCreatePreparedStatementRequest request, FlightProducer.CallContext context, FlightProducer.StreamListener<Result> listener)
FlightSqlProducerFlightSql.ActionCreatePreparedStatementResult object in a Result
object.createPreparedStatement in interface FlightSqlProducerrequest - The sql command to generate the prepared statement.context - Per-call context.listener - A stream of responses.public void createPreparedSubstraitPlan(FlightSql.ActionCreatePreparedSubstraitPlanRequest request, FlightProducer.CallContext context, FlightProducer.StreamListener<FlightSql.ActionCreatePreparedStatementResult> listener)
FlightSqlProducercreatePreparedSubstraitPlan in interface FlightSqlProducerrequest - The plan.context - Per-call context.listener - The resulting prepared statement.public void closePreparedStatement(FlightSql.ActionClosePreparedStatementRequest request, FlightProducer.CallContext context, FlightProducer.StreamListener<Result> listener)
FlightSqlProducerclosePreparedStatement in interface FlightSqlProducerrequest - The sql command to generate the prepared statement.context - Per-call context.listener - A stream of responses.public void endSavepoint(FlightSql.ActionEndSavepointRequest request, FlightProducer.CallContext context, FlightProducer.StreamListener<Result> listener)
FlightSqlProducerendSavepoint in interface FlightSqlProducerrequest - The savepoint, and whether to release/rollback.context - Per-call context.listener - Call StreamListener#onCompleted() or
StreamListener#onError(Throwable) when done; do not send a result.public void endTransaction(FlightSql.ActionEndTransactionRequest request, FlightProducer.CallContext context, FlightProducer.StreamListener<Result> listener)
FlightSqlProducerendTransaction in interface FlightSqlProducerrequest - The transaction, and whether to release/rollback.context - Per-call context.listener - Call StreamListener#onCompleted() or
StreamListener#onError(Throwable) when done; do not send a result.public FlightInfo getFlightInfoStatement(FlightSql.CommandStatementQuery command, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducergetFlightInfoStatement in interface FlightSqlProducercommand - The SQL query.context - Per-call context.descriptor - The descriptor identifying the data stream.public FlightInfo getFlightInfoSubstraitPlan(FlightSql.CommandStatementSubstraitPlan command, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducergetFlightInfoSubstraitPlan in interface FlightSqlProducercommand - The Substrait plan.context - Per-call context.descriptor - The descriptor identifying the data stream.public FlightInfo getFlightInfoPreparedStatement(FlightSql.CommandPreparedStatementQuery command, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducergetFlightInfoPreparedStatement in interface FlightSqlProducercommand - The prepared statement to generate the data stream.context - Per-call context.descriptor - The descriptor identifying the data stream.public SchemaResult getSchemaStatement(FlightSql.CommandStatementQuery command, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducergetSchemaStatement in interface FlightSqlProducercommand - The SQL query.context - Per-call context.descriptor - The descriptor identifying the data stream.public SchemaResult getSchemaPreparedStatement(FlightSql.CommandPreparedStatementQuery command, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducergetSchemaPreparedStatement in interface FlightSqlProducercommand - The prepared statement handle.context - Per-call context.descriptor - The descriptor identifying the data stream.public SchemaResult getSchemaSubstraitPlan(FlightSql.CommandStatementSubstraitPlan command, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducergetSchemaSubstraitPlan in interface FlightSqlProducercommand - The Substrait plan.context - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamStatement(FlightSql.TicketStatementQuery ticket, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamStatement in interface FlightSqlProducerticket - Ticket message containing the statement handle.context - Per-call context.listener - An interface for sending data back to the client.public void getStreamPreparedStatement(FlightSql.CommandPreparedStatementQuery command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamPreparedStatement in interface FlightSqlProducercommand - The prepared statement to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public Runnable acceptPutStatement(FlightSql.CommandStatementUpdate command, FlightProducer.CallContext context, FlightStream flightStream, FlightProducer.StreamListener<PutResult> ackStream)
FlightSqlProducer`PutResult`s must be in the form of a FlightSql.DoPutUpdateResult.
acceptPutStatement in interface FlightSqlProducercommand - The sql command to generate the data stream.context - Per-call context.flightStream - The data stream being uploaded.ackStream - The result data stream.public Runnable acceptPutSubstraitPlan(FlightSql.CommandStatementSubstraitPlan command, FlightProducer.CallContext context, FlightStream flightStream, FlightProducer.StreamListener<PutResult> ackStream)
FlightSqlProduceracceptPutSubstraitPlan in interface FlightSqlProducercommand - The Substrait plan to evaluate.context - Per-call context.flightStream - The data stream being uploaded.ackStream - The result data stream.public Runnable acceptPutPreparedStatementUpdate(FlightSql.CommandPreparedStatementUpdate command, FlightProducer.CallContext context, FlightStream flightStream, FlightProducer.StreamListener<PutResult> ackStream)
FlightSqlProducer`PutResult`s must be in the form of a FlightSql.DoPutUpdateResult.
acceptPutPreparedStatementUpdate in interface FlightSqlProducercommand - The prepared statement to generate the data stream.context - Per-call context.flightStream - The data stream being uploaded.ackStream - The result data stream.public Runnable acceptPutPreparedStatementQuery(FlightSql.CommandPreparedStatementQuery command, FlightProducer.CallContext context, FlightStream flightStream, FlightProducer.StreamListener<PutResult> ackStream)
FlightSqlProduceracceptPutPreparedStatementQuery in interface FlightSqlProducercommand - The prepared statement the parameter values will bind to.context - Per-call context.flightStream - The data stream being uploaded.ackStream - The result data stream.public FlightInfo getFlightInfoSqlInfo(FlightSql.CommandGetSqlInfo request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetSqlInfo in a Result.getFlightInfoSqlInfo in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamSqlInfo(FlightSql.CommandGetSqlInfo command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamSqlInfo in interface FlightSqlProducercommand - The command to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public void getStreamTypeInfo(FlightSql.CommandGetXdbcTypeInfo request, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamTypeInfo in interface FlightSqlProducercontext - Per-call context.listener - An interface for sending data back to the client.public FlightInfo getFlightInfoTypeInfo(FlightSql.CommandGetXdbcTypeInfo request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducergetFlightInfoTypeInfo in interface FlightSqlProducerrequest - request filter parameters.descriptor - The descriptor identifying the data stream.public FlightInfo getFlightInfoCatalogs(FlightSql.CommandGetCatalogs request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetCatalogs objects in Result objects.getFlightInfoCatalogs in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamCatalogs(FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamCatalogs in interface FlightSqlProducercontext - Per-call context.listener - An interface for sending data back to the client.public FlightInfo getFlightInfoSchemas(FlightSql.CommandGetDbSchemas request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetDbSchemas objects in Result objects.getFlightInfoSchemas in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamSchemas(FlightSql.CommandGetDbSchemas command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamSchemas in interface FlightSqlProducercommand - The command to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public FlightInfo getFlightInfoTables(FlightSql.CommandGetTables request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetTables objects in Result objects.getFlightInfoTables in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamTables(FlightSql.CommandGetTables command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamTables in interface FlightSqlProducercommand - The command to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public FlightInfo getFlightInfoTableTypes(FlightSql.CommandGetTableTypes request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetTableTypes objects in Result objects.getFlightInfoTableTypes in interface FlightSqlProducercontext - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamTableTypes(FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamTableTypes in interface FlightSqlProducercontext - Per-call context.listener - An interface for sending data back to the client.public FlightInfo getFlightInfoPrimaryKeys(FlightSql.CommandGetPrimaryKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetPrimaryKeys objects in Result objects.getFlightInfoPrimaryKeys in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamPrimaryKeys(FlightSql.CommandGetPrimaryKeys command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamPrimaryKeys in interface FlightSqlProducercommand - The command to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public FlightInfo getFlightInfoExportedKeys(FlightSql.CommandGetExportedKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetExportedKeys objects in Result objects.getFlightInfoExportedKeys in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public FlightInfo getFlightInfoImportedKeys(FlightSql.CommandGetImportedKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetImportedKeys objects in Result objects.getFlightInfoImportedKeys in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public FlightInfo getFlightInfoCrossReference(FlightSql.CommandGetCrossReference request, FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightSqlProducerFlightSql.CommandGetCrossReference objects in Result objects.getFlightInfoCrossReference in interface FlightSqlProducerrequest - request filter parameters.context - Per-call context.descriptor - The descriptor identifying the data stream.public void getStreamExportedKeys(FlightSql.CommandGetExportedKeys command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamExportedKeys in interface FlightSqlProducercommand - The command to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public void getStreamImportedKeys(FlightSql.CommandGetImportedKeys command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamImportedKeys in interface FlightSqlProducercommand - The command to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public void getStreamCrossReference(FlightSql.CommandGetCrossReference command, FlightProducer.CallContext context, FlightProducer.ServerStreamListener listener)
FlightSqlProducergetStreamCrossReference in interface FlightSqlProducercommand - The command to generate the data stream.context - Per-call context.listener - An interface for sending data back to the client.public void close()
throws Exception
close in interface AutoCloseableExceptionpublic void listFlights(FlightProducer.CallContext context, Criteria criteria, FlightProducer.StreamListener<FlightInfo> listener)
FlightProducerlistFlights in interface FlightProducercontext - Per-call context.criteria - Application-defined criteria for filtering streams.listener - An interface for sending data back to the client.Copyright © 2024 The Apache Software Foundation. All rights reserved.