Interface Encoder<T>

Type Parameters:
T - type of value
All Known Subinterfaces:
ArrayEncoder<T>, MapEncoder<T>, RowEncoder<T>

public interface Encoder<T>
The encoding interface for encode/decode object to/from binary. The implementation class must have a constructor with signature Object[] references, so we can pass any params to codec.
Author:
chaokunyang
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(byte[] bytes)
     
    byte[]
    encode(T obj)
     
  • Method Details

    • decode

      T decode(byte[] bytes)
    • encode

      byte[] encode(T obj)