@Generated(value="software.amazon.awssdk:codegen") public final class PartitionKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PartitionKey.Builder,PartitionKey>
An attribute used in partitioning data in a table. A dimension key partitions data using the values of the dimension specified by the dimension-name as partition key, while a measure key partitions data using measure names (values of the 'measure_name' column).
| Modifier and Type | Class and Description |
|---|---|
static interface |
PartitionKey.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PartitionKey.Builder |
builder() |
PartitionKeyEnforcementLevel |
enforcementInRecord()
The level of enforcement for the specification of a dimension key in ingested records.
|
String |
enforcementInRecordAsString()
The level of enforcement for the specification of a dimension key in ingested records.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the attribute used for a dimension key.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PartitionKey.Builder> |
serializableBuilderClass() |
PartitionKey.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PartitionKeyType |
type()
The type of the partition key.
|
String |
typeAsString()
The type of the partition key.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final PartitionKeyType type()
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
If the service returns an enum value that is not available in the current SDK version, type will return
PartitionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PartitionKeyTypepublic final String typeAsString()
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
If the service returns an enum value that is not available in the current SDK version, type will return
PartitionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PartitionKeyTypepublic final String name()
The name of the attribute used for a dimension key.
public final PartitionKeyEnforcementLevel enforcementInRecord()
The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
If the service returns an enum value that is not available in the current SDK version,
enforcementInRecord will return PartitionKeyEnforcementLevel.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from enforcementInRecordAsString().
PartitionKeyEnforcementLevelpublic final String enforcementInRecordAsString()
The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
If the service returns an enum value that is not available in the current SDK version,
enforcementInRecord will return PartitionKeyEnforcementLevel.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from enforcementInRecordAsString().
PartitionKeyEnforcementLevelpublic PartitionKey.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PartitionKey.Builder,PartitionKey>public static PartitionKey.Builder builder()
public static Class<? extends PartitionKey.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.