@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StorageDescriptor extends Object implements Serializable, Cloneable, StructuredPojo
Describes the physical storage of table data.
Constructor and Description |
---|
StorageDescriptor() |
Modifier and Type | Method and Description |
---|---|
StorageDescriptor |
addParametersEntry(String key,
String value) |
StorageDescriptor |
clearParametersEntries()
Removes all the entries added into Parameters.
|
StorageDescriptor |
clone() |
boolean |
equals(Object obj) |
List<String> |
getBucketColumns()
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
|
List<Column> |
getColumns()
A list of the
Columns in the table. |
Boolean |
getCompressed()
True if the data in the table is compressed, or False if not.
|
String |
getInputFormat()
The input format:
SequenceFileInputFormat (binary), or TextInputFormat , or a custom
format. |
String |
getLocation()
The physical location of the table.
|
Integer |
getNumberOfBuckets()
Must be specified if the table contains any dimension columns.
|
String |
getOutputFormat()
The output format:
SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat , or
a custom format. |
Map<String,String> |
getParameters()
User-supplied properties in key-value form.
|
SerDeInfo |
getSerdeInfo()
Serialization/deserialization (SerDe) information.
|
SkewedInfo |
getSkewedInfo()
Information about values that appear very frequently in a column (skewed values).
|
List<Order> |
getSortColumns()
A list specifying the sort order of each bucket in the table.
|
Boolean |
getStoredAsSubDirectories()
True if the table data is stored in subdirectories, or False if not.
|
int |
hashCode() |
Boolean |
isCompressed()
True if the data in the table is compressed, or False if not.
|
Boolean |
isStoredAsSubDirectories()
True if the table data is stored in subdirectories, or False if not.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucketColumns(Collection<String> bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
|
void |
setColumns(Collection<Column> columns)
A list of the
Columns in the table. |
void |
setCompressed(Boolean compressed)
True if the data in the table is compressed, or False if not.
|
void |
setInputFormat(String inputFormat)
The input format:
SequenceFileInputFormat (binary), or TextInputFormat , or a custom
format. |
void |
setLocation(String location)
The physical location of the table.
|
void |
setNumberOfBuckets(Integer numberOfBuckets)
Must be specified if the table contains any dimension columns.
|
void |
setOutputFormat(String outputFormat)
The output format:
SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat , or
a custom format. |
void |
setParameters(Map<String,String> parameters)
User-supplied properties in key-value form.
|
void |
setSerdeInfo(SerDeInfo serdeInfo)
Serialization/deserialization (SerDe) information.
|
void |
setSkewedInfo(SkewedInfo skewedInfo)
Information about values that appear very frequently in a column (skewed values).
|
void |
setSortColumns(Collection<Order> sortColumns)
A list specifying the sort order of each bucket in the table.
|
void |
setStoredAsSubDirectories(Boolean storedAsSubDirectories)
True if the table data is stored in subdirectories, or False if not.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
StorageDescriptor |
withBucketColumns(Collection<String> bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
|
StorageDescriptor |
withBucketColumns(String... bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
|
StorageDescriptor |
withColumns(Collection<Column> columns)
A list of the
Columns in the table. |
StorageDescriptor |
withColumns(Column... columns)
A list of the
Columns in the table. |
StorageDescriptor |
withCompressed(Boolean compressed)
True if the data in the table is compressed, or False if not.
|
StorageDescriptor |
withInputFormat(String inputFormat)
The input format:
SequenceFileInputFormat (binary), or TextInputFormat , or a custom
format. |
StorageDescriptor |
withLocation(String location)
The physical location of the table.
|
StorageDescriptor |
withNumberOfBuckets(Integer numberOfBuckets)
Must be specified if the table contains any dimension columns.
|
StorageDescriptor |
withOutputFormat(String outputFormat)
The output format:
SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat , or
a custom format. |
StorageDescriptor |
withParameters(Map<String,String> parameters)
User-supplied properties in key-value form.
|
StorageDescriptor |
withSerdeInfo(SerDeInfo serdeInfo)
Serialization/deserialization (SerDe) information.
|
StorageDescriptor |
withSkewedInfo(SkewedInfo skewedInfo)
Information about values that appear very frequently in a column (skewed values).
|
StorageDescriptor |
withSortColumns(Collection<Order> sortColumns)
A list specifying the sort order of each bucket in the table.
|
StorageDescriptor |
withSortColumns(Order... sortColumns)
A list specifying the sort order of each bucket in the table.
|
StorageDescriptor |
withStoredAsSubDirectories(Boolean storedAsSubDirectories)
True if the table data is stored in subdirectories, or False if not.
|
public List<Column> getColumns()
A list of the Columns
in the table.
Columns
in the table.public void setColumns(Collection<Column> columns)
A list of the Columns
in the table.
columns
- A list of the Columns
in the table.public StorageDescriptor withColumns(Column... columns)
A list of the Columns
in the table.
NOTE: This method appends the values to the existing list (if any). Use
setColumns(java.util.Collection)
or withColumns(java.util.Collection)
if you want to override
the existing values.
columns
- A list of the Columns
in the table.public StorageDescriptor withColumns(Collection<Column> columns)
A list of the Columns
in the table.
columns
- A list of the Columns
in the table.public void setLocation(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.public String getLocation()
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.
public StorageDescriptor withLocation(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.public void setInputFormat(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.public String getInputFormat()
The input format: SequenceFileInputFormat
(binary), or TextInputFormat
, or a custom
format.
SequenceFileInputFormat
(binary), or TextInputFormat
, or a
custom format.public StorageDescriptor withInputFormat(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.public void setOutputFormat(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.public String getOutputFormat()
The output format: SequenceFileOutputFormat
(binary), or IgnoreKeyTextOutputFormat
, or
a custom format.
SequenceFileOutputFormat
(binary), or
IgnoreKeyTextOutputFormat
, or a custom format.public StorageDescriptor withOutputFormat(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.public void setCompressed(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.public Boolean getCompressed()
True if the data in the table is compressed, or False if not.
public StorageDescriptor withCompressed(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.public Boolean isCompressed()
True if the data in the table is compressed, or False if not.
public void setNumberOfBuckets(Integer numberOfBuckets)
Must be specified if the table contains any dimension columns.
numberOfBuckets
- Must be specified if the table contains any dimension columns.public Integer getNumberOfBuckets()
Must be specified if the table contains any dimension columns.
public StorageDescriptor withNumberOfBuckets(Integer numberOfBuckets)
Must be specified if the table contains any dimension columns.
numberOfBuckets
- Must be specified if the table contains any dimension columns.public void setSerdeInfo(SerDeInfo serdeInfo)
Serialization/deserialization (SerDe) information.
serdeInfo
- Serialization/deserialization (SerDe) information.public SerDeInfo getSerdeInfo()
Serialization/deserialization (SerDe) information.
public StorageDescriptor withSerdeInfo(SerDeInfo serdeInfo)
Serialization/deserialization (SerDe) information.
serdeInfo
- Serialization/deserialization (SerDe) information.public List<String> getBucketColumns()
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
public void setBucketColumns(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.public StorageDescriptor withBucketColumns(String... bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
NOTE: This method appends the values to the existing list (if any). Use
setBucketColumns(java.util.Collection)
or withBucketColumns(java.util.Collection)
if you want
to override the existing values.
bucketColumns
- A list of reducer grouping columns, clustering columns, and bucketing columns in the table.public StorageDescriptor withBucketColumns(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.public List<Order> getSortColumns()
A list specifying the sort order of each bucket in the table.
public void setSortColumns(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.public StorageDescriptor withSortColumns(Order... sortColumns)
A list specifying the sort order of each bucket in the table.
NOTE: This method appends the values to the existing list (if any). Use
setSortColumns(java.util.Collection)
or withSortColumns(java.util.Collection)
if you want to
override the existing values.
sortColumns
- A list specifying the sort order of each bucket in the table.public StorageDescriptor withSortColumns(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.public Map<String,String> getParameters()
User-supplied properties in key-value form.
public void setParameters(Map<String,String> parameters)
User-supplied properties in key-value form.
parameters
- User-supplied properties in key-value form.public StorageDescriptor withParameters(Map<String,String> parameters)
User-supplied properties in key-value form.
parameters
- User-supplied properties in key-value form.public StorageDescriptor addParametersEntry(String key, String value)
public StorageDescriptor clearParametersEntries()
public void setSkewedInfo(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).public SkewedInfo getSkewedInfo()
Information about values that appear very frequently in a column (skewed values).
public StorageDescriptor withSkewedInfo(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).public void setStoredAsSubDirectories(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.public Boolean getStoredAsSubDirectories()
True if the table data is stored in subdirectories, or False if not.
public StorageDescriptor withStoredAsSubDirectories(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.public Boolean isStoredAsSubDirectories()
True if the table data is stored in subdirectories, or False if not.
public String toString()
toString
in class Object
Object.toString()
public StorageDescriptor clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.