Class IsmFormat.IsmRecord<V>
java.lang.Object
org.apache.beam.runners.dataflow.internal.IsmFormat.IsmRecord<V>
- Enclosing class:
IsmFormat
A record containing a composite key and either a value or metadata. The composite key must not
contain the metadata key component place holder if producing a value record, and must contain
the metadata component key place holder if producing a metadata record.
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.
-
Method Summary
Modifier and TypeMethodDescriptiongetKeyComponent(int index) Returns the key component at the specified index.List<?> Returns the list of key components.byte[]Returns the metadata.getValue()Returns the value.static <V> IsmFormat.IsmRecord<V> static <V> IsmFormat.IsmRecord<V> Returns an IsmRecord with the specified key components and value.
-
Method Details
-
of
Returns an IsmRecord with the specified key components and value. -
meta
-
getKeyComponents
Returns the list of key components. -
getKeyComponent
Returns the key component at the specified index. -
getValue
Returns the value. ThrowsIllegalStateExceptionif this is not a value record. -
getMetadata
public byte[] getMetadata()Returns the metadata. ThrowsIllegalStateExceptionif this is not a metadata record.
-