Interface TableMetadata.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TableMetadata.Builder,TableMetadata>, SdkBuilder<TableMetadata.Builder,TableMetadata>, SdkPojo
Enclosing class:
TableMetadata

public static interface TableMetadata.Builder extends SdkPojo, CopyableBuilder<TableMetadata.Builder,TableMetadata>
  • Method Details

    • name

      The name of the table.

      Parameters:
      name - The name of the table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createTime

      TableMetadata.Builder createTime(Instant createTime)

      The time that the table was created.

      Parameters:
      createTime - The time that the table was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastAccessTime

      TableMetadata.Builder lastAccessTime(Instant lastAccessTime)

      The last time the table was accessed.

      Parameters:
      lastAccessTime - The last time the table was accessed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tableType

      TableMetadata.Builder tableType(String tableType)

      The type of table. In Athena, only EXTERNAL_TABLE is supported.

      Parameters:
      tableType - The type of table. In Athena, only EXTERNAL_TABLE is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columns

      A list of the columns in the table.

      Parameters:
      columns - A list of the columns in the table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columns

      TableMetadata.Builder columns(Column... columns)

      A list of the columns in the table.

      Parameters:
      columns - A list of the columns in the table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columns

      A list of the columns in the table.

      This is a convenience method that creates an instance of the Column.Builder avoiding the need to create one manually via Column.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to columns(List<Column>).

      Parameters:
      columns - a consumer that will call methods on Column.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • partitionKeys

      TableMetadata.Builder partitionKeys(Collection<Column> partitionKeys)

      A list of the partition keys in the table.

      Parameters:
      partitionKeys - A list of the partition keys in the table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partitionKeys

      TableMetadata.Builder partitionKeys(Column... partitionKeys)

      A list of the partition keys in the table.

      Parameters:
      partitionKeys - A list of the partition keys in the table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partitionKeys

      TableMetadata.Builder partitionKeys(Consumer<Column.Builder>... partitionKeys)

      A list of the partition keys in the table.

      This is a convenience method that creates an instance of the Column.Builder avoiding the need to create one manually via Column.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to partitionKeys(List<Column>).

      Parameters:
      partitionKeys - a consumer that will call methods on Column.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • parameters

      TableMetadata.Builder parameters(Map<String,String> parameters)

      A set of custom key/value pairs for table properties.

      Parameters:
      parameters - A set of custom key/value pairs for table properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.