java.lang.Object
org.apache.arrow.flight.sql.NoOpFlightSqlProducer
org.apache.arrow.flight.sql.BasicFlightSqlProducer
- All Implemented Interfaces:
- AutoCloseable,- FlightProducer,- FlightSqlProducer
A 
FlightSqlProducer that implements getting FlightInfo for each metadata request.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.arrow.flight.FlightProducerFlightProducer.CallContext, FlightProducer.ServerStreamListener, FlightProducer.StreamListener<T>Nested classes/interfaces inherited from interface org.apache.arrow.flight.sql.FlightSqlProducerFlightSqlProducer.Schemas
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract <T extends com.google.protobuf.Message>
 List<FlightEndpoint>determineEndpoints(T request, FlightDescriptor flightDescriptor, Schema schema) Return a list of FlightEndpoints for the given request and FlightDescriptor.protected <T extends com.google.protobuf.Message>
 FlightInfogenerateFlightInfo(T request, FlightDescriptor descriptor, Schema schema) getFlightInfoCatalogs(FlightSql.CommandGetCatalogs request, FlightProducer.CallContext context, FlightDescriptor descriptor) Returns the available catalogs by returning a stream ofFlightSql.CommandGetCatalogsobjects inResultobjects.getFlightInfoCrossReference(FlightSql.CommandGetCrossReference request, FlightProducer.CallContext context, FlightDescriptor descriptor) Retrieve a description of the foreign key columns that reference the given table's primary key columnsFlightSql.CommandGetCrossReferenceobjects inResultobjects.getFlightInfoExportedKeys(FlightSql.CommandGetExportedKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor) Retrieves a description of the foreign key columns that reference the given table's primary key columnsFlightSql.CommandGetExportedKeysobjects inResultobjects.getFlightInfoImportedKeys(FlightSql.CommandGetImportedKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor) Retrieves a description of the primary key columns that are referenced by given table's foreign key columnsFlightSql.CommandGetImportedKeysobjects inResultobjects.getFlightInfoPrimaryKeys(FlightSql.CommandGetPrimaryKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor) Returns the available primary keys by returning a stream ofFlightSql.CommandGetPrimaryKeysobjects inResultobjects.getFlightInfoSchemas(FlightSql.CommandGetDbSchemas request, FlightProducer.CallContext context, FlightDescriptor descriptor) Returns the available schemas by returning a stream ofFlightSql.CommandGetDbSchemasobjects inResultobjects.getFlightInfoSqlInfo(FlightSql.CommandGetSqlInfo request, FlightProducer.CallContext context, FlightDescriptor descriptor) Returns the SQL Info of the server by returning aFlightSql.CommandGetSqlInfoin aResult.getFlightInfoTables(FlightSql.CommandGetTables request, FlightProducer.CallContext context, FlightDescriptor descriptor) Returns the available tables by returning a stream ofFlightSql.CommandGetTablesobjects inResultobjects.getFlightInfoTableTypes(FlightSql.CommandGetTableTypes request, FlightProducer.CallContext context, FlightDescriptor descriptor) Returns the available table types by returning a stream ofFlightSql.CommandGetTableTypesobjects inResultobjects.getFlightInfoTypeInfo(FlightSql.CommandGetXdbcTypeInfo request, FlightProducer.CallContext context, FlightDescriptor descriptor) Returns a description of all the data types supported by source.Methods inherited from class org.apache.arrow.flight.sql.NoOpFlightSqlProduceracceptPutPreparedStatementQuery, acceptPutPreparedStatementUpdate, acceptPutStatement, acceptPutStatementBulkIngest, close, closePreparedStatement, createPreparedStatement, getFlightInfoPreparedStatement, getFlightInfoStatement, getSchemaStatement, getStreamCatalogs, getStreamCrossReference, getStreamExportedKeys, getStreamImportedKeys, getStreamPreparedStatement, getStreamPrimaryKeys, getStreamSchemas, getStreamSqlInfo, getStreamStatement, getStreamTables, getStreamTableTypes, getStreamTypeInfo, listFlightsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.arrow.flight.FlightProducerdoExchange, pollFlightInfoMethods inherited from interface org.apache.arrow.flight.sql.FlightSqlProduceracceptPut, acceptPutSubstraitPlan, beginSavepoint, beginTransaction, cancelFlightInfo, cancelQuery, closeSession, createPreparedSubstraitPlan, doAction, endSavepoint, endTransaction, getFlightInfo, getFlightInfoSubstraitPlan, getSchema, getSchemaPreparedStatement, getSchemaSubstraitPlan, getSessionOptions, getStream, listActions, renewFlightEndpoint, setSessionOptions
