private void updateRetainedSize(long index, Binary value) {
    Binary currentValue = array.get(index);
    if (currentValue != null) {
      sizeOfBinarys -= sizeOfObject(currentValue);
    }
    if (value != null) {
      sizeOfBinarys += sizeOfObject(value);
    }
  }
Ensures this big array is at least the specified length. If the array is smaller, segments are
added until the array is larger then the specified length.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/grouped/array/BinaryBigArray.java