public class UpdateBehaviorTag extends Object implements StaticAttributeTag
| Modifier and Type | Method and Description |
|---|---|
static UpdateBehaviorTag |
fromUpdateBehavior(UpdateBehavior updateBehavior) |
Consumer<StaticTableMetadata.Builder> |
modifyMetadata(String attributeName,
AttributeValueType attributeValueType)
A function that modifies an existing
StaticTableSchema.Builder when this tag is applied to a specific
attribute. |
static UpdateBehavior |
resolveForAttribute(String attributeName,
TableMetadata tableMetadata) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateTypepublic static UpdateBehaviorTag fromUpdateBehavior(UpdateBehavior updateBehavior)
public static UpdateBehavior resolveForAttribute(String attributeName, TableMetadata tableMetadata)
public Consumer<StaticTableMetadata.Builder> modifyMetadata(String attributeName, AttributeValueType attributeValueType)
StaticAttributeTagStaticTableSchema.Builder when this tag is applied to a specific
attribute. This will be used by the StaticTableSchema to capture all the metadata associated with
tagged attributes when constructing the table schema.modifyMetadata in interface StaticAttributeTagattributeName - The name of the attribute this tag has been applied to.attributeValueType - The type of the attribute this tag has been applied to. This can be used for
validation, for instance if you have an attribute tag that should only be associated
with a string.StaticTableSchema.Builder.Copyright © 2023. All rights reserved.