public class NoOpFlightSqlProducer extends Object implements FlightSqlProducer
FlightSqlProducer that throws on all FlightSql-specific operations.FlightSqlProducer.SchemasFlightProducer.CallContext, FlightProducer.ServerStreamListener, FlightProducer.StreamListener<T>| Constructor and Description |
|---|
NoOpFlightSqlProducer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptPut, acceptPutSubstraitPlan, beginSavepoint, beginTransaction, cancelFlightInfo, cancelQuery, closeSession, createPreparedSubstraitPlan, doAction, endSavepoint, endTransaction, getFlightInfo, getFlightInfoSubstraitPlan, getSchema, getSchemaPreparedStatement, getSchemaSubstraitPlan, getSessionOptions, getStream, listActions, renewFlightEndpoint, setSessionOptionsdoExchange, pollFlightInfopublic 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 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 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 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 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 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 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 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 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.