add java api for partition mapper