@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final Position position1 = (Position) o;
        return Objects.equals(position, position1.position);
    }
Return the partition -&gt; offset mapping for a specific topic.
streams/src/main/java/org/apache/kafka/streams/query/Position.java