public void serialize(ByteBuffer buffer) {
    constructTree();
    root.serialize(buffer);
  }
Construct tree according to the pathPatternList.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternTree.java