Package org.apache.beam.runners.jet
Class Utils
java.lang.Object
org.apache.beam.runners.jet.Utils
Various common methods used by the Jet based runner.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA wrapper ofbyte[]that can be used as a hash-map key. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic <T> WindowedValue<T> decodeWindowedValue(byte[] item, Coder coder) static <T> byte[]static StringgetTupleTagId(PValue value) static <T> List<T> roundRobinSubList(List<T> list, int index, int count) Assigns thelisttocountsublists in a round-robin fashion.static <T> Tserde(T object) Returns a deep clone of an object by serializing and deserializing it (ser-de). 
- 
Constructor Details
- 
Utils
public Utils() 
 - 
 - 
Method Details
- 
getTupleTagId
 - 
roundRobinSubList
Assigns thelisttocountsublists in a round-robin fashion. One call returns theindex-th sublist.For example, for a 7-element list where
count == 3, it would respectively return for indices 0..2:0, 3, 6 1, 4 2, 5
 - 
serde
public static <T> T serde(T object) Returns a deep clone of an object by serializing and deserializing it (ser-de). - 
encode
 - 
decodeWindowedValue
 - 
deriveIterableValueCoder
public static WindowedValues.FullWindowedValueCoder deriveIterableValueCoder(WindowedValues.FullWindowedValueCoder elementCoder)  
 -