public static interface Table.Builder extends SdkPojo, CopyableBuilder<Table.Builder,Table>
Modifier and Type | Method and Description |
---|---|
Table.Builder |
createdBy(String createdBy)
Person or entity who created the table.
|
Table.Builder |
createTime(Instant createTime)
Time when the table definition was created in the Data Catalog.
|
Table.Builder |
databaseName(String databaseName)
Name of the metadata database where the table metadata resides.
|
Table.Builder |
description(String description)
Description of the table.
|
Table.Builder |
lastAccessTime(Instant lastAccessTime)
Last time the table was accessed.
|
Table.Builder |
lastAnalyzedTime(Instant lastAnalyzedTime)
Last time column statistics were computed for this table.
|
Table.Builder |
name(String name)
Name of the table.
|
Table.Builder |
owner(String owner)
Owner of the table.
|
Table.Builder |
parameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
|
Table.Builder |
partitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
Table.Builder |
partitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned.
|
Table.Builder |
partitionKeys(Consumer<Column.Builder>... partitionKeys)
A list of columns by which the table is partitioned.
|
Table.Builder |
retention(Integer retention)
Retention time for this table.
|
default Table.Builder |
storageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
Table.Builder |
storageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
Table.Builder |
tableType(String tableType)
The type of this table (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
Table.Builder |
updateTime(Instant updateTime)
Last time the table was updated.
|
Table.Builder |
viewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise
null . |
Table.Builder |
viewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise
null . |
copy
applyMutation, build
Table.Builder name(String name)
Name of the table. For Hive compatibility, this must be entirely lowercase.
name
- Name of the table. For Hive compatibility, this must be entirely lowercase.Table.Builder databaseName(String databaseName)
Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase.
databaseName
- Name of the metadata database where the table metadata resides. For Hive compatibility, this must be
all lowercase.Table.Builder description(String description)
Description of the table.
description
- Description of the table.Table.Builder owner(String owner)
Owner of the table.
owner
- Owner of the table.Table.Builder createTime(Instant createTime)
Time when the table definition was created in the Data Catalog.
createTime
- Time when the table definition was created in the Data Catalog.Table.Builder updateTime(Instant updateTime)
Last time the table was updated.
updateTime
- Last time the table was updated.Table.Builder lastAccessTime(Instant lastAccessTime)
Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.
lastAccessTime
- Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.Table.Builder lastAnalyzedTime(Instant lastAnalyzedTime)
Last time column statistics were computed for this table.
lastAnalyzedTime
- Last time column statistics were computed for this table.Table.Builder retention(Integer retention)
Retention time for this table.
retention
- Retention time for this table.Table.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 Table.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)
Table.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.Table.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.Table.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)
Table.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
.Table.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
.Table.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.).Table.Builder parameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
parameters
- These key-value pairs define properties associated with the table.Table.Builder createdBy(String createdBy)
Person or entity who created the table.
createdBy
- Person or entity who created the table.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.