default void serialize(T t, ByteBuffer buffer) {
    throw new UnsupportedOperationException();
  }
This interface defines the behaviour of a Serializer of T. An instance of this interface provides
the ability to serialize an instance of T to InputStream or Bytebuffer.

@param <T> the generic type
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/logfile/ISerializer.java