public abstract static class IsmFormat.IsmRecord<V>
extends java.lang.Object
The composite key is a fixed number of component keys where the first N component
keys are used to create a shard id via hashing. See IsmFormat.IsmRecordCoder.hash(List) for
further details.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getKeyComponent(int index)
Returns the key component at the specified index.
|
java.util.List<?> |
getKeyComponents()
Returns the list of key components.
|
byte[] |
getMetadata()
Returns the metadata.
|
V |
getValue()
Returns the value.
|
static <V> IsmFormat.IsmRecord<V> |
meta(java.util.List<?> keyComponents,
byte[] metadata) |
static <V> IsmFormat.IsmRecord<V> |
of(java.util.List<?> keyComponents,
V value)
Returns an IsmRecord with the specified key components and value.
|
public static <V> IsmFormat.IsmRecord<V> of(java.util.List<?> keyComponents, V value)
public static <V> IsmFormat.IsmRecord<V> meta(java.util.List<?> keyComponents, byte[] metadata)
public java.util.List<?> getKeyComponents()
public java.lang.Object getKeyComponent(int index)
public V getValue()
IllegalStateException if this is not a value record.public byte[] getMetadata()
IllegalStateException if this is not a metadata record.