public static interface StorageDescriptor.Builder extends CopyableBuilder<StorageDescriptor.Builder,StorageDescriptor>
Modifier and Type | Method and Description |
---|---|
StorageDescriptor.Builder |
bucketColumns(Collection<String> bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
|
StorageDescriptor.Builder |
bucketColumns(String... bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
|
StorageDescriptor.Builder |
columns(Collection<Column> columns)
A list of the
Columns in the table. |
StorageDescriptor.Builder |
columns(Column... columns)
A list of the
Columns in the table. |
StorageDescriptor.Builder |
columns(Consumer<Column.Builder>... columns)
A list of the
Columns in the table. |
StorageDescriptor.Builder |
compressed(Boolean compressed)
True if the data in the table is compressed, or False if not.
|
StorageDescriptor.Builder |
inputFormat(String inputFormat)
The input format:
SequenceFileInputFormat (binary), or TextInputFormat , or a custom
format. |
StorageDescriptor.Builder |
location(String location)
The physical location of the table.
|
StorageDescriptor.Builder |
numberOfBuckets(Integer numberOfBuckets)
Must be specified if the table contains any dimension columns.
|
StorageDescriptor.Builder |
outputFormat(String outputFormat)
The output format:
SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat ,
or a custom format. |
StorageDescriptor.Builder |
parameters(Map<String,String> parameters)
User-supplied properties in key-value form.
|
default StorageDescriptor.Builder |
serdeInfo(Consumer<SerDeInfo.Builder> serdeInfo)
Serialization/deserialization (SerDe) information.
|
StorageDescriptor.Builder |
serdeInfo(SerDeInfo serdeInfo)
Serialization/deserialization (SerDe) information.
|
default StorageDescriptor.Builder |
skewedInfo(Consumer<SkewedInfo.Builder> skewedInfo)
Information about values that appear very frequently in a column (skewed values).
|
StorageDescriptor.Builder |
skewedInfo(SkewedInfo skewedInfo)
Information about values that appear very frequently in a column (skewed values).
|
StorageDescriptor.Builder |
sortColumns(Collection<Order> sortColumns)
A list specifying the sort order of each bucket in the table.
|
StorageDescriptor.Builder |
sortColumns(Consumer<Order.Builder>... sortColumns)
A list specifying the sort order of each bucket in the table.
|
StorageDescriptor.Builder |
sortColumns(Order... sortColumns)
A list specifying the sort order of each bucket in the table.
|
StorageDescriptor.Builder |
storedAsSubDirectories(Boolean storedAsSubDirectories)
True if the table data is stored in subdirectories, or False if not.
|
copy
applyMutation, build
StorageDescriptor.Builder columns(Collection<Column> columns)
A list of the Columns
in the table.
columns
- A list of the Columns
in the table.StorageDescriptor.Builder columns(Column... columns)
A list of the Columns
in the table.
columns
- A list of the Columns
in the table.StorageDescriptor.Builder columns(Consumer<Column.Builder>... columns)
A list of the Columns
in the table.
List.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 #columns(List)
.columns
- a consumer that will call methods on List.Builder
#columns(List)
StorageDescriptor.Builder location(String location)
The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.
location
- The physical location of the table. By default this takes the form of the warehouse location, followed
by the database location in the warehouse, followed by the table name.StorageDescriptor.Builder inputFormat(String inputFormat)
The input format: SequenceFileInputFormat
(binary), or TextInputFormat
, or a custom
format.
inputFormat
- The input format: SequenceFileInputFormat
(binary), or TextInputFormat
, or a
custom format.StorageDescriptor.Builder outputFormat(String outputFormat)
The output format: SequenceFileOutputFormat
(binary), or IgnoreKeyTextOutputFormat
,
or a custom format.
outputFormat
- The output format: SequenceFileOutputFormat
(binary), or
IgnoreKeyTextOutputFormat
, or a custom format.StorageDescriptor.Builder compressed(Boolean compressed)
True if the data in the table is compressed, or False if not.
compressed
- True if the data in the table is compressed, or False if not.StorageDescriptor.Builder numberOfBuckets(Integer numberOfBuckets)
Must be specified if the table contains any dimension columns.
numberOfBuckets
- Must be specified if the table contains any dimension columns.StorageDescriptor.Builder serdeInfo(SerDeInfo serdeInfo)
Serialization/deserialization (SerDe) information.
serdeInfo
- Serialization/deserialization (SerDe) information.default StorageDescriptor.Builder serdeInfo(Consumer<SerDeInfo.Builder> serdeInfo)
Serialization/deserialization (SerDe) information.
This is a convenience that creates an instance of theSerDeInfo.Builder
avoiding the need to create
one manually via SerDeInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to serdeInfo(SerDeInfo)
.serdeInfo
- a consumer that will call methods on SerDeInfo.Builder
serdeInfo(SerDeInfo)
StorageDescriptor.Builder bucketColumns(Collection<String> bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
bucketColumns
- A list of reducer grouping columns, clustering columns, and bucketing columns in the table.StorageDescriptor.Builder bucketColumns(String... bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
bucketColumns
- A list of reducer grouping columns, clustering columns, and bucketing columns in the table.StorageDescriptor.Builder sortColumns(Collection<Order> sortColumns)
A list specifying the sort order of each bucket in the table.
sortColumns
- A list specifying the sort order of each bucket in the table.StorageDescriptor.Builder sortColumns(Order... sortColumns)
A list specifying the sort order of each bucket in the table.
sortColumns
- A list specifying the sort order of each bucket in the table.StorageDescriptor.Builder sortColumns(Consumer<Order.Builder>... sortColumns)
A list specifying the sort order of each bucket in the table.
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 #sortColumns(List)
.sortColumns
- a consumer that will call methods on List.Builder
#sortColumns(List)
StorageDescriptor.Builder parameters(Map<String,String> parameters)
User-supplied properties in key-value form.
parameters
- User-supplied properties in key-value form.StorageDescriptor.Builder skewedInfo(SkewedInfo skewedInfo)
Information about values that appear very frequently in a column (skewed values).
skewedInfo
- Information about values that appear very frequently in a column (skewed values).default StorageDescriptor.Builder skewedInfo(Consumer<SkewedInfo.Builder> skewedInfo)
Information about values that appear very frequently in a column (skewed values).
This is a convenience that creates an instance of theSkewedInfo.Builder
avoiding the need to create
one manually via SkewedInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to skewedInfo(SkewedInfo)
.skewedInfo
- a consumer that will call methods on SkewedInfo.Builder
skewedInfo(SkewedInfo)
StorageDescriptor.Builder storedAsSubDirectories(Boolean storedAsSubDirectories)
True if the table data is stored in subdirectories, or False if not.
storedAsSubDirectories
- True if the table data is stored in subdirectories, or False if not.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.