Package org.apache.beam.sdk.values
Class ValueWithRecordId<ValueT>
- java.lang.Object
-
- org.apache.beam.sdk.values.ValueWithRecordId<ValueT>
-
- Type Parameters:
ValueT
- the underlying value type
@Internal public class ValueWithRecordId<ValueT> extends java.lang.Object
For internal use only; no backwards compatibility guarantees.Immutable struct containing a value as well as a unique id identifying the value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValueWithRecordId.StripIdsDoFn<T>
static class
ValueWithRecordId.ValueWithRecordIdCoder<ValueT>
-
Constructor Summary
Constructors Constructor Description ValueWithRecordId(ValueT value, byte[] id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable java.lang.Object other)
byte[]
getId()
ValueT
getValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ValueWithRecordId
public ValueWithRecordId(ValueT value, byte[] id)
-
-
Method Detail
-
getValue
public ValueT getValue()
-
getId
public byte[] getId()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-