KvCoderBase (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1


Class KvCoderBase<T>

  • Type Parameters:
    T - the type of values being transcoded
    All Implemented Interfaces:
    Coder<T>, Serializable
    Direct Known Subclasses:


    public abstract class KvCoderBase<T>
    extends StandardCoder<T>
    A abstract base class for KvCoder. Works around a Jackson2 bug tickled when building KvCoder directly (as of this writing, Jackson2 walks off the end of an array when it tries to deserialize a class with multiple generic type parameters). This class should be removed when possible.
    See Also:
    Serialized Form
    • Constructor Detail

      • KvCoderBase

        protected KvCoderBase()
    • Method Detail

      • of

        public static KvCoderBase<?> of(String typeId,
                                                    boolean isPairLike,
                                                    List<Coder<?>> components)
        A constructor used only for decoding from JSON.
        typeId - present in the JSON encoding, but unused
        isPairLike - present in the JSON encoding, but unused