@Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        OffsetPosition that = (OffsetPosition) o;

        return offset == that.offset
            && position == that.position;
    }
The mapping between a logical log offset and the physical position
in some log file of the beginning of the message set entry with the
given offset.
storage/src/main/java/org/apache/kafka/storage/internals/log/OffsetPosition.java