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 Summary
Modifier and TypeClassDescriptionstatic class
Builder of FlightSqlColumnMetadata, used on FlightSqlProducer implementations. -
Constructor Summary
ConstructorDescriptionFlightSqlColumnMetadata
(Map<String, String> metadataMap) Creates a new instance of FlightSqlColumnMetadata. -
Method Summary
Modifier 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
-
FlightSqlColumnMetadata
Creates a new instance of FlightSqlColumnMetadata.
-
-
Method Details
-
getMetadataMap
Returns the metadata map.- Returns:
- The metadata map.
-
getCatalogName
Returns the catalog name.- Returns:
- The catalog name.
-
getSchemaName
Returns the schema name.- Returns:
- The schema name.
-
getTableName
Returns the table name.- Returns:
- The table name.
-
getTypeName
Returns the type name.- Returns:
- The type name.
-
getPrecision
Returns the precision / column size.- Returns:
- The precision / column size.
-
getScale
Returns the scale / decimal digits.- Returns:
- The scale / decimal digits.
-
isAutoIncrement
Returns if the column is auto incremented.- Returns:
- True if the column is auto incremented, false otherwise.
-
isCaseSensitive
Returns if the column is case-sensitive.- Returns:
- True if the column is case-sensitive, false otherwise.
-
isReadOnly
Returns if the column is read only.- Returns:
- True if the column is read only, false otherwise.
-
isSearchable
Returns if the column is searchable.- Returns:
- True if the column is searchable, false otherwise.
-