Class ObjectCoderForString

  • All Implemented Interfaces:

    public final class ObjectCoderForString
    extends org.apache.beam.sdk.coders.AtomicCoder<java.lang.Object>
    This coder acts like an object coder to conform the type, but is actually just a StringUtf8Coder. This should only be used in a context where the actual type is a String. Used in EDGARTop10BadRefererDocs.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.beam.sdk.coders.Coder

        org.apache.beam.sdk.coders.Coder.Context, org.apache.beam.sdk.coders.Coder.NonDeterministicException
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object decode​( inStream)  
      void encode​(java.lang.Object value, outStream)  
      static ObjectCoderForString of()
      Public accessor of the coder.
      • Methods inherited from class org.apache.beam.sdk.coders.AtomicCoder

        equals, getCoderArguments, getComponents, hashCode, verifyDeterministic
      • Methods inherited from class org.apache.beam.sdk.coders.StructuredCoder

      • Methods inherited from class org.apache.beam.sdk.coders.Coder

        consistentWithEquals, decode, encode, getEncodedElementByteSize, getEncodedTypeDescriptor, isRegisterByteSizeObserverCheap, registerByteSizeObserver, structuralValue, verifyDeterministic, verifyDeterministic
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • encode

        public void encode​(java.lang.Object value,
        Specified by:
        encode in class org.apache.beam.sdk.coders.Coder<java.lang.Object>
      • decode

        public java.lang.Object decode​( inStream)
        Specified by:
        decode in class org.apache.beam.sdk.coders.Coder<java.lang.Object>