Module org.apache.arrow.flight.sql
Package org.apache.arrow.flight.sql
Class FlightSqlColumnMetadata.Builder
java.lang.Object
org.apache.arrow.flight.sql.FlightSqlColumnMetadata.Builder
- Enclosing class:
- FlightSqlColumnMetadata
Builder of FlightSqlColumnMetadata, used on FlightSqlProducer implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance of FlightSqlColumnMetadata.catalogName(String catalogName) Sets the catalog name.isAutoIncrement(boolean isAutoIncrement) Sets if the column is auto incremented.isCaseSensitive(boolean isCaseSensitive) Sets if the column is case-sensitive.isReadOnly(boolean isReadOnly) Sets if the column is read only.isSearchable(boolean isSearchable) Sets if the column is searchable.precision(int precision) Sets the precision / column size.Sets the comment describing the column.scale(int scale) Sets the scale / decimal digits.schemaName(String schemaName) Sets the schema name.Sets the table name.Sets the type name.
-
Constructor Details
-
Builder
public Builder()Creates a new instance of FlightSqlColumnMetadata.Builder.
-
-
Method Details
-
catalogName
Sets the catalog name.- Parameters:
catalogName- the catalog name.- Returns:
- This builder.
-
schemaName
Sets the schema name.- Parameters:
schemaName- The schema name.- Returns:
- This builder.
-
tableName
Sets the table name.- Parameters:
tableName- The table name.- Returns:
- This builder.
-
typeName
Sets the type name.- Parameters:
typeName- The type name.- Returns:
- This builder.
-
precision
Sets the precision / column size.- Parameters:
precision- The precision / column size.- Returns:
- This builder.
-
scale
Sets the scale / decimal digits.- Parameters:
scale- The scale / decimal digits.- Returns:
- This builder.
-
isAutoIncrement
Sets if the column is auto incremented.- Parameters:
isAutoIncrement- True if the column is auto incremented.- Returns:
- This builder.
-
isCaseSensitive
Sets if the column is case-sensitive.- Parameters:
isCaseSensitive- If the column is case-sensitive.- Returns:
- This builder.
-
isReadOnly
Sets if the column is read only.- Parameters:
isReadOnly- If the column is read only.- Returns:
- This builder.
-
isSearchable
Sets if the column is searchable.- Parameters:
isSearchable- If the column is searchable.- Returns:
- This builder.
-
remarks
Sets the comment describing the column.- Parameters:
remarks- The comment describing the column.- Returns:
- This builder.
-
build
Builds a new instance of FlightSqlColumnMetadata.- Returns:
- A new instance of FlightSqlColumnMetadata.
-