public static GroupByParameter deserialize(ByteBuffer byteBuffer) {
    byte type = ReadWriteIOUtils.readByte(byteBuffer);
    if (type == WindowType.VARIATION_WINDOW.getType()) {
      return GroupByVariationParameter.deserialize(byteBuffer);
    } else if (type == WindowType.CONDITION_WINDOW.getType()) {
      return GroupByConditionParameter.deserialize(byteBuffer);
    } else if (type == WindowType.SESSION_WINDOW.getType()) {
      return GroupBySessionParameter.deserialize(byteBuffer);
    } else if (type == WindowType.COUNT_WINDOW.getType()) {
      return GroupByCountParameter.deserialize(byteBuffer);
    } else throw new SemanticException("Unsupported window type");
  }
The parameter of `GROUP BY` clause.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/parameter/GroupByParameter.java