Implementing partition in Siddhi api