public int append(RangeIndex newRangeIndex) {
        int delta = 0;
        if (newRangeIndex == null) {
            return delta;
        }
        if (!this.sortedRangeIndexList.isEmpty()
            && newRangeIndex.compareTo(this.sortedRangeIndexList.get(this.sortedRangeIndexList.size() - 1)) <= 0) {
            LOGGER.error("Unexpected new range index {}, last: {}, maybe initialized with outdated index file, " +
                    "reset local cache", newRangeIndex, this.sortedRangeIndexList.get(this.sortedRangeIndexList.size() - 1));
            delta -= size;
            reset();
        }
        this.sortedRangeIndexList.add(newRangeIndex);
        size += RangeIndex.OBJECT_SIZE;
        return delta + RangeIndex.OBJECT_SIZE;
    }
Append new range index to the list.
@param newRangeIndex the range index to append
@return the change of size after appending
s3stream/src/main/java/com/automq/stream/s3/index/SparseRangeIndex.java