Class CoGbkResult.CoGbkResultCoder

    • Method Detail

      • getCoderArguments

        public java.util.List<? extends Coder<?>> getCoderArguments()
        Description copied from class: CustomCoder
        If this is a Coder for a parameterized type, returns the list of Coders being used for each of the parameters in the same order they appear within the parameterized type's type signature. If this cannot be done, or this Coder does not encode/decode a parameterized type, returns the empty list..

        Returns an empty list. A CustomCoder has no default argument coders.

        Overrides:
        getCoderArguments in class CustomCoder<CoGbkResult>
      • getUnionCoder

        public UnionCoder getUnionCoder()
      • encode

        public void encode​(CoGbkResult value,
                           java.io.OutputStream outStream)
                    throws CoderException,
                           java.io.IOException
        Description copied from class: Coder
        Encodes the given value of type T onto the given output stream.
        Specified by:
        encode in class Coder<CoGbkResult>
        Throws:
        CoderException - if the value could not be encoded for some reason
        java.io.IOException - if writing to the OutputStream fails for some reason
      • decode

        public CoGbkResult decode​(java.io.InputStream inStream)
                           throws CoderException,
                                  java.io.IOException
        Description copied from class: Coder
        Decodes a value of type T from the given input stream in the given context. Returns the decoded value.
        Specified by:
        decode in class Coder<CoGbkResult>
        Throws:
        CoderException - if the value could not be decoded for some reason
        java.io.IOException - if reading from the InputStream fails for some reason
      • equals

        public boolean equals​(@Nullable java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object