DeterministicStandardCoder (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

Class DeterministicStandardCoder<T>

    • Constructor Detail

      • DeterministicStandardCoder

        protected DeterministicStandardCoder()
    • Method Detail

      • verifyDeterministic

        public void verifyDeterministic()
                                 throws Coder.NonDeterministicException
        Throw Coder.NonDeterministicException if the coding is not deterministic.

        In order for a Coder to be considered deterministic, the following must be true:

        • two values that compare as equal (via Object.equals() or Comparable.compareTo(), if supported) have the same encoding.
        • the Coder always produces a canonical encoding, which is the same for an instance of an object even if produced on different computers at different times.
        NonDeterministicException - never, unless overridden. A DeterministicStandardCoder is presumed deterministic.
        Coder.NonDeterministicException - if this coder is not deterministic.

Send feedback about...

Cloud Dataflow