- 
Constructor Details- 
BasicFlightSqlProducerpublic BasicFlightSqlProducer()
 
- 
- 
Method Details- 
getFlightInfoSqlInfopublic FlightInfo getFlightInfoSqlInfo(FlightSql.CommandGetSqlInfo request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerReturns the SQL Info of the server by returning aFlightSql.CommandGetSqlInfoin aResult.- Specified by:
- getFlightInfoSqlInfoin interface- FlightSqlProducer
- Overrides:
- getFlightInfoSqlInfoin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoTypeInfopublic FlightInfo getFlightInfoTypeInfo(FlightSql.CommandGetXdbcTypeInfo request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerReturns a description of all the data types supported by source.- Specified by:
- getFlightInfoTypeInfoin interface- FlightSqlProducer
- Overrides:
- getFlightInfoTypeInfoin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoCatalogspublic FlightInfo getFlightInfoCatalogs(FlightSql.CommandGetCatalogs request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerReturns the available catalogs by returning a stream ofFlightSql.CommandGetCatalogsobjects inResultobjects.- Specified by:
- getFlightInfoCatalogsin interface- FlightSqlProducer
- Overrides:
- getFlightInfoCatalogsin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoSchemaspublic FlightInfo getFlightInfoSchemas(FlightSql.CommandGetDbSchemas request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerReturns the available schemas by returning a stream ofFlightSql.CommandGetDbSchemasobjects inResultobjects.- Specified by:
- getFlightInfoSchemasin interface- FlightSqlProducer
- Overrides:
- getFlightInfoSchemasin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoTablespublic FlightInfo getFlightInfoTables(FlightSql.CommandGetTables request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerReturns the available tables by returning a stream ofFlightSql.CommandGetTablesobjects inResultobjects.- Specified by:
- getFlightInfoTablesin interface- FlightSqlProducer
- Overrides:
- getFlightInfoTablesin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoTableTypespublic FlightInfo getFlightInfoTableTypes(FlightSql.CommandGetTableTypes request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerReturns the available table types by returning a stream ofFlightSql.CommandGetTableTypesobjects inResultobjects.- Specified by:
- getFlightInfoTableTypesin interface- FlightSqlProducer
- Overrides:
- getFlightInfoTableTypesin class- NoOpFlightSqlProducer
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoPrimaryKeyspublic FlightInfo getFlightInfoPrimaryKeys(FlightSql.CommandGetPrimaryKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerReturns the available primary keys by returning a stream ofFlightSql.CommandGetPrimaryKeysobjects inResultobjects.- Specified by:
- getFlightInfoPrimaryKeysin interface- FlightSqlProducer
- Overrides:
- getFlightInfoPrimaryKeysin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoExportedKeyspublic FlightInfo getFlightInfoExportedKeys(FlightSql.CommandGetExportedKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerRetrieves a description of the foreign key columns that reference the given table's primary key columnsFlightSql.CommandGetExportedKeysobjects inResultobjects.- Specified by:
- getFlightInfoExportedKeysin interface- FlightSqlProducer
- Overrides:
- getFlightInfoExportedKeysin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoImportedKeyspublic FlightInfo getFlightInfoImportedKeys(FlightSql.CommandGetImportedKeys request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerRetrieves a description of the primary key columns that are referenced by given table's foreign key columnsFlightSql.CommandGetImportedKeysobjects inResultobjects.- Specified by:
- getFlightInfoImportedKeysin interface- FlightSqlProducer
- Overrides:
- getFlightInfoImportedKeysin class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
getFlightInfoCrossReferencepublic FlightInfo getFlightInfoCrossReference(FlightSql.CommandGetCrossReference request, FlightProducer.CallContext context, FlightDescriptor descriptor) Description copied from interface:FlightSqlProducerRetrieve a description of the foreign key columns that reference the given table's primary key columnsFlightSql.CommandGetCrossReferenceobjects inResultobjects.- Specified by:
- getFlightInfoCrossReferencein interface- FlightSqlProducer
- Overrides:
- getFlightInfoCrossReferencein class- NoOpFlightSqlProducer
- Parameters:
- request- request filter parameters.
- context- Per-call context.
- descriptor- The descriptor identifying the data stream.
- Returns:
- Metadata about the stream.
 
- 
determineEndpointsprotected abstract <T extends com.google.protobuf.Message> List<FlightEndpoint> determineEndpoints(T request, FlightDescriptor flightDescriptor, Schema schema) Return a list of FlightEndpoints for the given request and FlightDescriptor. This method should validate that the request is supported by this FlightSqlProducer.
- 
generateFlightInfoprotected <T extends com.google.protobuf.Message> FlightInfo generateFlightInfo(T request, FlightDescriptor descriptor, Schema schema) 
 
-