@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RequestPath that = (RequestPath) o;
    return prefix.equals(that.prefix) && clusterName.equals(that.clusterName) && operationOrBlobId.equals(
        that.operationOrBlobId) && subResource == that.subResource && blobSegmentIdx == that.blobSegmentIdx;
  }
This will check if the request path matches the specified operation. This will check that that the first one or
more path segments in {@link #getOperationOrBlobId(boolean)} match the path segments in {@code operation}. For example,
{@code /op} or {@code /op/sub} will match the operation {@code op}.
@param operation the operation name to check the path against.
@return {@code true} if this request path matches the specified operation.
ambry-api/src/main/java/com/github/ambry/rest/RequestPath.java