Provided unified way to get partitions in document.