Interface KryoShim<I extends InputShim,​O extends OutputShim>

  • Type Parameters:
    I - this interface's complementary InputShim
    O - this interface's complementary OutputShim
    All Known Implementing Classes:
    ShadedKryoAdapter

    public interface KryoShim<I extends InputShim,​O extends OutputShim>
    A minimal Kryo-like abstraction. See that class for method documentation.
    • Method Detail

      • readObject

        <T> T readObject​(I input,
                         Class<T> type)
      • readClassAndObject

        Object readClassAndObject​(I input)
      • writeObject

        void writeObject​(O output,
                         Object object)
      • writeClassAndObject

        void writeClassAndObject​(O output,
                                 Object object)
      • readObjectOrNull

        <T> T readObjectOrNull​(I input,
                               Class<T> type)
      • writeObjectOrNull

        void writeObjectOrNull​(O output,
                               Object object,
                               Class type)