public class AtomicCounterTag extends Object implements StaticAttributeTag
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_METADATA_KEY_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
static AtomicCounterTag |
create() |
static AtomicCounterTag |
fromValues(long delta,
long startValue) |
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 Map<String,AtomicCounter> |
resolve(TableMetadata tableMetadata) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateTypepublic static final String CUSTOM_METADATA_KEY_PREFIX
public static AtomicCounterTag create()
public static AtomicCounterTag fromValues(long delta, long startValue)
public static Map<String,AtomicCounter> resolve(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.