Class IsmFormat.IsmShardCoder

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    IsmFormat

    public static class IsmFormat.IsmShardCoder
    extends org.apache.beam.sdk.coders.AtomicCoder<IsmFormat.IsmShard>
    A coder for IsmFormat.IsmShards.

    The shard descriptor is encoded as:

    • id (variable length integer encoding)
    • blockOffset (variable length long encoding)
    • indexOffset (variable length long encoding)
    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
      boolean consistentWithEquals()  
      IsmFormat.IsmShard decode​(java.io.InputStream inStream)  
      void encode​(IsmFormat.IsmShard value, java.io.OutputStream outStream)  
      static IsmFormat.IsmShardCoder of()
      Returns an IsmShardCoder.
      void verifyDeterministic()  
      • Methods inherited from class org.apache.beam.sdk.coders.AtomicCoder

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

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

        decode, encode, getEncodedElementByteSize, getEncodedElementByteSizeUsingCoder, 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​(IsmFormat.IsmShard value,
                           java.io.OutputStream outStream)
                    throws org.apache.beam.sdk.coders.CoderException,
                           java.io.IOException
        Specified by:
        encode in class org.apache.beam.sdk.coders.Coder<IsmFormat.IsmShard>
        Throws:
        org.apache.beam.sdk.coders.CoderException
        java.io.IOException
      • decode

        public IsmFormat.IsmShard decode​(java.io.InputStream inStream)
                                  throws org.apache.beam.sdk.coders.CoderException,
                                         java.io.IOException
        Specified by:
        decode in class org.apache.beam.sdk.coders.Coder<IsmFormat.IsmShard>
        Throws:
        org.apache.beam.sdk.coders.CoderException
        java.io.IOException
      • verifyDeterministic

        public void verifyDeterministic()
        Overrides:
        verifyDeterministic in class org.apache.beam.sdk.coders.AtomicCoder<IsmFormat.IsmShard>
      • consistentWithEquals

        public boolean consistentWithEquals()
        Overrides:
        consistentWithEquals in class org.apache.beam.sdk.coders.Coder<IsmFormat.IsmShard>