public static interface TableInput.Builder extends CopyableBuilder<TableInput.Builder,TableInput>
Modifier and Type | Method and Description |
---|---|
TableInput.Builder |
description(String description)
Description of the table.
|
TableInput.Builder |
lastAccessTime(Instant lastAccessTime)
Last time the table was accessed.
|
TableInput.Builder |
lastAnalyzedTime(Instant lastAnalyzedTime)
Last time column statistics were computed for this table.
|
TableInput.Builder |
name(String name)
Name of the table.
|
TableInput.Builder |
owner(String owner)
Owner of the table.
|
TableInput.Builder |
parameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
|
TableInput.Builder |
partitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
TableInput.Builder |
partitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned.
|
TableInput.Builder |
partitionKeys(Consumer<Column.Builder>... partitionKeys)
A list of columns by which the table is partitioned.
|
TableInput.Builder |
retention(Integer retention)
Retention time for this table.
|
default TableInput.Builder |
storageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
TableInput.Builder |
storageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
TableInput.Builder |
tableType(String tableType)
The type of this table (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
TableInput.Builder |
viewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise
null . |
TableInput.Builder |
viewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise
null . |
copy
applyMutation, build
TableInput.Builder name(String name)
Name of the table.
name
- Name of the table.TableInput.Builder description(String description)
Description of the table.
description
- Description of the table.TableInput.Builder owner(String owner)
Owner of the table.
owner
- Owner of the table.TableInput.Builder lastAccessTime(Instant lastAccessTime)
Last time the table was accessed.
lastAccessTime
- Last time the table was accessed.TableInput.Builder lastAnalyzedTime(Instant lastAnalyzedTime)
Last time column statistics were computed for this table.
lastAnalyzedTime
- Last time column statistics were computed for this table.TableInput.Builder retention(Integer retention)
Retention time for this table.
retention
- Retention time for this table.TableInput.Builder storageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
storageDescriptor
- A storage descriptor containing information about the physical storage of this table.default TableInput.Builder storageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
This is a convenience that creates an instance of theStorageDescriptor.Builder
avoiding the need to
create one manually via StorageDescriptor.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to storageDescriptor(StorageDescriptor)
.storageDescriptor
- a consumer that will call methods on StorageDescriptor.Builder
storageDescriptor(StorageDescriptor)
TableInput.Builder partitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition
keys.TableInput.Builder partitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition
keys.TableInput.Builder partitionKeys(Consumer<Column.Builder>... partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #partitionKeys(List)
.partitionKeys
- a consumer that will call methods on List.Builder
#partitionKeys(List)
TableInput.Builder viewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise null
.
viewOriginalText
- If the table is a view, the original text of the view; otherwise null
.TableInput.Builder viewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise null
.
viewExpandedText
- If the table is a view, the expanded text of the view; otherwise null
.TableInput.Builder tableType(String tableType)
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
tableType
- The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).TableInput.Builder parameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
parameters
- Properties associated with this table, as a list of key-value pairs.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.