@Override
    public int hashCode() {

        int result = partitionTypeMap != null ? partitionTypeMap.hashCode() : 0;
        result = 31 * result + (queryList != null ? queryList.hashCode() : 0);
        result = 31 * result + (annotations != null ? annotations.hashCode() : 0);
        return result;
    }
{@linkplain io.siddhi.query.api.execution.partition.Partition} class is used to represent the definition of
a partition for a Siddhi instance.
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/partition/Partition.java