private MixedFormatEnumeratorOffset deserializeV1(byte[] serialized) throws IOException {
    DataInputDeserializer in = new DataInputDeserializer(serialized);
    Long snapshotId = null;
    if (in.readBoolean()) {
      snapshotId = in.readLong();
    }

    Long snapshotTimestampMs = null;
    if (in.readBoolean()) {
      snapshotTimestampMs = in.readLong();
    }

    return MixedFormatEnumeratorOffset.of(snapshotId, snapshotTimestampMs);
  }
Serializer that serializes and deserializes mixed-format enumerator {@link
MixedFormatEnumeratorOffset}.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/read/hybrid/enumerator/MixedFormatEnumeratorOffsetSerializer.java