public static Position fromMap(final Map<String, ? extends Map<Integer, Long>> map) {
        return new Position(deepCopy(map));
    }
Create a new Position and populate it with a mapping of topic -&gt; partition -&gt; offset.
<p>
Note, the resulting Position does not share any structure with the provided map, so
subsequent changes to the map or Position will not affect the other.
streams/src/main/java/org/apache/kafka/streams/query/Position.java