private void checkSegmented() {
    if (isSingleSegment()) {
      throw new IllegalArgumentException("Cannot call for single segment logs");
    }
  }
@throws IllegalArgumentException if this is a single segment log.
ambry-store/src/main/java/com/github/ambry/store/LogSegmentName.java