more java api for partition mapper