int size() {
    return end;
  }
Construct an empty set with given capacity. This set stores states no more than given cpacity.

@param capacity generally, we use stateSize as capacity
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/fa/match/MatchedStateSet.java