public interface PartitionAttributesBuilder
PartitionAttributes
objects. Duplicates are not necessarily detected/enforced via the
add(PartitionAttributes.Key, Object)
method.Modifier and Type | Method and Description |
---|---|
<T> PartitionAttributesBuilder |
add(PartitionAttributes.Key<T> key,
T value)
Add a key/value pair to this builder.
|
PartitionAttributes |
build()
Build a
PartitionAttributes corresponding to the previous add(PartitionAttributes.Key, Object)
calls. |
<T> PartitionAttributesBuilder add(PartitionAttributes.Key<T> key, T value)
Duplicate keys are not necessarily detected, and this will instead just add.
T
- The value type.key
- The key.value
- The value.this
.DuplicateAttributeException
- A best effort will be made to detect adding duplicate keys, and if a
duplicate key is detected this exception will be thrown.PartitionAttributes build()
PartitionAttributes
corresponding to the previous add(PartitionAttributes.Key, Object)
calls.PartitionAttributes
corresponding to the previous add(PartitionAttributes.Key, Object)
calls.DuplicateAttributeException
- If a duplicate key is detected this exception will be thrown.