public abstract static class IsmFormat.IsmRecord<V> extends 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 |
|---|---|
Object |
getKeyComponent(int index)
Returns the key component at the specified index.
|
List<?> |
getKeyComponents()
Returns the list of key components.
|
byte[] |
getMetadata()
Returns the metadata.
|
V |
getValue()
Returns the value.
|
static <V> IsmFormat.IsmRecord<V> |
meta(List<?> keyComponents,
byte[] metadata) |
static <V> IsmFormat.IsmRecord<V> |
of(List<?> keyComponents,
V value)
Returns an IsmRecord with the specified key components and value.
|
public static <V> IsmFormat.IsmRecord<V> of(List<?> keyComponents, V value)
public static <V> IsmFormat.IsmRecord<V> meta(List<?> keyComponents, byte[] metadata)
public List<?> getKeyComponents()
public 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.Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.