@Generated(value="software.amazon.awssdk:codegen") public final class TableInput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TableInput.Builder,TableInput>
A structure used to define a table.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TableInput.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TableInput.Builder |
builder() |
String |
description()
A description of the table.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
For responses, this returns true if the service returned a value for the Parameters property.
|
boolean |
hasPartitionKeys()
For responses, this returns true if the service returned a value for the PartitionKeys property.
|
Instant |
lastAccessTime()
The last time that the table was accessed.
|
Instant |
lastAnalyzedTime()
The last time that column statistics were computed for this table.
|
String |
name()
The table name.
|
String |
owner()
The table owner.
|
Map<String,String> |
parameters()
These key-value pairs define properties associated with the table.
|
List<Column> |
partitionKeys()
A list of columns by which the table is partitioned.
|
Integer |
retention()
The retention time for this table.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TableInput.Builder> |
serializableBuilderClass() |
StorageDescriptor |
storageDescriptor()
A storage descriptor containing information about the physical storage of this table.
|
String |
tableType()
The type of this table.
|
TableIdentifier |
targetTable()
A
TableIdentifier structure that describes a target table for resource linking. |
TableInput.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
viewExpandedText()
Included for Apache Hive compatibility.
|
String |
viewOriginalText()
Included for Apache Hive compatibility.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The table name. For Hive compatibility, this is folded to lowercase when it is stored.
public final String description()
A description of the table.
public final String owner()
The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
public final Instant lastAccessTime()
The last time that the table was accessed.
public final Instant lastAnalyzedTime()
The last time that column statistics were computed for this table.
public final Integer retention()
The retention time for this table.
public final StorageDescriptor storageDescriptor()
A storage descriptor containing information about the physical storage of this table.
public final boolean hasPartitionKeys()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Column> partitionKeys()
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at
least set the value of partitionKeys to an empty list. For example:
"PartitionKeys": []
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPartitionKeys() method.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you
must at least set the value of partitionKeys to an empty list. For example:
"PartitionKeys": []
public final String viewOriginalText()
Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a
VIRTUAL_VIEW, certain Athena configuration encoded in base64.
VIRTUAL_VIEW, certain Athena configuration encoded in base64.public final String viewExpandedText()
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
public final String tableType()
The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such
as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED.
EXTERNAL_TABLE type. Other
services, such as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED.
public final boolean hasParameters()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> parameters()
These key-value pairs define properties associated with the table.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParameters() method.
public final TableIdentifier targetTable()
A TableIdentifier structure that describes a target table for resource linking.
TableIdentifier structure that describes a target table for resource linking.public TableInput.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TableInput.Builder,TableInput>public static TableInput.Builder builder()
public static Class<? extends TableInput.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.