Class FlightSqlColumnMetadata.Builder

java.lang.Object
org.apache.arrow.flight.sql.FlightSqlColumnMetadata.Builder
Enclosing class:
FlightSqlColumnMetadata

public static class FlightSqlColumnMetadata.Builder extends Object
Builder of FlightSqlColumnMetadata, used on FlightSqlProducer implementations.
  • Constructor Details

    • Builder

      public Builder()
      Creates a new instance of FlightSqlColumnMetadata.Builder.
  • Method Details

    • catalogName

      public FlightSqlColumnMetadata.Builder catalogName(String catalogName)
      Sets the catalog name.
      Parameters:
      catalogName - the catalog name.
      Returns:
      This builder.
    • schemaName

      public FlightSqlColumnMetadata.Builder schemaName(String schemaName)
      Sets the schema name.
      Parameters:
      schemaName - The schema name.
      Returns:
      This builder.
    • tableName

      public FlightSqlColumnMetadata.Builder tableName(String tableName)
      Sets the table name.
      Parameters:
      tableName - The table name.
      Returns:
      This builder.
    • typeName

      public FlightSqlColumnMetadata.Builder typeName(String typeName)
      Sets the type name.
      Parameters:
      typeName - The type name.
      Returns:
      This builder.
    • precision

      public FlightSqlColumnMetadata.Builder precision(int precision)
      Sets the precision / column size.
      Parameters:
      precision - The precision / column size.
      Returns:
      This builder.
    • scale

      public FlightSqlColumnMetadata.Builder scale(int scale)
      Sets the scale / decimal digits.
      Parameters:
      scale - The scale / decimal digits.
      Returns:
      This builder.
    • isAutoIncrement

      public FlightSqlColumnMetadata.Builder isAutoIncrement(boolean isAutoIncrement)
      Sets if the column is auto incremented.
      Parameters:
      isAutoIncrement - True if the column is auto incremented.
      Returns:
      This builder.
    • isCaseSensitive

      public FlightSqlColumnMetadata.Builder isCaseSensitive(boolean isCaseSensitive)
      Sets if the column is case-sensitive.
      Parameters:
      isCaseSensitive - If the column is case-sensitive.
      Returns:
      This builder.
    • isReadOnly

      public FlightSqlColumnMetadata.Builder isReadOnly(boolean isReadOnly)
      Sets if the column is read only.
      Parameters:
      isReadOnly - If the column is read only.
      Returns:
      This builder.
    • isSearchable

      public FlightSqlColumnMetadata.Builder isSearchable(boolean isSearchable)
      Sets if the column is searchable.
      Parameters:
      isSearchable - If the column is searchable.
      Returns:
      This builder.
    • build

      public FlightSqlColumnMetadata build()
      Builds a new instance of FlightSqlColumnMetadata.
      Returns:
      A new instance of FlightSqlColumnMetadata.