Module org.apache.arrow.flight.sql
Package org.apache.arrow.flight.sql
Class FlightSqlColumnMetadata
java.lang.Object
org.apache.arrow.flight.sql.FlightSqlColumnMetadata
Metadata for a column in a Flight SQL query.
 
This can be used with FlightSqlClient to access column's metadata contained in schemas returned by GetTables and query execution as follows:
FlightSqlColumnMetadata metadata = new FlightSqlColumnMetadata(field.getMetadata()); Integer precision = metadata.getPrecision();FlightSqlProducer can use this to set metadata on a column in a schema as follows:
   FlightSqlColumnMetadata metadata = new FlightSqlColumnMetadata.Builder()
         .precision(10)
         .scale(5)
         .build();
   Field field = new Field("column", new FieldType(..., metadata.getMetadataMap()), null);
 - 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder of FlightSqlColumnMetadata, used on FlightSqlProducer implementations.
- 
Constructor SummaryConstructorsConstructorDescriptionFlightSqlColumnMetadata(Map<String, String> metadataMap) Creates a new instance of FlightSqlColumnMetadata.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the catalog name.Returns the metadata map.Returns the precision / column size.getScale()Returns the scale / decimal digits.Returns the schema name.Returns the table name.Returns the type name.Returns if the column is auto incremented.Returns if the column is case-sensitive.Returns if the column is read only.Returns if the column is searchable.
- 
Constructor Details- 
FlightSqlColumnMetadataCreates a new instance of FlightSqlColumnMetadata.
 
- 
- 
Method Details- 
getMetadataMapReturns the metadata map.- Returns:
- The metadata map.
 
- 
getCatalogNameReturns the catalog name.- Returns:
- The catalog name.
 
- 
getSchemaNameReturns the schema name.- Returns:
- The schema name.
 
- 
getTableNameReturns the table name.- Returns:
- The table name.
 
- 
getTypeNameReturns the type name.- Returns:
- The type name.
 
- 
getPrecisionReturns the precision / column size.- Returns:
- The precision / column size.
 
- 
getScaleReturns the scale / decimal digits.- Returns:
- The scale / decimal digits.
 
- 
isAutoIncrementReturns if the column is auto incremented.- Returns:
- True if the column is auto incremented, false otherwise.
 
- 
isCaseSensitiveReturns if the column is case-sensitive.- Returns:
- True if the column is case-sensitive, false otherwise.
 
- 
isReadOnlyReturns if the column is read only.- Returns:
- True if the column is read only, false otherwise.
 
- 
isSearchableReturns if the column is searchable.- Returns:
- True if the column is searchable, false otherwise.
 
 
-